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

A368202
Least k such that 6*n*k+1 is a prime.
1
1, 1, 1, 3, 1, 1, 1, 2, 2, 1, 1, 1, 1, 4, 2, 1, 1, 1, 2, 2, 1, 3, 1, 3, 1, 1, 1, 2, 2, 1, 2, 1, 1, 2, 1, 2, 1, 1, 4, 1, 3, 3, 4, 5, 1, 1, 1, 2, 3, 2, 1, 1, 10, 4, 1, 1, 6, 1, 2, 5, 1, 1, 1, 2, 3, 1, 4, 1, 2, 1, 2, 1, 1, 4, 4, 1, 1, 2, 3, 7, 1, 6, 1, 2, 2, 2
OFFSET
1,4
LINKS
MATHEMATICA
A368202 = {};
Do[k=1; While[!PrimeQ[9 n k+1], k++]; AppendTo[A368202, k], {n, 86}];
PROG
(PARI) a(n) = my(k=1); while (!isprime(6*n*k+1), k++); k; \\ Michel Marcus, Dec 16 2023
CROSSREFS
A070850 lists the corresponding primes.
Sequence in context: A359635 A065372 A015137 * A136148 A178252 A338199
KEYWORD
nonn
AUTHOR
Robert Price, Dec 16 2023
STATUS
approved