OFFSET
0,2
LINKS
R. H. Hardin, Table of n, a(n) for n=0..500
Shalosh B. Ekhad and Doron Zeilberger, Automatic Solution of Richard Stanley's Amer. Math. Monthly Problem #11610 and ANY Problem of That Type, arXiv preprint arXiv:1112.6207, 2011. See subpages for rigorous derivations of g.f., recurrence, asymptotics for this sequence. [From N. J. A. Sloane, Apr 07 2012]
Index entries for linear recurrences with constant coefficients, signature (2).
FORMULA
G.f.: (2*x^6+2*x^5+2*x^4-1)/(2*x-1). - Alois P. Heinz, May 05 2026
PROG
(Empirical) (bc) (z is number of 0's) z=3; for(i=0; i<=500; i++) { if(i<=z)a=2^i else if(i<=2*z)a=2*a-2 else a=2*a; a }
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
R. H. Hardin, Aug 11 2009
STATUS
approved
