OFFSET
1,1
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..62
EXAMPLE
a(1)=17 because 1*17 + 19 = 36, a square. a(2)=7 because 2*7 + 11 = 25 a square.
MATHEMATICA
Do[k = 1; While[ !IntegerQ[ Sqrt[ n*Prime[k] + Prime[k + 1]]], k++ ]; Print[ Prime[k]], {n, 1, 100} ]
PROG
(PARI) ps(n, k) = k*prime(n)+prime(n+1) k=1; for(n=1, 10^6, if(issquare(ps(n, k)), print1(prime(n), " "); k++; n=0))
(PARI) ps(m, n)= { n*prime(m) + prime(m + 1) } { n=0; default(primelimit, 4294965247); for (n=1, 100, m=1; while (!issquare(ps(m, n)), m++); write("b064545.txt", n, " ", prime(m)) ) } \\ Harry J. Smith, Sep 18 2009
CROSSREFS
KEYWORD
nonn
AUTHOR
Jason Earls, Oct 08 2001
EXTENSIONS
More terms from Robert G. Wilson v, Oct 09 2001
STATUS
approved