login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A123438
Numbers k such that the denominator of k!/!k (= A000142(k)/A000166(k)) is prime.
0
4, 5, 6, 7, 10, 11, 15, 16, 34, 44, 63, 66, 168, 427, 575, 928, 1094, 1218, 1363, 1713, 5278, 10814
OFFSET
1,1
COMMENTS
That is, numbers k such that A053557(k) is prime. - Michel Marcus, Aug 28 2013
MATHEMATICA
a[n_] := Sum[(-1)^k/k!, {k, 0, n}]; Select[Range[100], PrimeQ[Numerator[a[#]]] &] (* G. C. Greubel, Oct 31 2017 *)
PROG
(PARI) isok(n) = isprime(numerator(sum(k=0, n, (-1)^k/k!))); \\ Michel Marcus, Aug 28 2013
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Ed Pegg Jr, Jul 11 2008
EXTENSIONS
a(16)-a(20) from G. C. Greubel, Nov 01 2017
a(21)-a(22) from Michael S. Branicky, Dec 16 2024
STATUS
approved