The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A055493 Numbers n such that Sum_{k=1..n} k! - 2 is prime. 0
3, 4, 5, 12, 13, 19, 65, 90, 123, 211, 281, 459 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
There are no further terms in this sequence because for all n >= 466 (Sum_{k=1..n} k!) - 2 is divisible by 467. [From Dmitry Kamenetsky, Feb 10 2009]
LINKS
EXAMPLE
1! + 2! + 3! + 4! + 5! -2 = 1 + 2 + 6 + 24 + 120 - 2 = 151 which is a prime.
MATHEMATICA
Do[If[PrimeQ[Sum[m!, {m, 1, n}]-2], Print[n]], {n, 1, 2500}]
Flatten[Position[Accumulate[Range[500]!]-2, _?PrimeQ]] (* Harvey P. Dale, Nov 15 2014 *)
CROSSREFS
Sequence in context: A296966 A235598 A191197 * A109350 A239356 A077034
KEYWORD
nonn,fini,full
AUTHOR
Robert G. Wilson v, Jul 05 2000
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 2 15:24 EDT 2024. Contains 373040 sequences. (Running on oeis4.)