A301423 Numbers k such that !k/(k-1) is prime, where !k = A000166(k) is the subfactorial of k.
4, 5, 6, 11, 15, 44, 66, 168, 575, 1713
Offset: 1
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
Comments