login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A240160 Least number k such that (k!-n)/k is prime, or 0 if no such k exists. 2
0, 0, 0, 4, 5, 0, 7, 8, 0, 0, 0, 4, 13, 0, 15, 4, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 31, 0, 33, 34, 5, 0, 0, 0, 39, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 6, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5 (list; graph; refs; listen; history; text; internal format)
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
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
Sequence in context: A132022 A319459 A318740 * A249860 A360962 A320162
KEYWORD
nonn
AUTHOR
Derek Orr, Aug 01 2014
EXTENSIONS
Typo in PARI code fixed by Colin Barker, Aug 02 2014
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 22:17 EDT 2024. Contains 371964 sequences. (Running on oeis4.)