OFFSET
1,2
COMMENTS
a(n) >= A002034(n). - Charles R Greathouse IV, Jul 15 2011
a(878) > 5000. - Jinyuan Wang, Apr 01 2020
LINKS
Jinyuan Wang, Table of n, a(n) for n = 1..877
MATHEMATICA
a = {}; Do[k = 1; While[ ! PrimeQ[(k! + n)/n], k++ ]; AppendTo[a, k], {n, 1, 100}]; a
PROG
(PARI) pr(n)=denominator(n)==1 && ispseudoprime(n)
a(n)=my(k); until(pr(k++!/n+1), ); k \\ Charles R Greathouse IV, Jul 15 2011
CROSSREFS
KEYWORD
nonn
AUTHOR
Artur Jasinski, Apr 07 2008
STATUS
approved