A116659 Numbers k such that prime(k) == 14 (mod k).
1, 3, 9, 23, 81, 85, 87, 16057, 4124457, 27067011, 27067127, 1208198605, 1208198851
Offset: 1
Keywords
Crossrefs
Programs
-
Mathematica
NextPrim[n_] := Block[{k = n + 1}, While[ !PrimeQ[k], k++ ]; k]; p = 1; Do[ If[ Mod[p = NextPrim[p], n] == 14, Print[n]], {n, 10^9}] (* Robert G. Wilson v *)
-
Sage
def A116659(max) : terms = [] p = 2 for n in range(1, max+1) : if (p - 14) % n == 0 : terms.append(n) p = next_prime(p) return terms # Eric M. Schmidt, Feb 05 2013
Extensions
a(9)-a(13) from Robert G. Wilson v, Feb 22 2006
First three terms inserted by Eric M. Schmidt, Feb 05 2013
Comments