OFFSET
1,2
REFERENCES
T. A. Gulliver, Sequences from Cubes of Integers, Int. Math. Journal, 4 (2003), 439-445.
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
From G. C. Greubel, Mar 29 2024: (Start)
G.f.: x*(1 - 2*x + 9*x^2 - 2*x^3)/(1-x)^4.
E.g.f.: (2 - x + x^2 + x^3)*exp(x) - 2. (End)
MATHEMATICA
Table[n^3-2n^2+2, {n, 50}] (* Harvey P. Dale, Jan 30 2011 *)
PROG
(Magma) [n^3-2*n^2+2: n in [1..50]]; // G. C. Greubel, Mar 29 2024
(SageMath) [n^3-2*n^2+2 for n in range(1, 51)] # G. C. Greubel, Mar 29 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Jan 12 2005
STATUS
approved