OFFSET
1,1
LINKS
PROG
(PARI) gpf(n)=my(v=factor(n)[, 1]); v[#v];
main(size)=my(v=vector(size), i, odd=2, even=1); v[1]=2; for(i=2, size, if(i%2==0, v[i]=gpf(odd+1); even*=v[i], v[i]=gpf(even+1); odd*=v[i])); v;
CROSSREFS
KEYWORD
nonn
AUTHOR
Anders Hellström, Jul 15 2015
STATUS
approved