login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A240163
Numbers n such that (k!+n)/k is prime for some k.
3
1, 2, 3, 4, 6, 8, 9, 10, 12, 15, 16, 18, 20, 22, 24, 25, 27, 28, 30, 32, 33, 35, 36, 38, 40, 42, 44, 45, 46, 49, 51, 52, 56, 58, 60, 63, 65, 66, 68, 70, 72, 74, 78, 80, 81, 82, 84, 85, 87, 88, 91, 92, 95, 96, 100, 102, 104, 105, 106, 108, 112, 114, 115, 116, 117, 120, 121, 123, 124, 126
OFFSET
1,2
COMMENTS
Complement of A245757.
LINKS
PROG
(PARI)
a(n)=for(k=1, n, s=(k!+n)/k; if(floor(s)==s, if(ispseudoprime(s), return(k))))
n=1; while(n<200, if(a(n), print1(n, ", ")); n++)
CROSSREFS
Sequence in context: A064150 A259227 A196149 * A331819 A269045 A067023
KEYWORD
nonn
AUTHOR
Derek Orr, Aug 01 2014
EXTENSIONS
Typo in PARI code fixed by Colin Barker, Aug 02 2014
STATUS
approved