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.

A036780 Primes of the form n + Sum_{i=1..n} i!.

Original entry on oeis.org

2, 5, 37, 4037923
Offset: 1

Views

Author

Keywords

Comments

Indices that give primes: 1, 2, 4, 10. - Michel Marcus, Jan 06 2014
a(5) corresponds to index 1006 and has 2586 decimal digits. - Giovanni Resta, Jan 06 2014
a(6) corresponds to index 8180 and has 28457 decimal digits. - Charles R Greathouse IV, Jan 08 2014

Crossrefs

Cf. A036782.

Programs

  • Mathematica
    With[{nn=40},Select[Total/@Thread[{Range[nn],Accumulate[Range[ nn]!]}], PrimeQ]] (* Harvey P. Dale, Feb 18 2018 *)
  • PARI
    lista(nn) = { for (n=1, nn, if (isprime(p = sum(i=1, n, i!) + n), print1(p, ", ")););} \\ Michel Marcus, Jan 06 2014

Extensions

Definition corrected by Michel Marcus, Jan 06 2014
Showing 1-1 of 1 results.