cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-1 of 1 results.

A240163 Numbers n such that (k!+n)/k is prime for some k.

Original entry on oeis.org

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

Views

Author

Derek Orr, Aug 01 2014

Keywords

Comments

Complement of A245757.

Crossrefs

Programs

  • 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++)

Extensions

Typo in PARI code fixed by Colin Barker, Aug 02 2014
Showing 1-1 of 1 results.