{"id":"n-8e6b51ac707373f6","revision":1,"first_index":0,"fingerprint":"f6-da93e8b7035ccffa","name":"Triangle read by rows: T(n,k) is number of paths from (0,0) to (3n,0) that stay in the first quadrant (but may touch the horizontal axis), consisting of steps u=(2,1),U=(1,2), or d=(1,-1) and have k peaks of the form Ud.","polytool_family":null,"interpretation":null,"rows_observed":15,"degree_pattern":"affine","degree_slope":1,"degree_intercept":0,"palindromic":0,"gamma_positive":0,"nonnegative":1,"rr_by_factors":false,"rows":[["1"],["1","1"],["3","5","2"],["12","28","21","5"],["55","165","180","84","14"],["273","1001","1430","990","330","42"],["1428","6188","10920","10010","5005","1287","132"],["7752","38760","81396","92820","61880","24024","5005","429"],["43263","245157","596904","813960","678300","352716","111384","19448","1430"],["246675","1562275","4326300","6864396","6864396","4476780","1899240","503880","75582","4862"],["1430715","10015005","31081050","56241900","65615550","51482970","27457584","9806280","2238390","293930","16796"],["8414640","64512240","221760825","450675225","600900300","551170620","354323970","159352050","49031400","9806280","1144066","58786"],["50067108","417225900","1573537680","3548173200","5322259800","5588372790","4206302100","2283421140","885809925","239028075","42493880","4457400","208012"],["300830572","2707475148","11114897976","27536909400","45894849000","54287049960","46835886240","29804654880","13970931975","4757127375","1141710570","182530530","17383860","742900"],["1822766520","17620076360","78215948720","211183061544","387168946164","509432823900","495664369200","361913666400","199052516520","81962800920","24837212400","5362579950","778439025","67863915","2674440"]],"degrees":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],"row_sums":["1","2","10","66","498","4066","34970","312066","2862562","26824386","255680170","2471150402","24161357010","238552980386","2375085745978"],"nonn":true,"definitions":[{"position":0,"source":"oeis_catalog:A108426","source_kind":"oeis_catalog","equality_edge_id":null,"recurrence":{"first_index":0,"initial_polynomials":[["1"]],"recurrence":{"denominator":{"coeffs":[["0"],["2"],["4"]]},"terms":[{"coeff":{"coeffs":[["6","5","1"],["-27","-23","-2"],["27","24","1"]]},"deriv_order":0,"offset":1,"sign":"none"},{"coeff":{"coeffs":[["0","3","4","1"],["0","-9","-10","-1"]]},"deriv_order":1,"offset":1,"sign":"none"}]},"schema":"polytool.recurrence.v1"}}],"properties":[{"id":170095,"position":0,"claim":"real_rooted","from_index":0,"region_key":"(-inf, 0)","provenance":"edges","claim_data":{"claim":"real_rooted","from_index":0,"region":{"upper":{"closed":false,"value":"0"}}},"label":"Real-rooted","description":"Every row P_n, n >= 0, is zero or real-rooted with all roots in (-inf, 0)","region_exact":null,"edges":["e-a097056b6a36e14b"]},{"id":170096,"position":1,"claim":"one_signed_coefficients","from_index":0,"region_key":null,"provenance":"derived_from_edges","claim_data":{"alternating":false,"claim":"one_signed_coefficients","from_index":0},"label":"Coefficients of one sign","description":"Every nonzero row, n >= 0: the coefficients of P_n have one sign","region_exact":null,"edges":["e-a097056b6a36e14b","e-f20dd08c54be4028"]},{"id":170097,"position":2,"claim":"hadamard_kernel","from_index":0,"region_key":null,"provenance":"derived_from_edges","claim_data":{"claim":"hadamard_kernel","from_index":0},"label":"Hadamard kernel (Malo)","description":"Rows P_n, n >= 0, are Hadamard kernels (preserve real-rootedness)","region_exact":null,"edges":["e-a097056b6a36e14b","e-f20dd08c54be4028"]},{"id":170788,"position":3,"claim":"real_rooted","from_index":0,"region_key":"(-inf, 0]","provenance":"edges","claim_data":{"claim":"real_rooted","from_index":0,"region":{"upper":{"closed":true,"value":"0"}}},"label":"Real-rooted","description":"Every row P_n, n >= 0, is zero or real-rooted with all roots in (-inf, 0]","region_exact":null,"edges":["e-f20dd08c54be4028"]}],"region_exact":{},"incoming_edges":[{"id":"e-f20dd08c54be4028","operation":{"index_shift":0,"operation":"preserver_image","operator":"{\"shape\":\"reversal\",\"schedule\":{\"first_index\":0,\"first_degree\":0,\"step\":1}}"},"operation_detail":"reversal, shift 0","conclusion_id":"n-8e6b51ac707373f6","premise_count":1,"theorem":"a real affine substitution x -> a x + b (a != 0), the reversal x^d p(1/x) (d >= deg p) and a real Mobius map (c x + e)^d p((a x + b)/(c x + e)) (a e - b c != 0, d >= deg p) map real roots to real roots: a root r of p gives the root (r - b)/a, 1/r (and 0) or (e r - b)/(a - c r) (and -e/c); for an input row that is a polynomial the degree condition holds automatically","lean_route":"reversed","lean_declarations":["RealRooted.X_pow_mul_reverse_eq_zero_or_splits","RealRooted.reflect_eq_zero_or_splits"],"certificate_hash":"9ac903ee7b2804d5b801a0aacea3dbf46d5fa5580de1961a5b58f65f05e4d5f4","verification_polytool":"replayed","verification_lean":"not_attempted","claims":[{"claim":"real_rooted","from_index":0,"region":{"upper":{"closed":true,"value":"0"}}}],"premises":[{"position":0,"node_id":"n-9ed87ca196739b1c","role":"sequence","name":"Triangle read by rows, where the g.f. satisfies A(x, y) = 1 + x*A(x, y)^2 + x*y*A(x, y)^3.","uses":{"claim":"real_rooted","from_index":0,"region":{"upper":{"closed":true,"value":"0"}}},"uses_text":"Every row P_n, n >= 0, is zero or real-rooted with all roots in (-inf, 0]"}]},{"id":"e-a097056b6a36e14b","operation":{"operation":"theorem_check","theorem":"hypergeometric_row"},"operation_detail":"hypergeometric_row","conclusion_id":"n-8e6b51ac707373f6","premise_count":0,"theorem":"Row-hypergeometric rows: an exact row relation p(n, k) [x^k] P_n + q(n, k) [x^(k-1)] P_n = 0, proved for every n by an invariant row-annihilator system of the rule, writes every row as U_0(n) x^v (or its reversal) times the image of (1 + x)^M(n) under a product of nonnegative multiplier sequences: C^k (C > 0); k -> M'!/(M' - k)!, whose exponential generating function is (1 + x)^M' (Polya--Schur, Theorem 7.1 (3) => (1) of P. Branden, Unimodality, log-concavity, real-rootedness and beyond, arXiv:1410.6601: a sequence is a multiplier sequence when G(x) = sum_k lambda_k x^k / k! or G(-x) can be written C x^m e^(a x) prod_k (1 + alpha_k x) with a >= 0, alpha_k >= 0); k -> phi(k) for a polynomial phi with only real roots, all <= 0 (Laguerre's theorem, RealRooted isPFMultiplierSequence_eval_of_roots_nonpos); k -> 1/(alpha)_k for alpha > 0 (RealRooted isPFMultiplierSequence_inv_ascPochhammer, via the generalized Laguerre polynomials); products of PF multiplier sequences are PF multiplier sequences (RealRooted IsPFMultiplierSequence.mul) and map real-rooted polynomials with nonnegative coefficients to such polynomials (IsPFMultiplierSequence.diagonalOperator_isPF)","lean_route":null,"lean_declarations":["RealRooted.isPFMultiplierSequence_eval_of_roots_nonpos","RealRooted.isPFMultiplierSequence_inv_ascPochhammer","RealRooted.IsPFMultiplierSequence.mul","RealRooted.IsPFMultiplierSequence.diagonalOperator_isPF"],"certificate_hash":"63c54f2578d61990860ff1028b2122ad0def19c746203589ea9af16ba8df1b37","verification_polytool":"replayed","verification_lean":"not_attempted","claims":[{"claim":"real_rooted","from_index":0,"region":{"upper":{"closed":false,"value":"0"}}}],"premises":[]}],"used_by":[{"id":"e-2620a19ff0a1c2c0","operation":"preserver_image","operation_detail":"reversal, shift 0","conclusion_id":"n-9ed87ca196739b1c","conclusion_name":"Triangle read by rows, where the g.f. satisfies A(x, y) = 1 + x*A(x, y)^2 + x*y*A(x, y)^3."},{"id":"e-26f78ea6765c58ae","operation":"preserver_image","operation_detail":"euler_polynomial, shift 0","conclusion_id":"n-1e24992b6bf1f3cd","conclusion_name":"theta_plus_one of Triangle read by rows: T(n,k) is number of paths from (0,0) to (3n,0) that stay in the first quadrant (but may touch the horizontal axis), consisting of steps u=(2,1),U=(1,2), or d=(1,-1) and have k peaks of the form Ud."},{"id":"e-51315148ff798987","operation":"preserver_image","operation_detail":"affine, shift 0","conclusion_id":"n-c9014249fe74edd2","conclusion_name":"shift_x_plus_one of Triangle read by rows: T(n,k) is number of paths from (0,0) to (3n,0) that stay in the first quadrant (but may touch the horizontal axis), consisting of steps u=(2,1),U=(1,2), or d=(1,-1) and have k peaks of the form Ud."},{"id":"e-5769aaed6c405931","operation":"preserver_image","operation_detail":"derivative_polynomial, shift 0","conclusion_id":"n-23581bf5628a177c","conclusion_name":"derivative of Triangle read by rows: T(n,k) is number of paths from (0,0) to (3n,0) that stay in the first quadrant (but may touch the horizontal axis), consisting of steps u=(2,1),U=(1,2), or d=(1,-1) and have k peaks of the form Ud."},{"id":"e-892b1bd06669cd9b","operation":"preserver_image","operation_detail":"derivative_polynomial, shift 0","conclusion_id":"n-b5fb99ffd0b8f8fd","conclusion_name":"one_plus_derivative of Triangle read by rows: T(n,k) is number of paths from (0,0) to (3n,0) that stay in the first quadrant (but may touch the horizontal axis), consisting of steps u=(2,1),U=(1,2), or d=(1,-1) and have k peaks of the form Ud."},{"id":"e-8e81a7ffdb9766a5","operation":"preserver_image","operation_detail":"mobius, shift 0","conclusion_id":"n-346eb8fc7de6d5a4","conclusion_name":"mobius_x_over_x_plus_one of Triangle read by rows: T(n,k) is number of paths from (0,0) to (3n,0) that stay in the first quadrant (but may touch the horizontal axis), consisting of steps u=(2,1),U=(1,2), or d=(1,-1) and have k peaks of the form Ud."}],"used_by_total":6,"links":[{"id":"l-332d8075beb66f62","kind":"fingerprint_related","node_a_id":"n-9ed87ca196739b1c","node_b_id":"n-8e6b51ac707373f6","fingerprint":"f6-da93e8b7035ccffa","oeis_id":null,"in_catalog":null,"target":null,"row_alignment":null,"rows_matched":null,"oeis_nonn":null,"details":{"fingerprint":"f6-da93e8b7035ccffa"},"other_id":"n-9ed87ca196739b1c","other":{"id":"n-9ed87ca196739b1c","name":"Triangle read by rows, where the g.f. satisfies A(x, y) = 1 + x*A(x, y)^2 + x*y*A(x, y)^3.","first_index":0,"fingerprint":"f6-da93e8b7035ccffa","polytool_family":null,"degree_pattern":"affine","palindromic":0,"gamma_positive":0,"nonnegative":1,"rr_by_factors":0,"preview_rows":[["1"],["1","1"],["2","5","3"]],"card_rows":[["1"],["1","1"],["2","5","3"],["5","21","28","12"]],"row_sums_preview":["1","2","10","66","498","4066","34970","312066"],"regions":["(-inf, 0]","(-inf, 0)"],"region_exact":{},"oeis_ids":["A104978"],"derivation":{"root":"n-9ed87ca196739b1c","steps":[],"edges":[],"text":"A104978"},"headline":"A104978: Triangle read by rows, where the g.f. satisfies A(x, y) = 1 + x*A(x, y)^2 + x*y*A(x, y)^3.","chain":null}},{"id":"l-4ebf798d2173486e","kind":"fingerprint_related","node_a_id":"n-8e6b51ac707373f6","node_b_id":"n-eb78d61c7c9e8c34","fingerprint":"f6-da93e8b7035ccffa","oeis_id":null,"in_catalog":null,"target":null,"row_alignment":null,"rows_matched":null,"oeis_nonn":null,"details":{"fingerprint":"f6-da93e8b7035ccffa"},"other_id":"n-eb78d61c7c9e8c34","other":{"id":"n-eb78d61c7c9e8c34","name":"Triangle read by rows, interpolating between the central binomial coefficients and the central coefficients of the Catalan triangle. T(n, k) for 0 <= k <= n.","first_index":0,"fingerprint":"f6-da93e8b7035ccffa","polytool_family":null,"degree_pattern":"affine","palindromic":0,"gamma_positive":0,"nonnegative":1,"rr_by_factors":0,"preview_rows":[["1"],["2","2"],["6","15","9"]],"card_rows":[["1"],["2","2"],["6","15","9"],["20","84","112","48"]],"row_sums_preview":["1","4","30","264","2490","24396","244790","2496528"],"regions":["(-inf, 0)"],"region_exact":{},"oeis_ids":["A330798"],"derivation":{"root":"n-eb78d61c7c9e8c34","steps":[],"edges":[],"text":"A330798"},"headline":"A330798: Triangle read by rows, interpolating between the central binomial coefficients and the central coefficients of the Catalan triangle. T(n, k) for 0 <= k <= n.","chain":null}},{"id":"l-5be6ee64c737193d","kind":"fingerprint_related","node_a_id":"n-8e6b51ac707373f6","node_b_id":"n-1b1ae9a68a1f347c","fingerprint":"f6-da93e8b7035ccffa","oeis_id":null,"in_catalog":null,"target":null,"row_alignment":null,"rows_matched":null,"oeis_nonn":null,"details":{"fingerprint":"f6-da93e8b7035ccffa"},"other_id":"n-1b1ae9a68a1f347c","other":{"id":"n-1b1ae9a68a1f347c","name":"reversal of Triangle read by rows, interpolating between the central binomial coefficients and the central coefficients of the Catalan triangle. T(n, k) for 0 <= k <= n.","first_index":0,"fingerprint":"f6-da93e8b7035ccffa","polytool_family":null,"degree_pattern":"affine","palindromic":0,"gamma_positive":0,"nonnegative":1,"rr_by_factors":0,"preview_rows":[["1"],["2","2"],["9","15","6"]],"card_rows":[["1"],["2","2"],["9","15","6"],["48","112","84","20"]],"row_sums_preview":["1","4","30","264","2490","24396","244790","2496528"],"regions":["(-inf, 0]"],"region_exact":{},"oeis_ids":[],"derivation":{"root":"n-eb78d61c7c9e8c34","steps":["reverse"],"edges":["e-46676dce00be0564"],"text":"A330798 \u2192 reverse"},"headline":"A330798 \u2192 reverse","chain":null}},{"id":"l-1df69430ac901923","kind":"oeis_match","node_a_id":"n-8e6b51ac707373f6","node_b_id":null,"fingerprint":null,"oeis_id":"A104978","in_catalog":1,"target":"reversed_triangle","row_alignment":"tabl","rows_matched":10,"oeis_nonn":1,"details":{"alignment":{"first_row":0,"low_zeros_dropped":false,"oeis_offset":0,"oeis_term_position":0,"row_alignment":"tabl","rows_matched":10,"target":"reversed_triangle","terms_compared":55},"in_catalog":true,"oeis_id":"A104978","oeis_nonn":true},"other_id":null,"other":null},{"id":"l-9e22411944011e1c","kind":"oeis_match","node_a_id":"n-8e6b51ac707373f6","node_b_id":null,"fingerprint":null,"oeis_id":"A108426","in_catalog":1,"target":"triangle","row_alignment":"tabl","rows_matched":9,"oeis_nonn":1,"details":{"alignment":{"first_row":0,"low_zeros_dropped":false,"oeis_offset":0,"oeis_term_position":0,"row_alignment":"tabl","rows_matched":9,"target":"triangle","terms_compared":46},"in_catalog":true,"oeis_id":"A108426","oeis_nonn":true},"other_id":null,"other":null},{"id":"l-bb98ba91c9ed15d2","kind":"oeis_match","node_a_id":"n-8e6b51ac707373f6","node_b_id":null,"fingerprint":null,"oeis_id":"A027307","in_catalog":0,"target":"row_sums","row_alignment":null,"rows_matched":null,"oeis_nonn":1,"details":{"alignment":{"first_row":0,"low_zeros_dropped":false,"oeis_offset":0,"oeis_term_position":0,"target":"row_sums","terms_compared":15},"in_catalog":false,"oeis_id":"A027307","oeis_nonn":true},"other_id":null,"other":null}],"oeis":[{"oeis_id":"A108426","relation":"identification"},{"oeis_id":"A104978","relation":"match_reversed_triangle"},{"oeis_id":"A027307","relation":"match_row_sums"},{"oeis_id":"A108426","relation":"match_triangle"}],"bfiles":[{"node_id":"n-8e6b51ac707373f6","oeis_id":"A027307","target":"row_sums","oeis_offset":0,"first_row":0,"rows_used":200,"terms_matched":15,"oeis_terms_agreeing":20,"oeis_terms_available":20,"term_count":200,"raw_size":21120},{"node_id":"n-8e6b51ac707373f6","oeis_id":"A104978","target":"reversed_triangle","oeis_offset":0,"first_row":0,"rows_used":44,"terms_matched":55,"oeis_terms_agreeing":55,"oeis_terms_available":55,"term_count":990,"raw_size":28631},{"node_id":"n-8e6b51ac707373f6","oeis_id":"A108426","target":"triangle","oeis_offset":0,"first_row":0,"rows_used":44,"terms_matched":46,"oeis_terms_agreeing":46,"oeis_terms_available":46,"term_count":990,"raw_size":28631}],"oeis_texts":[{"oeis_id":"","target":"node","first_row":0,"oeis_offset":0,"reversed":false,"trim_zeros":"none","regular_triangle":false,"rows_shown":10,"polytool_commit":"c48629374597092cc41ef4d6273f37991516f984","triangle_example":"Triangle begins:\n  0:      1;\n  1:      1,       1;\n  2:      3,       5,       2;\n  3:     12,      28,      21,       5;\n  4:     55,     165,     180,      84,      14;\n  5:    273,    1001,    1430,     990,     330,      42;\n  6:   1428,    6188,   10920,   10010,    5005,    1287,     132;\n  7:   7752,   38760,   81396,   92820,   61880,   24024,    5005,    429;\n  8:  43263,  245157,  596904,  813960,  678300,  352716,  111384,  19448,  1430;\n  9: 246675, 1562275, 4326300, 6864396, 6864396, 4476780, 1899240, 503880, 75582, 4862;\n","recurrence_sentence":"The row polynomials satisfy (4*n^2+2*n)*P(n,x) = (27*n^2-27*n+6+(24*n^2-23*n+5)*x+(n^2-2*n+1)*x^2)*P(n-1,x) - ((9*n-3)*x+(10*n-4)*x^2+(n-1)*x^3)*d/dx P(n-1,x) for n >= 1, with P(0,x) = 1.","mathematica":"P[0, x_] := 1;\nP[n_, x_] := P[n, x] = Expand[Together[((27*n^2 - 27*n + 6 + (24*n^2 - 23*n + 5)*x + (n^2 - 2*n + 1)*x^2)*P[n - 1, x] - ((9*n - 3)*x + (10*n - 4)*x^2 + (n - 1)*x^3)*D[P[n - 1, x], x])/(4*n^2 + 2*n)]];\nTable[CoefficientList[P[n, x], x], {n, 0, 9}] // Flatten","pari":"P(N) = {my(v = vector(N + 1)); v[1] = 1; for(n = 1, N, my(i = n + 1); v[i] = ((27*n^2 - 27*n + 6 + (24*n^2 - 23*n + 5)*x + (n^2 - 2*n + 1)*x^2)*v[i - 1] - ((9*n - 3)*x + (10*n - 4)*x^2 + (n - 1)*x^3)*deriv(v[i - 1], x))/(4*n^2 + 2*n)); v};\nrow(n, p) = {my(c = Vecrev(p)); c};\nT(N) = {my(v = P(N)); concat(vector(#v, i, row(i - 1, v[i])))};\nT(9)","reading":{"first_row":0,"offset":0,"reversed":false,"trim_zeros":"none","regular_triangle":false}},{"oeis_id":"A104978","target":"reversed_triangle","first_row":0,"oeis_offset":0,"reversed":true,"trim_zeros":"none","regular_triangle":true,"rows_shown":10,"polytool_commit":"c48629374597092cc41ef4d6273f37991516f984","triangle_example":"Triangle begins:\n  0:    1;\n  1:    1,     1;\n  2:    2,     5,      3;\n  3:    5,    21,     28,      12;\n  4:   14,    84,    180,     165,      55;\n  5:   42,   330,    990,    1430,    1001,     273;\n  6:  132,  1287,   5005,   10010,   10920,    6188,    1428;\n  7:  429,  5005,  24024,   61880,   92820,   81396,   38760,    7752;\n  8: 1430, 19448, 111384,  352716,  678300,  813960,  596904,  245157,   43263;\n  9: 4862, 75582, 503880, 1899240, 4476780, 6864396, 6864396, 4326300, 1562275, 246675;\n","recurrence_sentence":"Row n lists the coefficients of P(n,x) in descending powers of x, where (4*n^2+2*n)*P(n,x) = (27*n^2-27*n+6+(24*n^2-23*n+5)*x+(n^2-2*n+1)*x^2)*P(n-1,x) - ((9*n-3)*x+(10*n-4)*x^2+(n-1)*x^3)*d/dx P(n-1,x) for n >= 1, with P(0,x) = 1.","mathematica":"P[0, x_] := 1;\nP[n_, x_] := P[n, x] = Expand[Together[((27*n^2 - 27*n + 6 + (24*n^2 - 23*n + 5)*x + (n^2 - 2*n + 1)*x^2)*P[n - 1, x] - ((9*n - 3)*x + (10*n - 4)*x^2 + (n - 1)*x^3)*D[P[n - 1, x], x])/(4*n^2 + 2*n)]];\nTable[Reverse[PadRight[CoefficientList[P[n, x], x], n + 1]], {n, 0, 9}] // Flatten","pari":"P(N) = {my(v = vector(N + 1)); v[1] = 1; for(n = 1, N, my(i = n + 1); v[i] = ((27*n^2 - 27*n + 6 + (24*n^2 - 23*n + 5)*x + (n^2 - 2*n + 1)*x^2)*v[i - 1] - ((9*n - 3)*x + (10*n - 4)*x^2 + (n - 1)*x^3)*deriv(v[i - 1], x))/(4*n^2 + 2*n)); v};\nrow(n, p) = {my(c = Vecrev(p)); c = concat(c, vector(n + 1 - #c)); c = Vecrev(c); c};\nT(N) = {my(v = P(N)); concat(vector(#v, i, row(i - 1, v[i])))};\nT(9)","reading":{"first_row":0,"offset":0,"reversed":true,"trim_zeros":"none","regular_triangle":true}},{"oeis_id":"A108426","target":"triangle","first_row":0,"oeis_offset":0,"reversed":false,"trim_zeros":"none","regular_triangle":true,"rows_shown":10,"polytool_commit":"c48629374597092cc41ef4d6273f37991516f984","triangle_example":"Triangle begins:\n  0:      1;\n  1:      1,       1;\n  2:      3,       5,       2;\n  3:     12,      28,      21,       5;\n  4:     55,     165,     180,      84,      14;\n  5:    273,    1001,    1430,     990,     330,      42;\n  6:   1428,    6188,   10920,   10010,    5005,    1287,     132;\n  7:   7752,   38760,   81396,   92820,   61880,   24024,    5005,    429;\n  8:  43263,  245157,  596904,  813960,  678300,  352716,  111384,  19448,  1430;\n  9: 246675, 1562275, 4326300, 6864396, 6864396, 4476780, 1899240, 503880, 75582, 4862;\n","recurrence_sentence":"The row polynomials satisfy (4*n^2+2*n)*P(n,x) = (27*n^2-27*n+6+(24*n^2-23*n+5)*x+(n^2-2*n+1)*x^2)*P(n-1,x) - ((9*n-3)*x+(10*n-4)*x^2+(n-1)*x^3)*d/dx P(n-1,x) for n >= 1, with P(0,x) = 1.","mathematica":"P[0, x_] := 1;\nP[n_, x_] := P[n, x] = Expand[Together[((27*n^2 - 27*n + 6 + (24*n^2 - 23*n + 5)*x + (n^2 - 2*n + 1)*x^2)*P[n - 1, x] - ((9*n - 3)*x + (10*n - 4)*x^2 + (n - 1)*x^3)*D[P[n - 1, x], x])/(4*n^2 + 2*n)]];\nTable[PadRight[CoefficientList[P[n, x], x], n + 1], {n, 0, 9}] // Flatten","pari":"P(N) = {my(v = vector(N + 1)); v[1] = 1; for(n = 1, N, my(i = n + 1); v[i] = ((27*n^2 - 27*n + 6 + (24*n^2 - 23*n + 5)*x + (n^2 - 2*n + 1)*x^2)*v[i - 1] - ((9*n - 3)*x + (10*n - 4)*x^2 + (n - 1)*x^3)*deriv(v[i - 1], x))/(4*n^2 + 2*n)); v};\nrow(n, p) = {my(c = Vecrev(p)); c = concat(c, vector(n + 1 - #c)); c};\nT(N) = {my(v = P(N)); concat(vector(#v, i, row(i - 1, v[i])))};\nT(9)","reading":{"first_row":0,"offset":0,"reversed":false,"trim_zeros":"none","regular_triangle":true}}],"derivation":{"root":"n-8e6b51ac707373f6","steps":[],"edges":[],"text":"A108426"},"headline":"A108426: Triangle read by rows: T(n,k) is number of paths from (0,0) to (3n,0) that stay in the first quadrant (but may touch the horizontal axis), consisting of steps u=(2,1),U=(1,2), or d=(1,-1) and have k peaks of the form Ud.","chain":null}
