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-2 of 2 results.

A100614 Numbers n such that (!n)/2 is prime, where !n = Sum_{k=0..n-1} k!.

Original entry on oeis.org

3, 4, 5, 8, 9, 10, 11, 30, 76, 163, 271, 273, 354, 721, 1796, 3733, 4769, 9316, 12221, 41532
Offset: 1

Views

Author

R. K. Guy, Dec 02 2004

Keywords

Comments

No other terms below 50000. - Serge Batalov, Jul 23 2017

References

  • R. K. Guy, Unsolved Problems In Number Theory, B44.

Crossrefs

Cf. A014288, Left factorials: A003422.
See A124375 for another version.

Programs

  • Mathematica
    s = 1; Do[s = s + n!; If[ PrimeQ[s/2], Print[n + 1]], {n, 10^3}] (* Robert G. Wilson v, Dec 02 2004 *)

Formula

When A014288(n-1) is prime.

Extensions

a(14) from Robert G. Wilson v, Dec 02 2004
a(15)=1796 from Ray Chandler, Dec 02 2004
a(17) from T. D. Noe, Dec 04 2004
Corrected by adding a(16)=3733 from Eric W. Weisstein, Oct 29 2005
a(18)=9316 from Eric W. Weisstein, Dec 27 2005
a(19)=12221 from Eric W. Weisstein, Oct 19 2006
a(20)=41532 from Serge Batalov, Jul 22 2017

A124374 Primes of the form !(k + 1)/2 = Sum_{i=0..k} i!/2.

Original entry on oeis.org

2, 5, 17, 2957, 23117, 204557, 2018957, 4578979328975537786697650470157, 12572230784049013026617689884981971446439568309146114097251787122217783800812199225999909965168264460210470157
Offset: 1

Views

Author

Alexander Adamchuk, Oct 28 2006

Keywords

Comments

Sum_{i=0..k} i! = k! + !k = A003422(k+1), where !k is left factorial !k = Sum_{i=0..k-1} i! = A003422(k). Left factorials are even for k > 1. Corresponding numbers k such that Sum_{i=0..k} i!/2 = A003422(k+1)/2 is prime are listed in A124375(n) = {2, 3, 4, 7, 8, 9, 10, 29, 75, 162, 270, 272, 353, ...}.

Crossrefs

Programs

  • Mathematica
    f=0;Do[f=f+n!;If[PrimeQ[f/2],Print[{n,f/2}]],{n,0,353}]

Formula

a(n) = A003422(A124375(k) + 1)/2.
Showing 1-2 of 2 results.