OFFSET
0,4
LINKS
Seiichi Manyama, Table of n, a(n) for n = 0..899
Nick Hobson, Python program for this sequence
MAPLE
MATHEMATICA
Module[{a = 0}, Join[{a}, Flatten[Array[{a += #, a *= #} &, 20]]]] (* Paolo Xausa, Oct 24 2024 *)
PROG
(PARI) A019461(n, a=0)={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
AUTHOR
EXTENSIONS
Edited by M. F. Hasler, Feb 25 2018
STATUS
approved