login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A088422
Number of primes in arithmetic progression starting with 7 and with d=2n.
9
1, 2, 3, 1, 2, 4, 1, 2, 1, 1, 2, 2, 1, 1, 6, 1, 2, 3, 1, 2, 1, 1, 2, 1, 1, 2, 2, 1, 1, 3, 1, 2, 3, 1, 1, 4, 1, 2, 1, 1, 2, 1, 1, 1, 2, 1, 2, 3, 1, 2, 4, 1, 2, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 2, 3, 1, 1, 1, 1, 2, 2, 1, 1, 7, 1, 1, 2, 1, 2, 1, 1, 2, 1, 1, 2, 2, 1, 1, 1, 1, 2, 3, 1, 2, 2, 1, 1, 1, 1, 1, 2, 1, 1, 1
OFFSET
1,2
COMMENTS
Arithmetic progression is stopped when next term is not prime. E.g. for n=3, a=3, that is 7,13,19 are prime, while next term, 25, is not prime.
MATHEMATICA
bb={}; Do[s=1; Do[If[PrimeQ[7+k*d], s=s+1, bb={bb, s}; Break[]], {k, 10}], {d, 2, 200, 2}]; Flatten[bb]
KEYWORD
easy,nonn
AUTHOR
Zak Seidov, Sep 29 2003
STATUS
approved