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.

Showing 1-1 of 1 results.

A225941 Smallest k such that k*6^n-1 is prime.

Original entry on oeis.org

1, 2, 2, 2, 2, 3, 5, 13, 3, 19, 5, 2, 3, 28, 12, 2, 15, 19, 19, 20, 7, 13, 5, 3, 4, 2, 2, 7, 42, 7, 4, 7, 5, 34, 8, 2, 78, 13, 12, 2, 3, 24, 4, 12, 2, 37, 30, 5, 2, 28, 12, 2, 2, 35, 59, 58, 15, 65, 82, 28, 32, 60, 10, 48, 8, 14, 23, 5, 32, 18, 3, 80, 28, 12, 2
Offset: 1

Views

Author

Pierre CAMI, May 21 2013

Keywords

Comments

In average k~0.6*n and 08*n

Crossrefs

Cf. A225911.

Programs

  • Mathematica
    skp[n_]:=Module[{k=1,c=6^n},While[!PrimeQ[k*c-1],k++];k]; Array[skp,80] (* Harvey P. Dale, Jul 22 2013 *)
  • PARI
    a(n) = my(k=1); while (!isprime(k*6^n-1), k++); k; \\ Michel Marcus, Sep 16 2019
Showing 1-1 of 1 results.