A116615 Values of n such that prime(2n) mod 12 = 7.
2, 4, 7, 11, 17, 18, 19, 23, 24, 29, 45, 57, 69, 94, 101, 105, 111, 112, 116, 121, 129, 133, 136, 137, 138, 141, 150, 157, 162, 164, 170, 172, 174, 177, 184, 187, 197, 203, 207, 209, 220, 231, 235, 239, 245, 250, 251, 252, 254, 255, 260, 261, 270, 273, 276, 283
Offset: 1
Keywords
Examples
23 is in the sequence because the 46th prime is 199 and 199 mod 12=7.
Links
- G. C. Greubel, Table of n, a(n) for n = 1..1000
Programs
-
Maple
a:=proc(n) if ithprime(2*n) mod 12 = 7 then n else fi end: seq(a(n),n=1..300);
-
Mathematica
Select[Range[1, 500], Mod[Prime[2*#], 12] == 7 &] (* G. C. Greubel, Nov 19 2017 *)
-
PARI
for( n=1,999, prime(2*n)%12==7 & print1(n",")) \\ M. F. Hasler, May 22 2009
Formula
Extensions
Edited by N. J. A. Sloane, Apr 05 2006