login
A394192
a(n) = n^3 - n^2 + 5*n + 2.
0
2, 7, 16, 35, 70, 127, 212, 331, 490, 695, 952, 1267, 1646, 2095, 2620, 3227, 3922, 4711, 5600, 6595, 7702, 8927, 10276, 11755, 13370, 15127, 17032, 19091, 21310, 23695, 26252, 28987, 31906, 35015, 38320, 41827, 45542, 49471, 53620, 57995, 62602, 67447, 72536, 77875, 83470
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.
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
Cf. A016957 (2nd differences).
Sequence in context: A132738 A259966 A283500 * A097442 A345025 A329324
KEYWORD
nonn,easy
AUTHOR
Stefano Spezia, Mar 12 2026
STATUS
approved