A175487 a(n) = smallest prime > a(n-1) such that (a(n-1)+a(n)) is a multiple of nextprime(a(n-1)).
2, 7, 37, 127, 397, 3613, 18089, 162881, 1791787, 41211197, 370900973, 4821712733, 43395414737, 477349562419, 4296146062051, 227695741289567, 9335525392876531, 326743388750679161, 16663912826284638251, 583236948919962339073, 9915028131639359764313
Offset: 1
Keywords
Examples
a(1)=2; a(2)=7 because 2+7=9 is a multiple of 3=nextprime(2) a(3)=37 because 7+37=44 is a multiple of 11=nextprime(7) 37+127=164=4*41 (41=nextprime(37)) 127+397=524=4*131 (131=nextprime(127)) 397+3613=4010=10*401 (401=nextprime(397)) 3613+18089=21702=6*3617 (3617=nextprime(3613)) 18089+162881=180970=10*18097 (18097=nextprime(18089)) 162881+1791787=1954668=12*162889 (162889=nextprime(162881)) 1791787+41211197=43002984=24*1791791 (1791791=nextprime(1791787)).
Crossrefs
Cf. A178468.
Programs
-
Mathematica
<
Comments