A241871 Number of ascent sequences of length 2n with exactly n descents.
1, 0, 0, 1, 26, 937, 45747, 2945144, 242899690, 25034354941, 3157647587689, 478931493603308, 86057396214591300, 18086772915953351382, 4397414569504319733812, 1224945090342466220614714, 387654163770235904289085798, 138333762956844287480268151988
Offset: 0
Keywords
Links
- Joerg Arndt and Alois P. Heinz, Table of n, a(n) for n = 0..70
Crossrefs
Cf. A238858.
Programs
-
Maple
b:= proc(n, i, t) option remember; `if`(n=0, 1, expand(add( `if`(ji, 1, 0)), j=0..t+1))) end: a:= n-> coeff(b(2*n, -1$2), x, n): seq(a(n), n=0..20);
-
Mathematica
b[n_, i_, t_] := b[n, i, t] = If[n == 0, 1, Expand[Sum[If[ji, 1, 0]], {j, 0, t+1}]]]; a[n_] := Coefficient[b[2*n, -1, -1], x, n]; Table[ a[n], {n, 0, 20}] (* Jean-François Alcover, Feb 13 2015, after Maple *)
Formula
a(n) = A238858(2n,n).