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.

A301423 Numbers k such that !k/(k-1) is prime, where !k = A000166(k) is the subfactorial of k.

Original entry on oeis.org

4, 5, 6, 11, 15, 44, 66, 168, 575, 1713
Offset: 1

Views

Author

Amiram Eldar, Mar 20 2018

Keywords

Comments

Also numbers k such that A000255(k-2) is prime.
The corresponding primes are 3, 11, 53, 1468457, 34361893981, 22742406079421034331584846001936724930824184898296683, ...
a(11) > 35000. - Robert Price, Apr 14 2018

Crossrefs

Programs

  • Mathematica
    Select[Range[2,100], PrimeQ[Subfactorial[#]/(#-1)] &]
  • PARI
    isok(n) = (n != 1) && isprime(n!*sum(k=0, n, (-1)^k/k!)/(n-1)); \\ Michel Marcus, Mar 24 2018