login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A088420 Number of primes in arithmetic progression starting with 3 and with d=2n. 10
3, 3, 1, 3, 3, 1, 3, 2, 1, 3, 1, 1, 2, 3, 1, 1, 3, 1, 3, 3, 1, 2, 1, 1, 3, 1, 1, 2, 2, 1, 1, 3, 1, 3, 2, 1, 1, 2, 1, 3, 1, 1, 2, 1, 1, 1, 3, 1, 3, 2, 1, 3, 2, 1, 3, 1, 1, 1, 1, 1, 1, 3, 1, 2, 1, 1, 3, 2, 1, 1, 1, 1, 2, 2, 1, 1, 3, 1, 1, 2, 1, 3, 1, 1, 2, 1, 1, 2, 3, 1, 1, 1, 1, 3, 3, 1, 2, 2, 1, 1 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

COMMENTS

Arithmetic progression is stopped when next term is not prime. E.g. for n=5, a=3, that is 3,13,23 are prime, while next term, 33, is not prime.

a(n) <= 3 because 3+3*d is divisible by 3. [From Klaus Brockhaus (klaus-brockhaus(AT)t-online.de), May 14 2009]

PROG

(MAGMA) npap3:=function(d) c:=1; p:=3+d; while IsPrime(p) do c+:=1; p+:=d; end while; return c; end function; [ npap3(2*n): n in [1..105] ]; [From Klaus Brockhaus (klaus-brockhaus(AT)t-online.de), May 14 2009]

CROSSREFS

Cf. A088421, A088422, A088423, A088424, A088425, A088426, A088427, A088428, A088429.

Cf. A115334. [From Klaus Brockhaus (klaus-brockhaus(AT)t-online.de), May 14 2009]

Sequence in context: A039992 A101988 A200606 * A103585 A154595 A144437

Adjacent sequences:  A088417 A088418 A088419 * A088421 A088422 A088423

KEYWORD

easy,nonn

AUTHOR

Zak Seidov (zakseidov(AT)yahoo.com), Sep 29 2003

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 13 10:39 EST 2012. Contains 205459 sequences.