OFFSET
1,1
LINKS
Zak Seidov, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = (A249419(n)+2)/prime(n).
MATHEMATICA
lnm[n_]:=Module[{m=2, p=Prime[n]}, While[!PrimeQ[m*p-2], m++]; m]; Array[ lnm, 90] (* Harvey P. Dale, Oct 22 2019 *)
PROG
(PARI) a(n) = {m = 2; pn = prime(n); while (!isprime(m*pn-2), m++); m; } \\ Michel Marcus, Oct 29 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Oct 28 2014
STATUS
approved