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.

A139073 Smallest prime number of the form (n+k!)/n.

Original entry on oeis.org

2, 2, 3, 7, 1009, 2, 5702401, 631, 4481, 13, 566092801, 3, 23452949585516450807808000001, 259201, 337, 2521, 3553839003727872684550301886383176323956736000000001, 41
Offset: 1

Views

Author

Artur Jasinski, Apr 07 2008

Keywords

Crossrefs

Programs

  • Mathematica
    a = {}; Do[ k = 1; While[ ! PrimeQ[ (k! + n)/n ], k++ ]; AppendTo[ a, (k! + n)/n ], {n, 1, 100} ]; a [Corrected May 06 2008]
  • PARI
    a(n)=my(k,t);until(denominator(t=k++!/n+1)==1&&ispseudoprime(t),);t \\ Charles R Greathouse IV, Jul 19 2011

Formula

a(n) = (n + A139072(n)!)/n. - Amiram Eldar, Oct 14 2024