login
A368201
Least k such that 9*n*k+1 is a prime.
1
2, 1, 4, 1, 4, 2, 2, 1, 2, 2, 2, 1, 8, 1, 2, 3, 2, 1, 12, 1, 2, 1, 4, 2, 8, 4, 2, 3, 2, 1, 4, 2, 6, 1, 2, 4, 6, 6, 10, 5, 2, 1, 4, 1, 2, 2, 4, 1, 2, 4, 2, 2, 14, 1, 2, 2, 4, 1, 2, 1, 14, 2, 4, 1, 2, 3, 12, 1, 6, 1, 2, 2, 6, 3, 6, 3, 6, 5, 2, 3, 2, 1, 6, 1, 2
OFFSET
1,1
LINKS
MATHEMATICA
A368201 = {};
Do[k=1; While[!PrimeQ[9 n k+1], k++]; AppendTo[A368201, k], {n, 85}];
PROG
(PARI) a(n) = my(k=1); while (!isprime(9*n*k+1), k++); k; \\ Michel Marcus, Dec 16 2023
CROSSREFS
A070853 lists the corresponding primes.
Sequence in context: A040005 A193306 A053578 * A168177 A216864 A337175
KEYWORD
nonn
AUTHOR
Robert Price, Dec 16 2023
STATUS
approved