OFFSET
1,1
LINKS
Paolo P. Lava, Table of n, a(n) for n = 1..100
Carlos Rivera, Conjecture 92. For any integer m there is at least one set of consecutive primes..., The Prime Puzzles and Problems Connection.
EXAMPLE
a(5) = 43. The least 3 consecutive primes are 43, 47, 53:
43 + 47 = 90 and 90/5 = 18;
47 + 53 = 100 and 100/5 = 20.
a(41) = 1772119. The least 3 consecutive primes are 1772119, 1772167, 1772201:
1772119 + 1772167 = 3544286 and 3544286/41 = 86446;
1772167 + 1772201 = 3544368 and 3544368/41 = 86448.
MAPLE
P:=proc(q) local a, b, c, n, v; v:=[]; for n from 1 to 45 do a:=2; b:=3; c:=5;
while true do if frac((a+b)/n)=0 and frac((b+c)/n)=0 then v:=[op(v), a]; break;
else a:=b; b:=c; c:=nextprime(c); fi; od; od; op(v); end: P(2*10^6);
MATHEMATICA
Do[p=0; Until[Mod[Prime[p]+Prime[p+1], n]==0&&Mod[Prime[p+1]+Prime[p+2], n]==0, p++]; a[n]=Prime[p], {n, 45}]; Array[a, 45] (* James C. McMahon, Apr 09 2025 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paolo P. Lava, Apr 04 2025
STATUS
approved
