OFFSET
1,2
COMMENTS
1 is the only odd number in this sequence.
Excluding 1 and 2, this is a permutation of the positive multiples of 6.
FORMULA
a(n)^2 = A073852(n).
PROG
(PARI) v=[1]; n=1; while(n<10^3, if(isprime(n^2+sum(i=1, #v, v[i]^2))&&!vecsearch(vecsort(v), n), v=concat(v, n); n=1); n++); v
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Derek Orr, Jun 01 2015
STATUS
approved