{"id":"n-46edc3c082e19c85","revision":0,"first_index":0,"fingerprint":"f6-34eaf45657600f7a","name":"Triangular array read by rows: T(n,k) = number of fixed points in the permutations of {1,2,...,n} that have exactly k cycles; n>=1, 1<=k<=n.","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":true,"rows":[["1"],["0","2"],["0","3","3"],["0","8","12","4"],["0","30","55","30","5"],["0","144","300","210","60","6"],["0","840","1918","1575","595","105","7"],["0","5760","14112","12992","5880","1400","168","8"],["0","45360","117612","118188","60921","17640","2898","252","9"],["0","403200","1095840","1181240","672840","224490","45360","5460","360","10"],["0","3991680","11292336","12899700","7960480","2962575","696003","103950","9570","495","11"],["0","43545600","127543680","153042912","100914000","41003160","10824660","1893276","217800","15840","660","12"],["0","518918400","1567069920","1961933688","1368354988","597944490","173413955","34288254","4646499","424710","25025","858","13"],["0","6706022400","20810200320","27041833728","19796208432","9200895704","2884982100","629863234","96972876","10492482","780780","38038","1092","14"],["0","93405312000","297041385600","398950755840","304706296440","149365556340","50041781790","11864147295","2025547095","250044795","22117095","1366365","55965","1365","15"]],"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:A180013","source_kind":"oeis_catalog","equality_edge_id":null,"recurrence":{"first_index":0,"initial_polynomials":[["1"],["0","2"]],"recurrence":{"terms":[{"coeff":{"coeffs":[["-1","2"],["1","0"]]},"deriv_order":0,"offset":1,"sign":"none"},{"coeff":{"coeffs":[["-2","3","-1"],["1","-1","0"]]},"deriv_order":0,"offset":2,"sign":"none"}]},"schema":"polytool.recurrence.v1"}}],"properties":[{"id":170208,"position":0,"claim":"real_rooted","from_index":0,"region_key":"(-inf, 1/2]","provenance":"edges","claim_data":{"claim":"real_rooted","from_index":0,"region":{"upper":{"closed":true,"value":"1/2"}}},"label":"Real-rooted","description":"Every row P_n, n >= 0, is zero or real-rooted with all roots in (-inf, 1/2]","region_exact":null,"edges":["e-3176274160cea224"]},{"id":170209,"position":1,"claim":"interlacing","from_index":1,"region_key":null,"provenance":"edges","claim_data":{"claim":"interlacing","from_index":1,"kind":"weak","orientation":"unordered"},"label":"Interlacing of consecutive rows","description":"Rows P_(m-1), P_m interlace (weak, unordered) for every m >= 1","region_exact":null,"edges":["e-3176274160cea224"]}],"region_exact":{},"incoming_edges":[{"id":"e-3176274160cea224","operation":{"index_shift":0,"operation":"preserver_image","operator":"{\"shape\":\"affine\",\"slope\":\"2\",\"intercept\":\"-1\"}"},"operation_detail":"affine, shift 0","conclusion_id":"n-46edc3c082e19c85","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":null,"lean_declarations":["Polynomial.Splits.comp_of_degree_le_one"],"certificate_hash":"efc1d420f8d1f6f46a577bf317c94b2e6a71a43f64afe37dd008af1537a34c12","verification_polytool":"replayed","verification_lean":"not_attempted","claims":[{"claim":"real_rooted","from_index":0,"region":{"upper":{"closed":true,"value":"1/2"}}},{"claim":"interlacing","from_index":1,"kind":"weak","orientation":"unordered"}],"premises":[{"position":0,"node_id":"n-4f6e747b794bcc2e","role":"sequence","name":"Triangle of coefficients in expansion of (x+1)*(x+3)*...*(x + 2n - 1) in rising powers of x.","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]"}]}],"used_by":[],"used_by_total":0,"links":[{"id":"l-13969179f83815a4","kind":"fingerprint_related","node_a_id":"n-5b94261d6f603245","node_b_id":"n-46edc3c082e19c85","fingerprint":"f6-34eaf45657600f7a","oeis_id":null,"in_catalog":null,"target":null,"row_alignment":null,"rows_matched":null,"oeis_nonn":null,"details":{"fingerprint":"f6-34eaf45657600f7a"},"other_id":"n-5b94261d6f603245","other":{"id":"n-5b94261d6f603245","name":"basis_map_A013610 of Triangle read by rows, s_3(n, k) where s_m(n, k) are the Stirling-Frobenius cycle numbers of order m; n >= 0, k >= 0.","first_index":0,"fingerprint":"f6-34eaf45657600f7a","polytool_family":null,"degree_pattern":"affine","palindromic":0,"gamma_positive":0,"nonnegative":1,"rr_by_factors":1,"preview_rows":[["1"],["3","3"],["18","27","9"]],"card_rows":[["1"],["3","3"],["18","27","9"],["162","297","162","27"]],"row_sums_preview":["1","6","54","648","9720","174960","3674160","88179840"],"regions":["(-inf, 0]"],"region_exact":{},"oeis_ids":[],"derivation":{"root":"n-8229dbdd6a4b5cd9","steps":["basis A013610"],"edges":["e-86f8b58a2aa07621"],"text":"A225470 \u2192 basis A013610"},"headline":"A225470 \u2192 basis A013610","chain":null}},{"id":"l-23972314c0c99ea4","kind":"fingerprint_related","node_a_id":"n-ab4410127fe29869","node_b_id":"n-46edc3c082e19c85","fingerprint":"f6-34eaf45657600f7a","oeis_id":null,"in_catalog":null,"target":null,"row_alignment":null,"rows_matched":null,"oeis_nonn":null,"details":{"fingerprint":"f6-34eaf45657600f7a"},"other_id":"n-ab4410127fe29869","other":{"id":"n-ab4410127fe29869","name":"reversal of Triangle of unsigned Stirling numbers of the first kind (see A048994), read by rows, T(n,k) for 0 <= k <= n.","first_index":0,"fingerprint":"f6-34eaf45657600f7a","polytool_family":null,"degree_pattern":"irregular","palindromic":0,"gamma_positive":0,"nonnegative":1,"rr_by_factors":1,"preview_rows":[["1"],["1"],["1","1"]],"card_rows":[["1"],["1"],["1","1"],["1","3","2"]],"row_sums_preview":["1","1","2","6","24","120","720","5040"],"regions":["(-inf, 0]"],"region_exact":{},"oeis_ids":[],"derivation":{"root":"n-b9fbfb57d9269e2f","steps":["reverse"],"edges":["e-c7203dc00a9aba0b"],"text":"A132393 \u2192 reverse"},"headline":"A132393 \u2192 reverse","chain":null}},{"id":"l-287fea7f3bdebe2c","kind":"fingerprint_related","node_a_id":"n-c2e61578a2a87aa5","node_b_id":"n-46edc3c082e19c85","fingerprint":"f6-34eaf45657600f7a","oeis_id":null,"in_catalog":null,"target":null,"row_alignment":null,"rows_matched":null,"oeis_nonn":null,"details":{"fingerprint":"f6-34eaf45657600f7a"},"other_id":"n-c2e61578a2a87aa5","other":{"id":"n-c2e61578a2a87aa5","name":"basis_map_A013609 of Triangle of coefficients in expansion of (x+1)*(x+3)*...*(x + 2n - 1) in rising powers of x.","first_index":0,"fingerprint":"f6-34eaf45657600f7a","polytool_family":null,"degree_pattern":"affine","palindromic":0,"gamma_positive":0,"nonnegative":1,"rr_by_factors":1,"preview_rows":[["1"],["2","2"],["8","12","4"]],"card_rows":[["1"],["2","2"],["8","12","4"],["48","88","48","8"]],"row_sums_preview":["1","4","24","192","1920","23040","322560","5160960"],"regions":["(-inf, 0]"],"region_exact":{},"oeis_ids":[],"derivation":{"root":"n-4f6e747b794bcc2e","steps":["basis A013609"],"edges":["e-03658933e548767a"],"text":"A028338 \u2192 basis A013609"},"headline":"A028338 \u2192 basis A013609","chain":null}},{"id":"l-39a264160b18be7b","kind":"fingerprint_related","node_a_id":"n-f4e656360cd62235","node_b_id":"n-46edc3c082e19c85","fingerprint":"f6-34eaf45657600f7a","oeis_id":null,"in_catalog":null,"target":null,"row_alignment":null,"rows_matched":null,"oeis_nonn":null,"details":{"fingerprint":"f6-34eaf45657600f7a"},"other_id":"n-f4e656360cd62235","other":{"id":"n-f4e656360cd62235","name":"basis_map_A013611 of Triangle read by rows, s_4(n, k) where s_m(n, k) are the Stirling-Frobenius cycle numbers of order m; n >= 0, k >= 0.","first_index":0,"fingerprint":"f6-34eaf45657600f7a","polytool_family":null,"degree_pattern":"affine","palindromic":0,"gamma_positive":0,"nonnegative":1,"rr_by_factors":1,"preview_rows":[["1"],["4","4"],["32","48","16"]],"card_rows":[["1"],["4","4"],["32","48","16"],["384","704","384","64"]],"row_sums_preview":["1","8","96","1536","30720","737280","20643840","660602880"],"regions":["(-inf, 0]"],"region_exact":{},"oeis_ids":[],"derivation":{"root":"n-9c5c208df8605708","steps":["basis A013611"],"edges":["e-8a4919ac2dd1c88f"],"text":"A225471 \u2192 basis A013611"},"headline":"A225471 \u2192 basis A013611","chain":null}},{"id":"l-59837b3d10707b6a","kind":"fingerprint_related","node_a_id":"n-a21fa1ea54a634a7","node_b_id":"n-46edc3c082e19c85","fingerprint":"f6-34eaf45657600f7a","oeis_id":null,"in_catalog":null,"target":null,"row_alignment":null,"rows_matched":null,"oeis_nonn":null,"details":{"fingerprint":"f6-34eaf45657600f7a"},"other_id":"n-a21fa1ea54a634a7","other":{"id":"n-a21fa1ea54a634a7","name":"Triangle read by rows: T(n,k) is the number of stretching pairs in all permutations in S_{n,k} (=set of permutations in S_n with k cycles) (n >= 3; 1 <= k <= n-2).","first_index":0,"fingerprint":"f6-34eaf45657600f7a","polytool_family":null,"degree_pattern":"affine","palindromic":0,"gamma_positive":0,"nonnegative":1,"rr_by_factors":1,"preview_rows":[[],["1","1"],["10","15","5"]],"card_rows":[["1","1"],["10","15","5"],["90","165","90","15"],["840","1750","1225","350","35"]],"row_sums_preview":["0","2","30","360","4200","50400","635040","8467200"],"regions":["(-inf, 0]"],"region_exact":{},"oeis_ids":["A216118"],"derivation":{"root":"n-a21fa1ea54a634a7","steps":[],"edges":[],"text":"A216118"},"headline":"A216118: Triangle read by rows: T(n,k) is the number of stretching pairs in all permutations in S_{n,k} (=set of permutations in S_n with k cycles) (n >= 3; 1 <= k <= n-2).","chain":null}},{"id":"l-5db8e0a337810b24","kind":"fingerprint_related","node_a_id":"n-4d60c3dd8627c01d","node_b_id":"n-46edc3c082e19c85","fingerprint":"f6-34eaf45657600f7a","oeis_id":null,"in_catalog":null,"target":null,"row_alignment":null,"rows_matched":null,"oeis_nonn":null,"details":{"fingerprint":"f6-34eaf45657600f7a"},"other_id":"n-4d60c3dd8627c01d","other":{"id":"n-4d60c3dd8627c01d","name":"Triangle read by rows: T(n,k) = |s(n,n+1-k)|, where s(n,k) are the signed Stirling numbers of the first kind A008276 (1 <= k <= n; in other words, the unsigned Stirling numbers of the first kind in reverse order).","first_index":0,"fingerprint":"f6-34eaf45657600f7a","polytool_family":null,"degree_pattern":"affine","palindromic":0,"gamma_positive":0,"nonnegative":1,"rr_by_factors":1,"preview_rows":[["1"],["1","1"],["1","3","2"]],"card_rows":[["1"],["1","1"],["1","3","2"],["1","6","11","6"]],"row_sums_preview":["1","2","6","24","120","720","5040","40320"],"regions":["(-inf, 0)","(-inf, 0]"],"region_exact":{},"oeis_ids":["A094638"],"derivation":{"root":"n-4d60c3dd8627c01d","steps":[],"edges":[],"text":"A094638"},"headline":"A094638: Triangle read by rows: T(n,k) = |s(n,n+1-k)|, where s(n,k) are the signed Stirling numbers of the first kind A008276 (1 <= k <= n; in other words, the unsigned Stirling numbers of the first kind in reverse order).","chain":null}},{"id":"l-6909a29841ed3363","kind":"fingerprint_related","node_a_id":"n-efe23a76953cf69d","node_b_id":"n-46edc3c082e19c85","fingerprint":"f6-34eaf45657600f7a","oeis_id":null,"in_catalog":null,"target":null,"row_alignment":null,"rows_matched":null,"oeis_nonn":null,"details":{"fingerprint":"f6-34eaf45657600f7a"},"other_id":"n-efe23a76953cf69d","other":{"id":"n-efe23a76953cf69d","name":"Triangle T(n,k), 0 <= k <= n, read by rows, giving coefficients of the polynomial (x+1)(x+2)...(x+n), expanded in increasing powers of x. T(n,k) is also the unsigned Stirling number |s(n+1, k+1)|, denoting the number of permutations on n+1 elements that contain exactly k+1 cycles.","first_index":0,"fingerprint":"f6-34eaf45657600f7a","polytool_family":null,"degree_pattern":"affine","palindromic":0,"gamma_positive":0,"nonnegative":1,"rr_by_factors":1,"preview_rows":[["1"],["1","1"],["2","3","1"]],"card_rows":[["1"],["1","1"],["2","3","1"],["6","11","6","1"]],"row_sums_preview":["1","2","6","24","120","720","5040","40320"],"regions":["(-inf, 0)","(-inf, 0]","(-inf, -1]"],"region_exact":{},"oeis_ids":["A130534"],"derivation":{"root":"n-efe23a76953cf69d","steps":[],"edges":[],"text":"A130534"},"headline":"A130534: Triangle T(n,k), 0 <= k <= n, read by rows, giving coefficients of the polynomial (x+1)(x+2)...(x+n), expanded in increasing powers of x. T(n,k) is also the unsigned Stirling number |s(n+1, k+1)|, denoting the number of permutations on n+1 elements that contain exactly k+1 cycles.","chain":null}},{"id":"l-9a979e81112ca513","kind":"fingerprint_related","node_a_id":"n-b9fbfb57d9269e2f","node_b_id":"n-46edc3c082e19c85","fingerprint":"f6-34eaf45657600f7a","oeis_id":null,"in_catalog":null,"target":null,"row_alignment":null,"rows_matched":null,"oeis_nonn":null,"details":{"fingerprint":"f6-34eaf45657600f7a"},"other_id":"n-b9fbfb57d9269e2f","other":{"id":"n-b9fbfb57d9269e2f","name":"Triangle of unsigned Stirling numbers of the first kind (see A048994), read by rows, T(n,k) for 0 <= k <= n.","first_index":0,"fingerprint":"f6-34eaf45657600f7a","polytool_family":null,"degree_pattern":"affine","palindromic":0,"gamma_positive":0,"nonnegative":1,"rr_by_factors":1,"preview_rows":[["1"],["0","1"],["0","1","1"]],"card_rows":[["1"],["0","1"],["0","1","1"],["0","2","3","1"]],"row_sums_preview":["1","1","2","6","24","120","720","5040"],"regions":["(-inf, 0]"],"region_exact":{},"oeis_ids":["A132393"],"derivation":{"root":"n-b9fbfb57d9269e2f","steps":[],"edges":[],"text":"A132393"},"headline":"A132393: Triangle of unsigned Stirling numbers of the first kind (see A048994), read by rows, T(n,k) for 0 <= k <= n.","chain":null}},{"id":"l-4eabc44b89857ad8","kind":"oeis_match","node_a_id":"n-46edc3c082e19c85","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-58db6c996a9f0f3d","kind":"oeis_match","node_a_id":"n-46edc3c082e19c85","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-59f0962234076ff1","kind":"oeis_match","node_a_id":"n-46edc3c082e19c85","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-900843f8514e814b","kind":"oeis_match","node_a_id":"n-46edc3c082e19c85","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-ae7d31506d1ee9a3","kind":"oeis_match","node_a_id":"n-46edc3c082e19c85","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-b9a79ee91c5f2cbb","kind":"oeis_match","node_a_id":"n-46edc3c082e19c85","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-c9cb1e81d5a58234","kind":"oeis_match","node_a_id":"n-46edc3c082e19c85","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-dfb1aa93cc861bf0","kind":"oeis_match","node_a_id":"n-46edc3c082e19c85","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-fc2b891e58221c28","kind":"oeis_match","node_a_id":"n-46edc3c082e19c85","node_b_id":null,"fingerprint":null,"oeis_id":"A180013","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":1,"oeis_term_position":0,"row_alignment":"tabl","rows_matched":10,"target":"triangle","terms_compared":55},"in_catalog":true,"oeis_id":"A180013","oeis_nonn":true},"other_id":null,"other":null}],"oeis":[{"oeis_id":"A180013","relation":"identification"},{"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":"A180013","relation":"match_triangle"}],"bfiles":[{"node_id":"n-46edc3c082e19c85","oeis_id":"A180013","target":"triangle","oeis_offset":1,"first_row":0,"rows_used":44,"terms_matched":55,"oeis_terms_agreeing":55,"oeis_terms_available":55,"term_count":990,"raw_size":26656}],"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: 0,      2;\n  2: 0,      3,       3;\n  3: 0,      8,      12,       4;\n  4: 0,     30,      55,      30,      5;\n  5: 0,    144,     300,     210,     60,      6;\n  6: 0,    840,    1918,    1575,    595,    105,     7;\n  7: 0,   5760,   14112,   12992,   5880,   1400,   168,    8;\n  8: 0,  45360,  117612,  118188,  60921,  17640,  2898,  252,   9;\n  9: 0, 403200, 1095840, 1181240, 672840, 224490, 45360, 5460, 360, 10;\n","recurrence_sentence":"The row polynomials satisfy P(n,x) = (n-1+2*x)*P(n-1,x) + (n-2-(n-3)*x-x^2)*P(n-2,x) for n >= 2, with P(0,x) = 1, P(1,x) = 2*x.","mathematica":"P[0, x_] := 1;\nP[1, x_] := 2*x;\nP[n_, x_] := P[n, x] = Expand[(n - 1 + 2*x)*P[n - 1, x] + (n - 2 - (n - 3)*x - x^2)*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] = 2*x; for(n = 2, N, my(i = n + 1); v[i] = (n - 1 + 2*x)*v[i - 1] + (n - 2 - (n - 3)*x - x^2)*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":"A180013","target":"triangle","first_row":0,"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: 0,      2;\n   3: 0,      3,       3;\n   4: 0,      8,      12,       4;\n   5: 0,     30,      55,      30,      5;\n   6: 0,    144,     300,     210,     60,      6;\n   7: 0,    840,    1918,    1575,    595,    105,     7;\n   8: 0,   5760,   14112,   12992,   5880,   1400,   168,    8;\n   9: 0,  45360,  117612,  118188,  60921,  17640,  2898,  252,   9;\n  10: 0, 403200, 1095840, 1181240, 672840, 224490, 45360, 5460, 360, 10;\n","recurrence_sentence":"The row polynomials satisfy P(n,x) = (n-2+2*x)*P(n-1,x) + (n-3-(n-4)*x-x^2)*P(n-2,x) for n >= 3, with P(1,x) = 1, P(2,x) = 2*x.","mathematica":"P[1, x_] := 1;\nP[2, x_] := 2*x;\nP[n_, x_] := P[n, x] = Expand[(n - 2 + 2*x)*P[n - 1, x] + (n - 3 - (n - 4)*x - x^2)*P[n - 2, x]];\nTable[PadRight[CoefficientList[P[n, x], x], n], {n, 1, 10}] // Flatten","pari":"P(N) = {my(v = vector(N)); v[1] = 1; v[2] = 2*x; for(n = 3, N, my(i = n); v[i] = (n - 2 + 2*x)*v[i - 1] + (n - 3 - (n - 4)*x - x^2)*v[i - 2]); 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":0,"offset":1,"reversed":false,"trim_zeros":"none","regular_triangle":true}}],"derivation":{"root":"n-4f6e747b794bcc2e","steps":["x \u21a6 2x\u22121"],"edges":["e-3176274160cea224"],"text":"A028338 \u2192 x \u21a6 2x\u22121"},"headline":"A180013: Triangular array read by rows: T(n,k) = number of fixed points in the permutations of {1,2,...,n} that have exactly k cycles; n>=1, 1<=k<=n.","chain":"A028338 \u2192 x \u21a6 2x\u22121"}
