OFFSET
1,2
COMMENTS
All members of the sequence can be represented as the sum of two relatively prime numbers (A008784). It appears that the sequence is infinite and that all such numbers are present.
LINKS
Ivan Neretin, Table of n, a(n) for n = 1..1000
EXAMPLE
After a(4)=13, the divisors of 13^2+1=170 are 1,2, 5, 10, 17, 34, 85, 170. 1, 2, and 5 have already occurred, so a(5) = 10.
MATHEMATICA
Nest[Append[#, Min[Complement[Divisors[#[[-1]]^2 + 1], #]]] &, {1}, 45] (* Ivan Neretin, Sep 03 2015 *)
PROG
(PARI) invec(v, x, n)=for(i=1, n, if(v[i]==x, return(1))); 0
bl(n)={local(v, d, ds);
v=vector(n, i, 1);
for(i=2, n,
ds=divisors(v[i-1]^2+1);
for(k=2, #ds, d=ds[k]; if(!invec(v, d, i-1), v[i]=d; break)));
v}
CROSSREFS
KEYWORD
nonn
AUTHOR
Franklin T. Adams-Watters, Oct 07 2009
STATUS
approved