OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (2,0,0,0,0,0,0,0,0,-1).
FORMULA
G.f f such that: f(z)=1/(1-2*z+z^10).
a(n)=sum((-1)^j*binomial(n-k*j,n-(k+1)*j)*2^(n-(k+1)*j),j=0..floor(n/(k+1))). a(n+10)=2*a(n+9)-a(n).
MAPLE
for k from 0 to 20 do for n from 0 to 30 do b(n):=sum((-1)^j*binomial(n-k*j, n-(k+1)*j)*2^(n-(k+1)*j), j=0..floor(n/(k+1))):od:k: seq(b(n), n=0..30):od;
MATHEMATICA
LinearRecurrence[{2, 0, 0, 0, 0, 0, 0, 0, 0, -1}, {1, 2, 4, 8, 16, 32, 64, 128, 256, 512}, 40] (* Harvey P. Dale, Sep 22 2020 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Richard Choulet, Jan 31 2010
STATUS
approved