OFFSET
1,3
COMMENTS
Conjecture: a(n) exists for any n > 0. Moreover, a(n) <= n^2 except for n = 5, 10, 15, 27.
See also A248369 for a similar conjecture.
LINKS
Zhi-Wei Sun, Table of n, a(n) for n = 1..10000
EXAMPLE
a(5) = 175 since prime(175+5) - prime(175) = 1069 - 1039 = 30 divides 175 + 5 = 180.
MATHEMATICA
q[n_]:=q[n]=PartitionsQ[n]
Do[m=1; Label[aa]; If[Mod[m+n, Prime[m+n]-Prime[m]]==0, Print[n, " ", m]; Goto[bb]]; m=m+1; Goto[aa]; Label[bb]; Continue, {n, 1, 50}]
PROG
(PARI)
a(n)=m=1; while((m+n)%(prime(m+n)-prime(m)), m++); m
vector(100, n, a(n)) \\ Derek Orr, Oct 05 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Zhi-Wei Sun, Oct 05 2014
STATUS
approved