login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A307464
Number of Catalan words of length n avoiding the pattern 000.
3
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,3
LINKS
FORMULA
a(n) = A125691(n)-2*A125691(n-2).
G.f.: (1-2*x^2)/(1-x-3*x^2+x^3).
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 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
R. J. Mathar, Apr 09 2019
STATUS
approved