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!)
A053711 Numbers d such that, for some k, the upper and lower primes closest to k! are k! + d and k! - d. 4
1, 7, 11, 31, 397, 409, 1657, 2131, 7607 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
This sequence lists d = nextprime(k!) - k! = prevprime(k!) - k! for k in A053709.
LINKS
EXAMPLE
For k = 10, k! = 3628800, d = 11, and the closest primes to 10! are q = 10! - 11 = 3628789 and p = 10! + 11 = 3628811. The differences d are listed here.
MATHEMATICA
Reap[Do[If[SameQ @@ #, Sow@ First[#]] &@ Abs[# - NextPrime[#, {-1, 1}]] &[i!], {i, 200}]][[-1, -1]] (* Michael De Vlieger, Jan 14 2022 *)
CROSSREFS
Sequence in context: A236143 A084443 A228029 * A043110 A043890 A132355
KEYWORD
nonn,hard,more
AUTHOR
Labos Elemer, Feb 10 2000
EXTENSIONS
a(5)-a(8) from Donovan Johnson, Oct 12 2008
a(9) from Hans Havermann, Aug 15 2014
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 May 16 16:26 EDT 2024. Contains 372554 sequences. (Running on oeis4.)