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”).

A157341
Least number k such that 6*k^n-1 is prime, with k>1 when n>1.
2
1, 2, 2, 10, 2, 2, 3, 20, 22, 2, 3, 220, 9, 8, 30, 120, 2, 7, 3, 45, 4, 3, 10, 125, 8, 3, 4, 5, 77, 108, 8, 30, 2, 3, 35, 15, 2, 35, 53, 10, 32, 2, 32, 50, 37, 12, 17, 215, 73, 45, 4, 55, 43, 2, 3, 715, 42, 70, 33, 160, 3, 90, 2, 745, 5, 38, 3, 40, 7, 295, 4, 5, 10, 70, 2, 90, 138, 32, 60
OFFSET
1,2
LINKS
PROG
(PARI) a(n) = {my(k); if (n>1, k = 2, k = 1); while (!isprime(6*k^n-1), k++); k; } \\ Michel Marcus, Sep 15 2019
(Magma) sol:=[1]; for n in [2..80] do k:=2; while not IsPrime(6*k^n-1) do k:=k+1; end while; Append(~sol, k); end for; sol; // Marius A. Burtea, Sep 15 2019
CROSSREFS
Cf. A164523 (where a(n)=2).
Sequence in context: A081086 A019514 A135816 * A038036 A374188 A297793
KEYWORD
nonn
AUTHOR
Pierre CAMI, Feb 27 2009
EXTENSIONS
Corrected by Pierre CAMI, Mar 09 2009
Name clarified by Michel Marcus, Sep 15 2019
STATUS
approved