OFFSET
1,2
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
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)=1, a(2)=6, a(3)=8, 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] = 1; a[2] = 6; a[3] = 8; 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]; Array[a, 10] (* Jean-François Alcover, Feb 15 2016, after Sean A. Irvine *)
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
One more term from Sean A. Irvine, Sep 15 2011
STATUS
approved