OFFSET
1,2
LINKS
Klaus Brockhaus, Table of n, a(n) for n=1..10000
PROG
(PARI) {m=70; z=300; a=[]; a2=Set([]); a3=Set([]); s=1; for(n=1, m, p=s; while(setsearch(a3, p, 0), p++); if(p>z, break); new=vector(#a2); for(k=1, #a2, q=eval(a2[k])+p^2; if(q<=z, new[k]=q)); a3=setunion(a3, Set(new)); new=vector(#a); for(k=1, #a, q=a[k]^2+p^2; if(q<=z, new[k]=q)); a2=setunion(a2, setminus(Set(new), Set(0))); a=concat(a, p); s=p+1; print1(p, ", "))} /* Klaus Brockhaus, Jul 03 2008 */
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Extended by Klaus Brockhaus, Jul 03 2008
STATUS
approved