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.

A368203 Least k such that 7*n*k+1 is a prime.

Original entry on oeis.org

4, 2, 2, 1, 2, 1, 4, 2, 2, 1, 6, 4, 6, 2, 2, 1, 2, 1, 12, 2, 6, 3, 6, 2, 4, 3, 2, 1, 12, 1, 6, 2, 2, 1, 2, 3, 10, 6, 2, 1, 6, 3, 10, 2, 2, 3, 2, 1, 4, 2, 4, 3, 2, 1, 6, 8, 4, 6, 2, 1, 4, 3, 2, 1, 2, 1, 4, 2, 2, 1, 14, 2, 6, 5, 2, 3, 12, 1, 4, 5, 4, 3, 2, 6
Offset: 1

Views

Author

Robert Price, Dec 16 2023

Keywords

Crossrefs

A070851 lists the corresponding primes.

Programs

  • Mathematica
    A368203 = {};
    Do[k=1; While[!PrimeQ[7 n k+1], k++]; AppendTo[A368203,k], {n,84}];
    A368203
  • PARI
    a(n) = my(k=1); while (!isprime(7*n*k+1), k++); k; \\ Michel Marcus, Dec 16 2023