OFFSET
1,1
COMMENTS
q - p = k with k = 3, 8, 144.
The next terms with q - p = k are F(432) = 85738...5984 and F(570) where F(n) is the n-th Fibonacci number. All such terms are in A001906; the next such term, if one exists, has more than 25000 decimal digits. - Charles R Greathouse IV, Jan 21 2011
LINKS
Jinyuan Wang, Table of n, a(n) for n = 1..10000
EXAMPLE
a(3) = 12 because 12^2 + 1 = 5*29 and 29 - 5 = 2*12;
a(8) = 34840 because 34840^2 + 1 = 4289 * 283009 and 283009 - 4289 = 278720 = 8*34840.
MAPLE
with(numtheory):for k from 1 to 40000 do: x:=k^2+1:y:=factorset(x):yy:=bigomega(x):if
yy=2 and irem(y[2], k) =y[1] then printf(`%d, `, k):else fi:od:
PROG
(PARI) w(m, r) = Vec(x*(1-x)/(1-(m^2+2)*x+x^2) + O(x^r));
isok(s, t) = isprime(s) && isprime(s+t);
lista(nn) = {my(g, k, m=1, r, u=w(1, nn), v=List([])); for(i=2, r=#u, g=k=(u[i]+sqrtint(5*u[i]^2-4))/2; if(isok(u[i], k), listput(v, k))); while(r>2, u=w(m++, r); for(i=2, #u, k=(m*u[i]+sqrtint((m^2+4)*u[i]^2-4))/2; if(k<g, if(isok(u[i], m*k), listput(v, k)), r=i; break))); Set(v); } \\ Jinyuan Wang, Mar 29 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Lagneau, Jan 20 2011
EXTENSIONS
More terms from Charles R Greathouse IV, Jan 24 2011
Missing terms inserted and more terms from Jinyuan Wang, Mar 30 2020
STATUS
approved