OFFSET
0,1
LINKS
FORMULA
For n>=2, a(2n)=floor((2e+4)*n!)-n-2, a(2n+1)=floor((2e+4)*n!)-1.
MATHEMATICA
k = 0; NestList[(k++; {Last@# + k, k(k + Last@#)}) &, {4}, 16] // Flatten
PROG
(PARI) a=4; for(n=1, 150, print(a, ", "); b=if(n%2-1, a*ceil(n/2), a+ceil(n/2)); a=b)
(PARI) A082448(n, a=4)={for(i=2, n+1, if(bittest(i, 0), a*=i\2, a+=i\2)); a} \\ M. F. Hasler, Feb 25 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, based on a suggestion of Nick MacDonald, Apr 25 2003
EXTENSIONS
More terms from Benoit Cloitre, Apr 26 2003
Edited by M. F. Hasler, Feb 25 2018
STATUS
approved