OFFSET
0,1
REFERENCES
Murray R. Spiegel, Calculus of Finite Differences and Difference Equations, "Schaum's Outline Series", McGraw-Hill, 1971, exercise 2.8 on page 43.
LINKS
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4) for n > 3.
G.f.: (2 - x + 5*x^3)/(1 - x)^4.
E.g.f.: exp(x)*(2 + 5*x + 2*x^2 + x^3).
MATHEMATICA
a[n_]:=n^3-n^2+5n+2; Array[a, 45, 0]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Stefano Spezia, Mar 12 2026
STATUS
approved
