cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A241871 Number of ascent sequences of length 2n with exactly n descents.

Original entry on oeis.org

1, 0, 0, 1, 26, 937, 45747, 2945144, 242899690, 25034354941, 3157647587689, 478931493603308, 86057396214591300, 18086772915953351382, 4397414569504319733812, 1224945090342466220614714, 387654163770235904289085798, 138333762956844287480268151988
Offset: 0

Views

Author

Joerg Arndt and Alois P. Heinz, May 01 2014

Keywords

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).