|
|
|
|
1, 5, 10, 19, 33, 56, 93, 153, 250, 407, 661, 1072, 1737, 2813, 4554, 7371, 11929, 19304, 31237, 50545, 81786, 132335, 214125, 346464, 560593, 907061, 1467658, 2374723, 3842385, 6217112, 10059501, 16276617, 26336122
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
REFERENCES
|
A. H. Beiler, Recreations in the Theory of Numbers, Dover, N.Y., pp. 189, 194-196.
J. Roberts, Lure of the Integers, Math. Assoc. America, 1992, p. 224.
|
|
LINKS
|
|
|
FORMULA
|
a(n) = a(n-1) + a(n-2) + 4; a(0)=1, a(1)=5; n >= 1.
a(n) = 4*F(n+2) + F(n+1) - 4, where F(k) is A000045(k).
G.f.: ( 1+3*x ) / ( (x-1)*(x^2+x-1) ).
|
|
MATHEMATICA
|
CoefficientList[Series[(1+3*x)/((x-1)*(x^2+x-1)), {x, 0, 50}], x] (* G. C. Greubel, May 24 2018 *)
|
|
PROG
|
(PARI) x='x+O('x^30); Vec((1+3*x)/((x-1)*(x^2+x-1))) \\ G. C. Greubel, May 24 2018
(Magma) m:=25; R<x>:=PowerSeriesRing(Integers(), m); Coefficients(R!((1+3*x)/((x-1)*(x^2+x-1)))); // G. C. Greubel, May 24 2018
|
|
CROSSREFS
|
|
|
KEYWORD
|
easy,nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|