OFFSET
0,2
COMMENTS
Sequence identical to its fourth differences.
Without a(3)=7, sequence A000079 would have been obtained. - Michel Marcus, May 06 2015
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (4,-6,4).
FORMULA
a(n) = 2^n + A000749(n). - Michel Marcus, May 06 2015
G.f.: (1 - x)*(1 - x + x^2)/((1 - 2*x)*(1 - 2*x + 2*x^2)). [Bruno Berselli, May 06 2015]
MATHEMATICA
Join[{1}, LinearRecurrence[{4, -6, 4}, {2, 4, 7}, 25]] (* G. C. Greubel, Oct 11 2016 *)
PROG
(PARI) lista(nn) = {v = vector(nn); v[1] = 1; v[2] = 2; v[3] = 4; v[4] = 7; for (k=5, nn, v[k] = 4*v[k-1]-6*v[k-2]+4*v[k-3]; ); v; } \\ Michel Marcus, May 06 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Dec 08 2007
EXTENSIONS
More terms from Michel Marcus, May 06 2015
STATUS
approved