cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A088420 Number of primes in arithmetic progression starting with 3 and with d = 2n.

Original entry on oeis.org

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
Offset: 1

Views

Author

Zak Seidov, Sep 29 2003

Keywords

Comments

The arithmetic progression is stopped when the next term is not prime. E.g., for n=5, a=3, the numbers 3, 13, and 23 are prime, while the next term, 33, is not prime.
a(n) <= 3 because 3+3*d is divisible by 3. - Klaus Brockhaus, May 14 2009

Crossrefs

Programs

  • 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] ]; // Klaus Brockhaus, May 14 2009