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.

A307464 Number of Catalan words of length n avoiding the pattern 000.

Original entry on oeis.org

1, 1, 2, 4, 9, 19, 42, 90, 197, 425, 926, 2004, 4357, 9443, 20510, 44482, 96569, 209505, 454730, 986676, 2141361, 4646659, 10084066, 21882682, 47488221, 103052201, 223634182, 485302564, 1053152909, 2285426419, 4959582582, 10762708930, 23356030257, 50684574465
Offset: 0

Views

Author

R. J. Mathar, Apr 09 2019

Keywords

Crossrefs

Programs

  • Maple
    (1-2*x^2)/(1-x-3*x^2+x^3) ;
    taylor(%,x=0,30) ;
    gfun[seriestolist](%) ;
  • Mathematica
    LinearRecurrence[{1,3,-1},{1,1,2},40] (* Harvey P. Dale, Aug 06 2019 *)

Formula

a(n) = A125691(n)-2*A125691(n-2).
G.f.: (1-2*x^2)/(1-x-3*x^2+x^3).