OFFSET
1,4
COMMENTS
For a(n) > 0, a(n) is a divisor of n.
If a(n) = n, then n - 1 is in A002982.
LINKS
Jens Kruse Andersen, Table of n, a(n) for n = 1..2500
PROG
(PARI)
a(n)=for(k=1, n, s=(k!-n)/k; if(floor(s)==s, if(ispseudoprime(s), return(k))))
vector(150, n, a(n))
CROSSREFS
KEYWORD
nonn
AUTHOR
Derek Orr, Aug 01 2014
EXTENSIONS
Typo in PARI code fixed by Colin Barker, Aug 02 2014
STATUS
approved