login
A100109
a(n) = n^3 - 2*n^2 + 2.
1
1, 2, 11, 34, 77, 146, 247, 386, 569, 802, 1091, 1442, 1861, 2354, 2927, 3586, 4337, 5186, 6139, 7202, 8381, 9682, 11111, 12674, 14377, 16226, 18227, 20386, 22709, 25202, 27871, 30722, 33761, 36994, 40427, 44066, 47917, 51986, 56279, 60802, 65561, 70562
OFFSET
1,2
REFERENCES
T. A. Gulliver, Sequences from Cubes of Integers, Int. Math. Journal, 4 (2003), 439-445.
FORMULA
From G. C. Greubel, Mar 29 2024: (Start)
a(n) = A000578(n) - 2*A005563(n-1).
a(n) = A001093(n) - A056220(n).
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