OFFSET
1,2
COMMENTS
In average k~0.6*n and 0<k<8*n until a proof k may be >8*n
LINKS
Pierre CAMI, Table of n, a(n) for n = 1..3000
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 *)
PROG
(PFGW & SCRIPTIFY)
SCRIPT
DIM n, 0
DIM k
DIMS t
OPENFILEOUT myf, a(n).txt
LABEL a
SET n, n+1
IF n>3000 THEN END
SET k, 0
LABEL b
SET k, k+1
SETS t, %d, %d\,; n; k
PRP k*6^n-1, t
IF ISPRP THEN GOTO c
GOTO b
LABEL c
WRITE myf, t
GOTO a
(PARI) a(n) = my(k=1); while (!isprime(k*6^n-1), k++); k; \\ Michel Marcus, Sep 16 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Pierre CAMI, May 21 2013
STATUS
approved