{"id":"n-2a05d8340c329b21","revision":2,"first_index":1,"fingerprint":"f6-2305441cae17e38c","name":"narayana","polytool_family":"narayana","interpretation":null,"rows_observed":15,"degree_pattern":"affine","degree_slope":1,"degree_intercept":-1,"palindromic":1,"gamma_positive":1,"nonnegative":1,"rr_by_factors":false,"rows":[["1"],["1","1"],["1","3","1"],["1","6","6","1"],["1","10","20","10","1"],["1","15","50","50","15","1"],["1","21","105","175","105","21","1"],["1","28","196","490","490","196","28","1"],["1","36","336","1176","1764","1176","336","36","1"],["1","45","540","2520","5292","5292","2520","540","45","1"],["1","55","825","4950","13860","19404","13860","4950","825","55","1"],["1","66","1210","9075","32670","60984","60984","32670","9075","1210","66","1"],["1","78","1716","15730","70785","169884","226512","169884","70785","15730","1716","78","1"],["1","91","2366","26026","143143","429429","736164","736164","429429","143143","26026","2366","91","1"],["1","105","3185","41405","273273","1002001","2147145","2760615","2147145","1002001","273273","41405","3185","105","1"]],"degrees":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],"row_sums":["1","2","5","14","42","132","429","1430","4862","16796","58786","208012","742900","2674440","9694845"],"nonn":true,"definitions":[{"position":0,"source":"named_family:narayana","source_kind":"named_family","equality_edge_id":null,"recurrence":{"first_index":1,"initial_polynomials":[["1"],["1","1"]],"recurrence":{"denominator":{"coeffs":[["1"],["1"]]},"terms":[{"coeff":{"coeffs":[["-1","-1"],["2","2"]]},"deriv_order":0,"offset":1,"sign":"none"},{"coeff":{"coeffs":[["2","-4","2"],["-1","2","-1"]]},"deriv_order":0,"offset":2,"sign":"none"}]},"schema":"polytool.recurrence.v1"}},{"position":1,"source":"derived:reversal","source_kind":"derived","equality_edge_id":"e-7615e517905987bb","recurrence":{"first_index":1,"initial_polynomials":[["1"]],"recurrence":{"denominator":{"coeffs":[["1"],["1"]]},"terms":[{"coeff":{"coeffs":[["1","-3"],["1","3"]]},"deriv_order":0,"offset":1,"sign":"none"},{"coeff":{"coeffs":[["0","2","-2"]]},"deriv_order":1,"offset":1,"sign":"none"}]},"schema":"polytool.recurrence.v1"}}],"properties":[{"id":158170,"position":0,"claim":"real_rooted","from_index":1,"region_key":"(-inf, +inf)","provenance":"edges","claim_data":{"claim":"real_rooted","from_index":1,"region":{}},"label":"Real-rooted","description":"Every row P_n, n >= 1, is zero or real-rooted with all roots in (-inf, +inf)","region_exact":null,"edges":["e-65e2d844e9e0e220"]},{"id":158171,"position":1,"claim":"real_rooted","from_index":1,"region_key":"(-inf, 0)","provenance":"edges","claim_data":{"claim":"real_rooted","from_index":1,"region":{"upper":{"closed":false,"value":"0"}}},"label":"Real-rooted","description":"Every row P_n, n >= 1, is zero or real-rooted with all roots in (-inf, 0)","region_exact":null,"edges":["e-46a461774e271ec3"]},{"id":158172,"position":2,"claim":"one_signed_coefficients","from_index":1,"region_key":null,"provenance":"derived_from_edges","claim_data":{"alternating":false,"claim":"one_signed_coefficients","from_index":1},"label":"Coefficients of one sign","description":"Every nonzero row, n >= 1: the coefficients of P_n have one sign","region_exact":null,"edges":["e-29ef477df4172e22","e-46a461774e271ec3"]},{"id":158173,"position":3,"claim":"hadamard_kernel","from_index":1,"region_key":null,"provenance":"derived_from_edges","claim_data":{"claim":"hadamard_kernel","from_index":1},"label":"Hadamard kernel (Malo)","description":"Rows P_n, n >= 1, are Hadamard kernels (preserve real-rootedness)","region_exact":null,"edges":["e-29ef477df4172e22","e-46a461774e271ec3"]},{"id":158174,"position":4,"claim":"interlacing","from_index":2,"region_key":null,"provenance":"edges","claim_data":{"claim":"interlacing","from_index":2,"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 >= 2","region_exact":null,"edges":["e-46a461774e271ec3"]},{"id":158175,"position":5,"claim":"real_rooted","from_index":1,"region_key":"(-inf, 0]","provenance":"edges","claim_data":{"claim":"real_rooted","from_index":1,"region":{"upper":{"closed":true,"value":"0"}}},"label":"Real-rooted","description":"Every row P_n, n >= 1, is zero or real-rooted with all roots in (-inf, 0]","region_exact":null,"edges":["e-29ef477df4172e22"]}],"region_exact":{},"incoming_edges":[{"id":"e-7615e517905987bb","operation":{"operation":"definition_equality"},"operation_detail":null,"conclusion_id":"n-2a05d8340c329b21","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":"1894d82c382d2d0446586e38b9a7dd1daad3224fe62d3b39fb001bd9a82f7579","verification_polytool":"replayed","verification_lean":"not_attempted","claims":[],"premises":[]},{"id":"e-29ef477df4172e22","operation":{"index_shift":0,"operation":"preserver_image","operator":"{\"shape\":\"reversal\",\"schedule\":{\"first_index\":1,\"first_degree\":0,\"step\":1}}"},"operation_detail":"reversal, shift 0","conclusion_id":"n-2a05d8340c329b21","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":"8076ae428bd5d3ea27845bef3992e41ee55f37671a6a8cc11b7df7c5043e8830","verification_polytool":"replayed","verification_lean":"not_attempted","claims":[{"claim":"real_rooted","from_index":1,"region":{"upper":{"closed":true,"value":"0"}}}],"premises":[{"position":0,"node_id":"n-2a05d8340c329b21","role":"sequence","name":"narayana","uses":{"claim":"real_rooted","from_index":1,"region":{"upper":{"closed":true,"value":"0"}}},"uses_text":"Every row P_n, n >= 1, is zero or real-rooted with all roots in (-inf, 0]"}]},{"id":"e-46a461774e271ec3","operation":{"operation":"theorem_check","theorem":"three_term_recurrence"},"operation_detail":"three_term_recurrence","conclusion_id":"n-2a05d8340c329b21","premise_count":0,"theorem":"three-term recurrence Q_n = (a_n y + b_n) Q_(n-1) - c_n Q_(n-2) with a_n != 0 and beta_n = c_n / (a_n a_(n-1)) > 0: simple real roots and strict interlacing of consecutive rows (zero separation for orthogonal polynomials: G. Szeg\u0151, Orthogonal Polynomials, \u00a73.3; Favard, C. R. Acad. Sci. Paris 200 (1935)); root regions by a positive-ratio (chain-sequence) induction","lean_route":null,"lean_declarations":[],"certificate_hash":"28785af8deae2c766c42b8f5c054765d210c08f78e72ef793c8bdea79bbeffc6","verification_polytool":"replayed","verification_lean":"not_attempted","claims":[{"claim":"real_rooted","from_index":1,"region":{"upper":{"closed":false,"value":"0"}}},{"claim":"interlacing","from_index":2,"kind":"strict","orientation":"previous_interlaces_next"}],"premises":[]},{"id":"e-65e2d844e9e0e220","operation":{"operation":"theorem_check","theorem":"three_term_recurrence"},"operation_detail":"three_term_recurrence","conclusion_id":"n-2a05d8340c329b21","premise_count":0,"theorem":"three-term recurrence Q_n = (a_n y + b_n) Q_(n-1) - c_n Q_(n-2) with a_n != 0 and beta_n = c_n / (a_n a_(n-1)) > 0: simple real roots and strict interlacing of consecutive rows (zero separation for orthogonal polynomials: G. Szeg\u0151, Orthogonal Polynomials, \u00a73.3; Favard, C. R. Acad. Sci. Paris 200 (1935)); root regions by a positive-ratio (chain-sequence) induction","lean_route":null,"lean_declarations":[],"certificate_hash":"196ae69bd87c5fd60c39877e7d69ce2abc898134ee79cc287b4cc21323883403","verification_polytool":"replayed","verification_lean":"not_attempted","claims":[{"claim":"real_rooted","from_index":1,"region":{}}],"premises":[]}],"used_by":[{"id":"e-21b441a6a6a148f7","operation":"basis_map","operation_detail":"A013610","conclusion_id":"n-9c4b1c1c0d7d0597","conclusion_name":"basis_map_A013610 of narayana"},{"id":"e-2f325d6b3b1beb16","operation":"basis_map","operation_detail":"A013609","conclusion_id":"n-f9bed40d8798da1b","conclusion_name":"basis_map_A013609 of narayana"},{"id":"e-58b8cdf8af6ac600","operation":"basis_map","operation_detail":"A007318","conclusion_id":"n-6f30da2298fd30ba","conclusion_name":"basis_map_A007318 of narayana"},{"id":"e-9b44e0c74e7ea693","operation":"basis_map","operation_detail":"A008277","conclusion_id":"n-a91ed9a3e111e514","conclusion_name":"basis_map_A008277 of narayana"},{"id":"e-e6f59c3f9755ffec","operation":"basis_map","operation_detail":"A013611","conclusion_id":"n-3af50523900b3357","conclusion_name":"basis_map_A013611 of narayana"},{"id":"e-3261655b8c5a1522","operation":"gamma_polynomial","operation_detail":"scale 1, shift 1","conclusion_id":"n-169bd483754ab390","conclusion_name":"Triangular array of Motzkin polynomial coefficients."},{"id":"e-dbb6454df235fcfe","operation":"gamma_polynomial","operation_detail":"scale 1, shift 0","conclusion_id":"n-6bb2422ce01062d8","conclusion_name":"gamma_polynomial of narayana"},{"id":"e-041eea8fc0a7af05","operation":"preserver_image","operation_detail":"euler_polynomial, shift 1","conclusion_id":"n-984320118b653f6b","conclusion_name":"Triangle read by rows, n>=1, 1<=k<=n, T(n,k) = k*binomial(n,k)^2/(n-k+1)."},{"id":"e-0a91669a22bbc945","operation":"preserver_image","operation_detail":"euler_polynomial, shift 0","conclusion_id":"n-afe255891f244593","conclusion_name":"theta_plus_one of narayana"},{"id":"e-1770020eb0a9c55e","operation":"preserver_image","operation_detail":"euler_polynomial, shift 0","conclusion_id":"n-ab83e9966290e807","conclusion_name":"theta_plus_one_squared of narayana"},{"id":"e-29ef477df4172e22","operation":"preserver_image","operation_detail":"reversal, shift 0","conclusion_id":"n-2a05d8340c329b21","conclusion_name":"narayana"},{"id":"e-50c973bfb8d0ccf1","operation":"preserver_image","operation_detail":"mobius, shift 0","conclusion_id":"n-4d61144188f12208","conclusion_name":"mobius_x_over_x_plus_one of narayana"},{"id":"e-80d7d7190d4bcb89","operation":"preserver_image","operation_detail":"derivative_polynomial, shift 0","conclusion_id":"n-28f1bce6fca8e347","conclusion_name":"derivative of narayana"},{"id":"e-9c1368c49a29af4d","operation":"preserver_image","operation_detail":"affine, shift 0","conclusion_id":"n-6f30da2298fd30ba","conclusion_name":"basis_map_A007318 of narayana"},{"id":"e-c4aee2e8ba50f587","operation":"preserver_image","operation_detail":"derivative_polynomial, shift 0","conclusion_id":"n-085cc2fc18757071","conclusion_name":"one_plus_derivative of narayana"}],"used_by_total":15,"links":[{"id":"l-4bc2236da77e4216","kind":"fingerprint_related","node_a_id":"n-2a05d8340c329b21","node_b_id":"n-c2eaf5212a4dec13","fingerprint":"f6-2305441cae17e38c","oeis_id":null,"in_catalog":null,"target":null,"row_alignment":null,"rows_matched":null,"oeis_nonn":null,"details":{"fingerprint":"f6-2305441cae17e38c"},"other_id":"n-c2eaf5212a4dec13","other":{"id":"n-c2eaf5212a4dec13","name":"Triangle of Narayana numbers T(n,k) = C(n-1,k-1)*C(n,k-1)/k with 1 <= k <= n, read by rows. Also called the Catalan triangle.","first_index":0,"fingerprint":"f6-2305441cae17e38c","polytool_family":null,"degree_pattern":"affine","palindromic":1,"gamma_positive":1,"nonnegative":1,"rr_by_factors":0,"preview_rows":[["1"],["1","1"],["1","3","1"]],"card_rows":[["1"],["1","1"],["1","3","1"],["1","6","6","1"]],"row_sums_preview":["1","2","5","14","42","132","429","1430"],"regions":["(-inf, +inf)","(-inf, 0)","(-inf, 0]"],"region_exact":{},"oeis_ids":["A001263"],"derivation":{"root":"n-c2eaf5212a4dec13","steps":[],"edges":[],"text":"A001263"},"headline":"A001263: Triangle of Narayana numbers T(n,k) = C(n-1,k-1)*C(n,k-1)/k with 1 <= k <= n, read by rows. Also called the Catalan triangle.","chain":null}},{"id":"l-8144a2a8b04638ed","kind":"fingerprint_related","node_a_id":"n-2a05d8340c329b21","node_b_id":"n-4ea7eb31fd1a1554","fingerprint":"f6-2305441cae17e38c","oeis_id":null,"in_catalog":null,"target":null,"row_alignment":null,"rows_matched":null,"oeis_nonn":null,"details":{"fingerprint":"f6-2305441cae17e38c"},"other_id":"n-4ea7eb31fd1a1554","other":{"id":"n-4ea7eb31fd1a1554","name":"derivative of Triangle read by rows. T(n, k) = binomial(n, k)*binomial(n - 1, n - k - 1).","first_index":0,"fingerprint":"f6-2305441cae17e38c","polytool_family":null,"degree_pattern":"affine","palindromic":1,"gamma_positive":1,"nonnegative":1,"rr_by_factors":0,"preview_rows":[[],[],["2"]],"card_rows":[["2"],["6","6"],["12","36","12"],["20","120","120","20"]],"row_sums_preview":["0","0","2","12","60","280","1260","5544"],"regions":["(-inf, 0]"],"region_exact":{},"oeis_ids":[],"derivation":{"root":"n-b1b19325e0094118","steps":["D"],"edges":["e-2f63263d248c26b4"],"text":"A367270 \u2192 D"},"headline":"A367270 \u2192 D","chain":null}},{"id":"l-f2ffb8a669ba508e","kind":"fingerprint_related","node_a_id":"n-2a05d8340c329b21","node_b_id":"n-984320118b653f6b","fingerprint":"f6-2305441cae17e38c","oeis_id":null,"in_catalog":null,"target":null,"row_alignment":null,"rows_matched":null,"oeis_nonn":null,"details":{"fingerprint":"f6-2305441cae17e38c"},"other_id":"n-984320118b653f6b","other":{"id":"n-984320118b653f6b","name":"Triangle read by rows, n>=1, 1<=k<=n, T(n,k) = k*binomial(n,k)^2/(n-k+1).","first_index":0,"fingerprint":"f6-2305441cae17e38c","polytool_family":null,"degree_pattern":"affine","palindromic":1,"gamma_positive":1,"nonnegative":1,"rr_by_factors":0,"preview_rows":[["1"],["2","2"],["3","9","3"]],"card_rows":[["1"],["2","2"],["3","9","3"],["4","24","24","4"]],"row_sums_preview":["1","4","15","56","210","792","3003","11440"],"regions":["(-inf, 0]","(-inf, 0)","(-inf, +inf)"],"region_exact":{},"oeis_ids":["A132812"],"derivation":{"root":"n-984320118b653f6b","steps":[],"edges":[],"text":"A132812"},"headline":"A132812: Triangle read by rows, n>=1, 1<=k<=n, T(n,k) = k*binomial(n,k)^2/(n-k+1).","chain":null}},{"id":"l-2c1ef4187321cb86","kind":"oeis_match","node_a_id":"n-2a05d8340c329b21","node_b_id":null,"fingerprint":null,"oeis_id":"A230585","in_catalog":0,"target":"row_sums","row_alignment":null,"rows_matched":null,"oeis_nonn":1,"details":{"alignment":{"first_row":3,"low_zeros_dropped":false,"oeis_offset":1,"oeis_term_position":1,"target":"row_sums","terms_compared":13},"in_catalog":false,"oeis_id":"A230585","oeis_nonn":true},"other_id":null,"other":null},{"id":"l-580529151a46d8d1","kind":"oeis_match","node_a_id":"n-2a05d8340c329b21","node_b_id":null,"fingerprint":null,"oeis_id":"A000108","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":0,"oeis_term_position":1,"target":"row_sums","terms_compared":15},"in_catalog":false,"oeis_id":"A000108","oeis_nonn":true},"other_id":null,"other":null},{"id":"l-72881fd3d22cc2fa","kind":"oeis_match","node_a_id":"n-2a05d8340c329b21","node_b_id":null,"fingerprint":null,"oeis_id":"A001263","in_catalog":1,"target":"triangle","row_alignment":"tabl","rows_matched":10,"oeis_nonn":1,"details":{"alignment":{"first_row":1,"low_zeros_dropped":false,"oeis_offset":1,"oeis_term_position":0,"row_alignment":"tabl","rows_matched":10,"target":"triangle","terms_compared":64},"in_catalog":true,"oeis_id":"A001263","oeis_nonn":true},"other_id":null,"other":null},{"id":"l-c4ebf9d8be6e2d21","kind":"oeis_match","node_a_id":"n-2a05d8340c329b21","node_b_id":null,"fingerprint":null,"oeis_id":"A120588","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":0,"oeis_term_position":2,"target":"row_sums","terms_compared":15},"in_catalog":false,"oeis_id":"A120588","oeis_nonn":true},"other_id":null,"other":null},{"id":"l-f73ef2af36557fa5","kind":"oeis_match","node_a_id":"n-2a05d8340c329b21","node_b_id":null,"fingerprint":null,"oeis_id":"A001263","in_catalog":1,"target":"reversed_triangle","row_alignment":"tabl","rows_matched":10,"oeis_nonn":1,"details":{"alignment":{"first_row":1,"low_zeros_dropped":false,"oeis_offset":1,"oeis_term_position":0,"row_alignment":"tabl","rows_matched":10,"target":"reversed_triangle","terms_compared":64},"in_catalog":true,"oeis_id":"A001263","oeis_nonn":true},"other_id":null,"other":null}],"oeis":[{"oeis_id":"A001263","relation":"match_reversed_triangle"},{"oeis_id":"A000108","relation":"match_row_sums"},{"oeis_id":"A120588","relation":"match_row_sums"},{"oeis_id":"A230585","relation":"match_row_sums"},{"oeis_id":"A001263","relation":"match_triangle"}],"bfiles":[{"node_id":"n-2a05d8340c329b21","oeis_id":"A001263","target":"triangle","oeis_offset":1,"first_row":1,"rows_used":44,"terms_matched":64,"oeis_terms_agreeing":64,"oeis_terms_available":64,"term_count":990,"raw_size":15309},{"node_id":"n-2a05d8340c329b21","oeis_id":"A001263","target":"reversed_triangle","oeis_offset":1,"first_row":1,"rows_used":44,"terms_matched":64,"oeis_terms_agreeing":64,"oeis_terms_available":64,"term_count":990,"raw_size":15309}],"oeis_texts":[{"oeis_id":"","target":"node","first_row":1,"oeis_offset":1,"reversed":false,"trim_zeros":"none","regular_triangle":false,"rows_shown":10,"polytool_commit":"c48629374597092cc41ef4d6273f37991516f984","triangle_example":"Triangle begins:\n   1: 1;\n   2: 1,  1;\n   3: 1,  3,   1;\n   4: 1,  6,   6,    1;\n   5: 1, 10,  20,   10,    1;\n   6: 1, 15,  50,   50,   15,    1;\n   7: 1, 21, 105,  175,  105,   21,    1;\n   8: 1, 28, 196,  490,  490,  196,   28,   1;\n   9: 1, 36, 336, 1176, 1764, 1176,  336,  36,  1;\n  10: 1, 45, 540, 2520, 5292, 5292, 2520, 540, 45, 1;\n","recurrence_sentence":"The row polynomials satisfy (n+1)*P(n,x) = (2*n-1+(2*n-1)*x)*P(n-1,x) - (n-2-(2*n-4)*x+(n-2)*x^2)*P(n-2,x) for n >= 3, with P(1,x) = 1, P(2,x) = 1 + x.","mathematica":"P[1, x_] := 1;\nP[2, x_] := 1 + x;\nP[n_, x_] := P[n, x] = Expand[Together[((2*n - 1 + (2*n - 1)*x)*P[n - 1, x] - (n - 2 - (2*n - 4)*x + (n - 2)*x^2)*P[n - 2, x])/(n + 1)]];\nTable[CoefficientList[P[n, x], x], {n, 1, 10}] // Flatten","pari":"P(N) = {my(v = vector(N)); v[1] = 1; v[2] = 1 + x; for(n = 3, N, my(i = n); v[i] = ((2*n - 1 + (2*n - 1)*x)*v[i - 1] - (n - 2 - (2*n - 4)*x + (n - 2)*x^2)*v[i - 2])/(n + 1)); v};\nrow(n, p) = {my(c = Vecrev(p)); c};\nT(N) = {my(v = P(N)); concat(vector(#v, i, row(i, v[i])))};\nT(10)","reading":{"first_row":1,"offset":1,"reversed":false,"trim_zeros":"none","regular_triangle":false}},{"oeis_id":"A001263","target":"triangle","first_row":1,"oeis_offset":1,"reversed":false,"trim_zeros":"none","regular_triangle":true,"rows_shown":10,"polytool_commit":"c48629374597092cc41ef4d6273f37991516f984","triangle_example":"Triangle begins:\n   1: 1;\n   2: 1,  1;\n   3: 1,  3,   1;\n   4: 1,  6,   6,    1;\n   5: 1, 10,  20,   10,    1;\n   6: 1, 15,  50,   50,   15,    1;\n   7: 1, 21, 105,  175,  105,   21,    1;\n   8: 1, 28, 196,  490,  490,  196,   28,   1;\n   9: 1, 36, 336, 1176, 1764, 1176,  336,  36,  1;\n  10: 1, 45, 540, 2520, 5292, 5292, 2520, 540, 45, 1;\n","recurrence_sentence":"The row polynomials satisfy (n+1)*P(n,x) = (2*n-1+(2*n-1)*x)*P(n-1,x) - (n-2-(2*n-4)*x+(n-2)*x^2)*P(n-2,x) for n >= 3, with P(1,x) = 1, P(2,x) = 1 + x.","mathematica":"P[1, x_] := 1;\nP[2, x_] := 1 + x;\nP[n_, x_] := P[n, x] = Expand[Together[((2*n - 1 + (2*n - 1)*x)*P[n - 1, x] - (n - 2 - (2*n - 4)*x + (n - 2)*x^2)*P[n - 2, x])/(n + 1)]];\nTable[PadRight[CoefficientList[P[n, x], x], n], {n, 1, 10}] // Flatten","pari":"P(N) = {my(v = vector(N)); v[1] = 1; v[2] = 1 + x; for(n = 3, N, my(i = n); v[i] = ((2*n - 1 + (2*n - 1)*x)*v[i - 1] - (n - 2 - (2*n - 4)*x + (n - 2)*x^2)*v[i - 2])/(n + 1)); v};\nrow(n, p) = {my(c = Vecrev(p)); c = concat(c, vector(n - #c)); c};\nT(N) = {my(v = P(N)); concat(vector(#v, i, row(i, v[i])))};\nT(10)","reading":{"first_row":1,"offset":1,"reversed":false,"trim_zeros":"none","regular_triangle":true}},{"oeis_id":"A001263","target":"reversed_triangle","first_row":1,"oeis_offset":1,"reversed":true,"trim_zeros":"none","regular_triangle":true,"rows_shown":10,"polytool_commit":"c48629374597092cc41ef4d6273f37991516f984","triangle_example":"Triangle begins:\n   1: 1;\n   2: 1,  1;\n   3: 1,  3,   1;\n   4: 1,  6,   6,    1;\n   5: 1, 10,  20,   10,    1;\n   6: 1, 15,  50,   50,   15,    1;\n   7: 1, 21, 105,  175,  105,   21,    1;\n   8: 1, 28, 196,  490,  490,  196,   28,   1;\n   9: 1, 36, 336, 1176, 1764, 1176,  336,  36,  1;\n  10: 1, 45, 540, 2520, 5292, 5292, 2520, 540, 45, 1;\n","recurrence_sentence":"Row n lists the coefficients of P(n,x) in descending powers of x, where (n+1)*P(n,x) = (2*n-1+(2*n-1)*x)*P(n-1,x) - (n-2-(2*n-4)*x+(n-2)*x^2)*P(n-2,x) for n >= 3, with P(1,x) = 1, P(2,x) = 1 + x.","mathematica":"P[1, x_] := 1;\nP[2, x_] := 1 + x;\nP[n_, x_] := P[n, x] = Expand[Together[((2*n - 1 + (2*n - 1)*x)*P[n - 1, x] - (n - 2 - (2*n - 4)*x + (n - 2)*x^2)*P[n - 2, x])/(n + 1)]];\nTable[Reverse[PadRight[CoefficientList[P[n, x], x], n]], {n, 1, 10}] // Flatten","pari":"P(N) = {my(v = vector(N)); v[1] = 1; v[2] = 1 + x; for(n = 3, N, my(i = n); v[i] = ((2*n - 1 + (2*n - 1)*x)*v[i - 1] - (n - 2 - (2*n - 4)*x + (n - 2)*x^2)*v[i - 2])/(n + 1)); v};\nrow(n, p) = {my(c = Vecrev(p)); c = concat(c, vector(n - #c)); c = Vecrev(c); c};\nT(N) = {my(v = P(N)); concat(vector(#v, i, row(i, v[i])))};\nT(10)","reading":{"first_row":1,"offset":1,"reversed":true,"trim_zeros":"none","regular_triangle":true}}],"derivation":{"root":"n-2a05d8340c329b21","steps":[],"edges":[],"text":"narayana"},"headline":"narayana","chain":null}
