OFFSET
1,3
COMMENTS
Conjecture: a(n) exists for any n > 0. Moreover, a(n) <= n*(n-1)/2 for all n > 1.
See also the comments in A248052.
LINKS
Zhi-Wei Sun, Table of n, a(n) for n = 1..10000
EXAMPLE
a(3) = 2 since 2 + 3 = 5 divides prime(2^2) + prime(3^2) = 7 + 23 = 30.
MATHEMATICA
Do[m = 1; Label[aa]; If[Mod[Prime[m^2] + Prime[n^2], m + n] == 0, Print[n, " ", m]; Goto[bb]]; m = m + 1; Goto[aa]; Label[bb]; Continue, {n, 1, 60}]
PROG
(PARI) a(n)=my(N=prime(n^2), m); while((prime(m++^2)+N)%(m+n), ); m \\ Charles R Greathouse IV, Oct 05 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Zhi-Wei Sun, Oct 05 2014
STATUS
approved