OFFSET
0,2
COMMENTS
First differences of A174929.
LINKS
Index entries for linear recurrences with constant coefficients, signature (1, 1, -1).
FORMULA
a(n) = (67+130*n-63*(-1)^n)/4.
a(n) = a(n-2)+65 for n > 1; a(0) = 1, a(1) = 65.
a(n) = ((n+1) mod 2) + 65*floor((n+1)/2).
G.f.: (1+64*x)/((1-x)^2*(1+x)).
PROG
(Magma) T:=&cat[ [1, 64]: n in [0..23] ]; [ n eq 1 select T[1] else Self(n-1)+T[n]: n in [1..#T] ];
[ n le 2 select 64*n-63 else Self(n-2)+65: n in [1..48] ];
CROSSREFS
KEYWORD
nonn
AUTHOR
Klaus Brockhaus, Apr 02 2010
STATUS
approved