OFFSET
1,2
COMMENTS
The existence of a(n) follows from the following general conjecture.
Conjecture: Let m > 1 and let P(m) be the set of all sums of m consecutive primes.
(i) If m is even, then each positive rational number can be written as p/q with p and q elements of P(m).
(ii) If m is odd, then for any positive odd integers a and b we can write a/b as p/q, where p and q belong to the set P(m).
LINKS
Zhi-Wei Sun, Table of n, a(n) for n = 1..2000
EXAMPLE
a(1) = 1 since (2*1-1)*(prime(1)+prime(2)+prime(3)) = 2 + 3 + 5 is a sum of three consecutive primes.
a(2) = 16 since (2*2-1)*(prime(16)+prime(17)+prime(18)) = 3*(53+59+61) = 519 = 167+173+179 = prime(41)+prime(42)+prime(43).
MATHEMATICA
p[n_]:=p[n]=Prime[n]; S[n_]:=S[n]=p[n]+p[n+1]+p[n+2];
f[n_]:=f[n]=Sum[If[S[k]<=n&&S[k+1]>n, k, 0], {k, 1, PrimePi[n/3]}];
YQ[n_]:=YQ[n]=S[f[n]]==n;
tab={}; Do[m=1; Label[bb]; If[YQ[(2n-1)*S[m]], tab=Append[tab, m]; Goto[aa]]; m=m+1; Goto[bb]; Label[aa], {n, 1, 90}]; Print[tab]
CROSSREFS
KEYWORD
nonn
AUTHOR
Zhi-Wei Sun, Nov 02 2025
STATUS
approved
