A242352 Number T(n,k) of isoscent sequences of length n with exactly k descents; triangle T(n,k), n>=0, 0<=k<=n+2-ceiling(2*sqrt(n+1)), read by rows.
1, 1, 2, 4, 1, 9, 6, 21, 29, 2, 51, 124, 28, 127, 499, 241, 10, 323, 1933, 1667, 216, 1, 835, 7307, 10142, 2765, 98, 2188, 27166, 56748, 27214, 2637, 22, 5798, 99841, 299485, 227847, 44051, 1546, 2, 15511, 363980, 1514445, 1708700, 563444, 46947, 570
Offset: 0
Examples
T(4,0) = 9: [0,0,0,0], [0,0,0,1], [0,0,0,2], [0,0,0,3], [0,0,1,1], [0,0,1,2], [0,0,2,2], [0,1,1,1], [0,1,1,2]. T(4,1) = 6: [0,0,1,0], [0,0,2,0], [0,0,2,1], [0,1,0,0], [0,1,0,1], [0,1,1,0]. T(5,2) = 2: [0,0,2,1,0], [0,1,0,1,0]. Triangle T(n,k) begins: : 1; : 1; : 2; : 4, 1; : 9, 6; : 21, 29, 2; : 51, 124, 28; : 127, 499, 241, 10; : 323, 1933, 1667, 216, 1; : 835, 7307, 10142, 2765, 98; : 2188, 27166, 56748, 27214, 2637, 22;
Links
- Joerg Arndt and Alois P. Heinz, Rows n = 0..114, flattened
Crossrefs
Programs
-
Maple
b:= proc(n, i, t) option remember; `if`(n<1, 1, expand(add( `if`(j (p-> seq(coeff(p, x, i), i=0..degree(p)))(b(n-1, 0$2)): seq(T(n), n=0..15);
-
Mathematica
b[n_, i_, t_] := b[n, i, t] = If[n<1, 1, Expand[Sum[If[jJean-François Alcover, Feb 09 2015, after Maple *)
Comments