OFFSET
1,1
REFERENCES
N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
LINKS
John Cerkan, Table of n, a(n) for n = 1..14
D. A. Klarner, Sequences of k-th powers with k-th power partial sums, Math. mag., 37 (1964), 165-167.
D. A. Klarner, Sequences of k-th powers with k-th power partial sums, Math. Mag., 37 (1964), 165-167. Annotated scanned copy.
FORMULA
a(1)=2, a(2)=17, a(3)=40, a(2n+2) = 3*a(2n+1)^2 + 8*a(2n+1) + 6, a(2n+3) = 3*a(2n+1)^3 + 12*a(2n+1)^2 + 17*a(2n+1) + 8. - Sean A. Irvine, Sep 16 2011
MATHEMATICA
a[1] = 2; a[2] = 17; a[3] = 40;
a[n_] := a[n] = If[EvenQ[n], 3*a[n-1]^2 + 8*a[n-1] + 6, 3*a[n-2]^3 + 12*a[n-2]^2 + 17*a[n-2] + 8];
a /@ Range[14] (* Jean-François Alcover, Oct 22 2019 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
One more term from Sean A. Irvine, Sep 15 2011
STATUS
approved