A088423 a(n) is the number of primes in arithmetic progression starting with 11 and with d = 2n.
2, 1, 4, 2, 1, 2, 1, 1, 3, 2, 1, 1, 2, 1, 5, 2, 1, 3, 1, 1, 2, 1, 1, 3, 2, 1, 1, 2, 1, 6, 2, 1, 1, 2, 1, 2, 1, 1, 3, 1, 1, 1, 2, 1, 4, 2, 1, 2, 2, 1, 2, 1, 1, 1, 1, 1, 1, 2, 1, 3, 1, 1, 4, 2, 1, 1, 1, 1, 2, 2, 1, 1, 2, 1, 1, 2, 1, 2, 1, 1, 2, 1, 1, 3, 2, 1, 1, 1, 1, 2, 2, 1, 4, 2, 1, 1, 1, 1, 1, 2
Offset: 1
Links
- Michael De Vlieger, Table of n, a(n) for n = 1..10000
Programs
-
Mathematica
bb={}; Do[s=1; Do[If[PrimeQ[11+k*d], s=s+1, bb={bb, s}; Break[]], {k, 10}], {d, 2, 200, 2}]; Flatten[bb]
-
PARI
a(n) = my(p=11, x=p+2*n, i=1); while(1, if(ispseudoprime(x), i++; x=x+2*n, return(i))) \\ Felix Fröhlich, May 28 2021
Comments