OFFSET
1,2
FORMULA
a(n) = 2n^3 - 3n^2 + 4n - 2.
MATHEMATICA
lst={}; Do[s0=n^3; s1=(n+1)^3; AppendTo[lst, (s1+s0)+n], {n, 0, 5!}]; lst (* Vladimir Joseph Stephan Orlovsky, Feb 19 2009 *)
PROG
(PARI) vector(50, n, 2*n^3 - 3*n^2 + 4*n - 2) \\ Michel Marcus, Jan 07 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved