{"id":"n-08ac2c6d9914754c","revision":2,"first_index":0,"fingerprint":"f6-454805add51456b0","name":"Triangle T(n, k) = coefficients of p(x, n) where p(x,n) = (x+1)*p(x, n-1) + n*(n-1)*x*p(x, n-2), read by rows.","polytool_family":null,"interpretation":null,"rows_observed":15,"degree_pattern":"affine","degree_slope":1,"degree_intercept":0,"palindromic":1,"gamma_positive":1,"nonnegative":1,"rr_by_factors":false,"rows":[["1"],["1","1"],["1","4","1"],["1","11","11","1"],["1","24","70","24","1"],["1","45","314","314","45","1"],["1","76","1079","2728","1079","76","1"],["1","119","3045","16995","16995","3045","119","1"],["1","176","7420","80464","186758","80464","7420","176","1"],["1","249","16164","307124","1490862","1490862","307124","16164","249","1"],["1","340","32253","991088","9039746","19789944","9039746","991088","32253","340","1"],["1","451","59983","2801381","43814474","192824510","192824510","43814474","2801381","59983","451","1"],["1","584","105314","7118760","177439471","1429885456","2997921628","1429885456","177439471","7118760","105314","584","1"],["1","741","176254","16581422","621573667","8442382871","34508430644","34508430644","8442382871","621573667","16581422","176254","741","1"],["1","924","283283","35924824","1933769409","41357940260","303189966507","614638597584","303189966507","41357940260","1933769409","35924824","283283","924","1"]],"degrees":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],"row_sums":["1","2","6","24","120","720","5040","40320","362880","3628800","39916800","479001600","6227020800","87178291200","1307674368000"],"nonn":true,"definitions":[{"position":0,"source":"oeis_catalog:A154986","source_kind":"oeis_catalog","equality_edge_id":null,"recurrence":{"first_index":0,"initial_polynomials":[["1"],["1","1"]],"recurrence":{"terms":[{"coeff":{"coeffs":[["1","1"]]},"deriv_order":0,"offset":1,"sign":"none"},{"coeff":{"coeffs":[["0","0"],["0","-1"],["0","1"]]},"deriv_order":0,"offset":2,"sign":"none"}]},"schema":"polytool.recurrence.v1"}},{"position":1,"source":"derived:reversal","source_kind":"derived","equality_edge_id":"e-b21254b1ce82559a","recurrence":{"first_index":0,"initial_polynomials":[["1"],["1","1"]],"recurrence":{"terms":[{"coeff":{"coeffs":[["0","0"],["0","-1"],["0","1"]]},"deriv_order":0,"offset":2,"sign":"none"},{"coeff":{"coeffs":[["1","1"]]},"deriv_order":0,"offset":1,"sign":"none"}]},"schema":"polytool.recurrence.v1"}}],"properties":[{"id":159441,"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-bad4de7d401fa939"]},{"id":159442,"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-3d59ef840ca39edf","e-bad4de7d401fa939"]},{"id":159443,"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-3d59ef840ca39edf","e-bad4de7d401fa939"]},{"id":159444,"position":3,"claim":"interlacing","from_index":1,"region_key":null,"provenance":"edges","claim_data":{"claim":"interlacing","from_index":1,"kind":"strict","orientation":"previous_interlaces_next"},"label":"Interlacing of consecutive rows","description":"Rows P_(m-1), P_m interlace (strict, previous interlaces next) for every m >= 1","region_exact":null,"edges":["e-bad4de7d401fa939"]},{"id":159445,"position":4,"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-3d59ef840ca39edf"]}],"region_exact":{},"incoming_edges":[{"id":"e-b21254b1ce82559a","operation":{"operation":"definition_equality"},"operation_detail":null,"conclusion_id":"n-08ac2c6d9914754c","premise_count":0,"theorem":"all-index identity Q_n = P_n certified by exact Ore-algebra division and identifying rows (polytool preserver-image certificate of the identity map)","lean_route":null,"lean_declarations":[],"certificate_hash":"238233186c7674a0d28604f7c28dffd834ec7ee6cef91d0f62e48ea2c1a8b60e","verification_polytool":"replayed","verification_lean":"not_attempted","claims":[],"premises":[]},{"id":"e-3d59ef840ca39edf","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-08ac2c6d9914754c","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":"9b466cb960bcab8781cc232a6831e7cb1858720f4c1dba0180c2e02f0e7255a4","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-08ac2c6d9914754c","role":"sequence","name":"Triangle T(n, k) = coefficients of p(x, n) where p(x,n) = (x+1)*p(x, n-1) + n*(n-1)*x*p(x, n-2), read by rows.","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-bad4de7d401fa939","operation":{"operation":"theorem_check","theorem":"liu_wang_derivative_lag"},"operation_detail":"liu_wang_derivative_lag","conclusion_id":"n-08ac2c6d9914754c","premise_count":0,"theorem":"L. L. Liu and Y. Wang, A unified approach to polynomial sequences with only real zeros, Adv. in Appl. Math. 38 (2007) 542-560, Theorem 2.1 with the interlacers f' and the lag row (strict form, as in the derivative-lag theorems of the RealRooted library, https://github.com/PerAlexandersson/RealRooted), with nonnegativity of the coefficients replaced by an exact induction keeping every root in (-inf, 0)","lean_route":"sign","lean_declarations":["RealRooted.threeTerm_interlaces_of_nonnegCoeffs","RealRooted.LiuWang.strictInterl_nonpos_lag_sequence"],"certificate_hash":"fc55c5690f3f8c32a3a152de13b35349962ade082fb461e583a6e48f20206408","verification_polytool":"replayed","verification_lean":"not_attempted","claims":[{"claim":"real_rooted","from_index":0,"region":{"upper":{"closed":false,"value":"0"}}},{"claim":"interlacing","from_index":1,"kind":"strict","orientation":"previous_interlaces_next"}],"premises":[]}],"used_by":[{"id":"e-14af6f76e3a2317a","operation":"basis_map","operation_detail":"A013611","conclusion_id":"n-a435593930610061","conclusion_name":"basis_map_A013611 of Triangle T(n, k) = coefficients of p(x, n) where p(x,n) = (x+1)*p(x, n-1) + n*(n-1)*x*p(x, n-2), read by rows."},{"id":"e-2276295daf37f5fe","operation":"basis_map","operation_detail":"A013609","conclusion_id":"n-3d92f6360b1286e9","conclusion_name":"basis_map_A013609 of Triangle T(n, k) = coefficients of p(x, n) where p(x,n) = (x+1)*p(x, n-1) + n*(n-1)*x*p(x, n-2), read by rows."},{"id":"e-25b99d1136b3c5e8","operation":"basis_map","operation_detail":"A013610","conclusion_id":"n-572ce0c0eb09055f","conclusion_name":"basis_map_A013610 of Triangle T(n, k) = coefficients of p(x, n) where p(x,n) = (x+1)*p(x, n-1) + n*(n-1)*x*p(x, n-2), read by rows."},{"id":"e-9042c8867d1aa2a0","operation":"basis_map","operation_detail":"A008277","conclusion_id":"n-64733b29110bcedc","conclusion_name":"basis_map_A008277 of Triangle T(n, k) = coefficients of p(x, n) where p(x,n) = (x+1)*p(x, n-1) + n*(n-1)*x*p(x, n-2), read by rows."},{"id":"e-d0341b4ac1663435","operation":"basis_map","operation_detail":"A007318","conclusion_id":"n-3ca9019ed589d9c3","conclusion_name":"basis_map_A007318 of Triangle T(n, k) = coefficients of p(x, n) where p(x,n) = (x+1)*p(x, n-1) + n*(n-1)*x*p(x, n-2), read by rows."},{"id":"e-36556341d5271807","operation":"gamma_polynomial","operation_detail":"scale 1, shift 0","conclusion_id":"n-eea7ec082f5ce396","conclusion_name":"gamma_polynomial of Triangle T(n, k) = coefficients of p(x, n) where p(x,n) = (x+1)*p(x, n-1) + n*(n-1)*x*p(x, n-2), read by rows."},{"id":"e-0313aea7b69c2126","operation":"preserver_image","operation_detail":"derivative_polynomial, shift 0","conclusion_id":"n-101c613c79ee0ad3","conclusion_name":"derivative of Triangle T(n, k) = coefficients of p(x, n) where p(x,n) = (x+1)*p(x, n-1) + n*(n-1)*x*p(x, n-2), read by rows."},{"id":"e-1ef33fb3ca062b95","operation":"preserver_image","operation_detail":"euler_polynomial, shift 0","conclusion_id":"n-2a3a7c185d653866","conclusion_name":"theta_plus_one of Triangle T(n, k) = coefficients of p(x, n) where p(x,n) = (x+1)*p(x, n-1) + n*(n-1)*x*p(x, n-2), read by rows."},{"id":"e-3d59ef840ca39edf","operation":"preserver_image","operation_detail":"reversal, shift 0","conclusion_id":"n-08ac2c6d9914754c","conclusion_name":"Triangle T(n, k) = coefficients of p(x, n) where p(x,n) = (x+1)*p(x, n-1) + n*(n-1)*x*p(x, n-2), read by rows."},{"id":"e-966c24255e4e84d9","operation":"preserver_image","operation_detail":"derivative_polynomial, shift 0","conclusion_id":"n-872f4101f77d70d2","conclusion_name":"one_plus_derivative of Triangle T(n, k) = coefficients of p(x, n) where p(x,n) = (x+1)*p(x, n-1) + n*(n-1)*x*p(x, n-2), read by rows."},{"id":"e-a51ab4bb22ccb5ba","operation":"preserver_image","operation_detail":"mobius, shift 0","conclusion_id":"n-3a3911337a5f8745","conclusion_name":"mobius_x_over_x_plus_one of Triangle T(n, k) = coefficients of p(x, n) where p(x,n) = (x+1)*p(x, n-1) + n*(n-1)*x*p(x, n-2), read by rows."},{"id":"e-fea99146cab206a8","operation":"preserver_image","operation_detail":"affine, shift 0","conclusion_id":"n-3ca9019ed589d9c3","conclusion_name":"basis_map_A007318 of Triangle T(n, k) = coefficients of p(x, n) where p(x,n) = (x+1)*p(x, n-1) + n*(n-1)*x*p(x, n-2), read by rows."}],"used_by_total":12,"links":[{"id":"l-0cd71b214bdb171f","kind":"oeis_match","node_a_id":"n-08ac2c6d9914754c","node_b_id":null,"fingerprint":null,"oeis_id":"A354074","in_catalog":0,"target":"row_sums","row_alignment":null,"rows_matched":null,"oeis_nonn":1,"details":{"alignment":{"first_row":2,"low_zeros_dropped":false,"oeis_offset":1,"oeis_term_position":1,"target":"row_sums","terms_compared":13},"in_catalog":false,"oeis_id":"A354074","oeis_nonn":true},"other_id":null,"other":null},{"id":"l-68a4b0ab4e9dd342","kind":"oeis_match","node_a_id":"n-08ac2c6d9914754c","node_b_id":null,"fingerprint":null,"oeis_id":"A000142","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":1,"target":"row_sums","terms_compared":15},"in_catalog":false,"oeis_id":"A000142","oeis_nonn":true},"other_id":null,"other":null},{"id":"l-6bcac23ce785140d","kind":"oeis_match","node_a_id":"n-08ac2c6d9914754c","node_b_id":null,"fingerprint":null,"oeis_id":"A338112","in_catalog":0,"target":"row_sums","row_alignment":null,"rows_matched":null,"oeis_nonn":1,"details":{"alignment":{"first_row":2,"low_zeros_dropped":false,"oeis_offset":1,"oeis_term_position":2,"target":"row_sums","terms_compared":13},"in_catalog":false,"oeis_id":"A338112","oeis_nonn":true},"other_id":null,"other":null},{"id":"l-74237de9d0a1e73d","kind":"oeis_match","node_a_id":"n-08ac2c6d9914754c","node_b_id":null,"fingerprint":null,"oeis_id":"A154986","in_catalog":1,"target":"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":"triangle","terms_compared":55},"in_catalog":true,"oeis_id":"A154986","oeis_nonn":true},"other_id":null,"other":null},{"id":"l-88241895826d65d9","kind":"oeis_match","node_a_id":"n-08ac2c6d9914754c","node_b_id":null,"fingerprint":null,"oeis_id":"A104150","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":2,"target":"row_sums","terms_compared":15},"in_catalog":false,"oeis_id":"A104150","oeis_nonn":true},"other_id":null,"other":null},{"id":"l-a6f01d8be7c32bb3","kind":"oeis_match","node_a_id":"n-08ac2c6d9914754c","node_b_id":null,"fingerprint":null,"oeis_id":"A159333","in_catalog":0,"target":"row_sums","row_alignment":null,"rows_matched":null,"oeis_nonn":0,"details":{"alignment":{"first_row":0,"low_zeros_dropped":false,"oeis_offset":-2,"oeis_term_position":3,"target":"row_sums","terms_compared":15},"in_catalog":false,"oeis_id":"A159333","oeis_nonn":false},"other_id":null,"other":null},{"id":"l-bc7e11b9624d2ae2","kind":"oeis_match","node_a_id":"n-08ac2c6d9914754c","node_b_id":null,"fingerprint":null,"oeis_id":"A358185","in_catalog":0,"target":"row_sums","row_alignment":null,"rows_matched":null,"oeis_nonn":0,"details":{"alignment":{"first_row":0,"low_zeros_dropped":false,"oeis_offset":0,"oeis_term_position":3,"target":"row_sums","terms_compared":15},"in_catalog":false,"oeis_id":"A358185","oeis_nonn":false},"other_id":null,"other":null},{"id":"l-e0f8cb64d0d0d4aa","kind":"oeis_match","node_a_id":"n-08ac2c6d9914754c","node_b_id":null,"fingerprint":null,"oeis_id":"A370360","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":1,"oeis_term_position":0,"target":"row_sums","terms_compared":15},"in_catalog":false,"oeis_id":"A370360","oeis_nonn":true},"other_id":null,"other":null},{"id":"l-f9aa20c07cb595f1","kind":"oeis_match","node_a_id":"n-08ac2c6d9914754c","node_b_id":null,"fingerprint":null,"oeis_id":"A124355","in_catalog":0,"target":"row_sums","row_alignment":null,"rows_matched":null,"oeis_nonn":1,"details":{"alignment":{"first_row":1,"low_zeros_dropped":false,"oeis_offset":1,"oeis_term_position":2,"target":"row_sums","terms_compared":14},"in_catalog":false,"oeis_id":"A124355","oeis_nonn":true},"other_id":null,"other":null},{"id":"l-fcfac88928245ba8","kind":"oeis_match","node_a_id":"n-08ac2c6d9914754c","node_b_id":null,"fingerprint":null,"oeis_id":"A154986","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":"A154986","oeis_nonn":true},"other_id":null,"other":null}],"oeis":[{"oeis_id":"A154986","relation":"identification"},{"oeis_id":"A154986","relation":"match_reversed_triangle"},{"oeis_id":"A000142","relation":"match_row_sums"},{"oeis_id":"A104150","relation":"match_row_sums"},{"oeis_id":"A124355","relation":"match_row_sums"},{"oeis_id":"A159333","relation":"match_row_sums"},{"oeis_id":"A338112","relation":"match_row_sums"},{"oeis_id":"A354074","relation":"match_row_sums"},{"oeis_id":"A358185","relation":"match_row_sums"},{"oeis_id":"A370360","relation":"match_row_sums"},{"oeis_id":"A154986","relation":"match_triangle"}],"bfiles":[{"node_id":"n-08ac2c6d9914754c","oeis_id":"A154986","target":"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":25008},{"node_id":"n-08ac2c6d9914754c","oeis_id":"A154986","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":25008}],"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: 1,   4,     1;\n  3: 1,  11,    11,      1;\n  4: 1,  24,    70,     24,       1;\n  5: 1,  45,   314,    314,      45,       1;\n  6: 1,  76,  1079,   2728,    1079,      76,      1;\n  7: 1, 119,  3045,  16995,   16995,    3045,    119,     1;\n  8: 1, 176,  7420,  80464,  186758,   80464,   7420,   176,   1;\n  9: 1, 249, 16164, 307124, 1490862, 1490862, 307124, 16164, 249, 1;\n","recurrence_sentence":"The row polynomials satisfy P(n,x) = (1+x)*P(n-1,x) + (n^2-n)*x*P(n-2,x) for n >= 2, with P(0,x) = 1, P(1,x) = 1 + x.","mathematica":"P[0, x_] := 1;\nP[1, x_] := 1 + x;\nP[n_, x_] := P[n, x] = Expand[(1 + x)*P[n - 1, x] + (n^2 - n)*x*P[n - 2, x]];\nTable[CoefficientList[P[n, x], x], {n, 0, 9}] // Flatten","pari":"P(N) = {my(v = vector(N + 1)); v[1] = 1; v[2] = 1 + x; for(n = 2, N, my(i = n + 1); v[i] = (1 + x)*v[i - 1] + (n^2 - n)*x*v[i - 2]); 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":"A154986","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: 1,   4,     1;\n  3: 1,  11,    11,      1;\n  4: 1,  24,    70,     24,       1;\n  5: 1,  45,   314,    314,      45,       1;\n  6: 1,  76,  1079,   2728,    1079,      76,      1;\n  7: 1, 119,  3045,  16995,   16995,    3045,    119,     1;\n  8: 1, 176,  7420,  80464,  186758,   80464,   7420,   176,   1;\n  9: 1, 249, 16164, 307124, 1490862, 1490862, 307124, 16164, 249, 1;\n","recurrence_sentence":"The row polynomials satisfy P(n,x) = (1+x)*P(n-1,x) + (n^2-n)*x*P(n-2,x) for n >= 2, with P(0,x) = 1, P(1,x) = 1 + x.","mathematica":"P[0, x_] := 1;\nP[1, x_] := 1 + x;\nP[n_, x_] := P[n, x] = Expand[(1 + x)*P[n - 1, x] + (n^2 - n)*x*P[n - 2, x]];\nTable[PadRight[CoefficientList[P[n, x], x], n + 1], {n, 0, 9}] // Flatten","pari":"P(N) = {my(v = vector(N + 1)); v[1] = 1; v[2] = 1 + x; for(n = 2, N, my(i = n + 1); v[i] = (1 + x)*v[i - 1] + (n^2 - n)*x*v[i - 2]); 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}},{"oeis_id":"A154986","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: 1,   4,     1;\n  3: 1,  11,    11,      1;\n  4: 1,  24,    70,     24,       1;\n  5: 1,  45,   314,    314,      45,       1;\n  6: 1,  76,  1079,   2728,    1079,      76,      1;\n  7: 1, 119,  3045,  16995,   16995,    3045,    119,     1;\n  8: 1, 176,  7420,  80464,  186758,   80464,   7420,   176,   1;\n  9: 1, 249, 16164, 307124, 1490862, 1490862, 307124, 16164, 249, 1;\n","recurrence_sentence":"Row n lists the coefficients of P(n,x) in descending powers of x, where P(n,x) = (1+x)*P(n-1,x) + (n^2-n)*x*P(n-2,x) for n >= 2, with P(0,x) = 1, P(1,x) = 1 + x.","mathematica":"P[0, x_] := 1;\nP[1, x_] := 1 + x;\nP[n_, x_] := P[n, x] = Expand[(1 + x)*P[n - 1, x] + (n^2 - n)*x*P[n - 2, x]];\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; v[2] = 1 + x; for(n = 2, N, my(i = n + 1); v[i] = (1 + x)*v[i - 1] + (n^2 - n)*x*v[i - 2]); 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}}],"derivation":{"root":"n-08ac2c6d9914754c","steps":[],"edges":[],"text":"A154986"},"headline":"A154986: Triangle T(n, k) = coefficients of p(x, n) where p(x,n) = (x+1)*p(x, n-1) + n*(n-1)*x*p(x, n-2), read by rows.","chain":null}
