OFFSET
1,2
FORMULA
a(2n) = 2^(2n^2-1)*(2^n+1)-2^(n^2-1)*(2^n+1).
a(2n+1) = 2^(2n^2+3n+1)-2^(n^2+2n+1). (corrected by Colin Barker, Mar 28 2014)
PROG
(PARI) s=[0]; for(n=1, 10, s=concat(s, [2^(2*n^2-1)*(2^n+1)-2^(n^2-1)*(2^n+1), 2^(2*n^2+3*n+1)-2^(n^2+2*n+1)])); s \\ Colin Barker, Mar 28 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Anthony C Robin, Jul 09 2008
EXTENSIONS
More terms from Colin Barker, Mar 28 2014
STATUS
approved