OFFSET
1,2
FORMULA
a(2*n-1) = n!.
a(2*n) = n!*(2*n^2+1).
PROG
(PARI) v=[]; n=0; while(n<10^7, num=(vecsum(v)+n); if(num%(#v+1)==0&&vecsearch(vecsort(v), n)==0, for(i=0, n, if(i!>(num/(#v+1)), break); if(i!==(num/(#v+1)), print1(n, ", "); v=concat(v, n); n=0; break))); n++)
CROSSREFS
KEYWORD
nonn
AUTHOR
Derek Orr, Nov 05 2014
STATUS
approved