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

A097041
Expansion of (1+x)/(1-x^2-9*x^3).
2
1, 1, 1, 10, 10, 19, 100, 109, 271, 1009, 1252, 3448, 10333, 14716, 41365, 107713, 173809, 479998, 1143226, 2044279, 5463208, 12333313, 23861719, 61502185, 134861536, 276257656, 688381201, 1490011480, 3174700105, 7685442289
OFFSET
0,4
FORMULA
a(n) = a(n-2) + 9*a(n-3).
a(n) = Sum_{k=0..floor(n/2)} binomial(floor((n-k)/2), k)*9^k.
MATHEMATICA
CoefficientList[Series[(1+x)/(1-x^2-9x^3), {x, 0, 30}], x] (* or *) LinearRecurrence[{0, 1, 9}, {1, 1, 1}, 30] (* Harvey P. Dale, Mar 12 2015 *)
PROG
(PARI) x='x+O('x^50); Vec((1+x)/(1-x^2-9*x^3)) \\ G. C. Greubel, Apr 30 2017
CROSSREFS
Cf. A015445.
Sequence in context: A344336 A168416 A141324 * A331057 A205724 A040091
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Jul 20 2004
STATUS
approved