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!)
A139186 a(n) is the smallest k such that k!/n +- 1 is a twin prime pair. 3
3, 4, 6, 4, 11, 4 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Smallest factorial indices k such that (k!/n-1, k!/n+1) = (A001359(j), A006512(j)) for some twin prime index j.
If it exists, a(7) > 1000. A continuation of the sequence, with unknown terms indicated by 0, is a(8)..a(50): 10, 0, 5, 0, 6, 0, 0, 8, 0, 0, 0, 21, 5, 7, 0, 0, 6, 22, 0, 10, 7, 0, 5, 0, 0, 0, 0, 8, 10, 0, 0, 16, 6, 0, 0, 0, 13, 0, 43, 0, 9, 0, 26. The unknown terms have been checked through k <= 1000. - Hugo Pfoertner, Mar 29 2020
LINKS
FORMULA
A000142(a(n))/n - 1 = A139187(n).
A000142(a(n))/n + 1 = A139188(n).
EXAMPLE
For n=6, solutions to k!/n - 1 = A001359(j) are given by k = 4, 11, 13, 17, ...
The smallest k out of these, k=4, is a(6).
MATHEMATICA
a = {}; Do[k = 1; While[ ! (PrimeQ[(k! - n)/n] && PrimeQ[(k! + n)/n]), k++ ]; AppendTo[a, k]; Print[a], {n, 1, 6}]; a
PROG
(PARI) a(n) = {my(k=1); while (! ((denominator(m=k!/n)==1) && isprime(m-1) && isprime(m+1)), k++); k; } \\ Michel Marcus, Mar 29 2020
CROSSREFS
Sequence in context: A238502 A023823 A279081 * A326417 A047840 A037189
KEYWORD
nonn,more
AUTHOR
Artur Jasinski, Apr 11 2008
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 17 12:26 EDT 2024. Contains 372600 sequences. (Running on oeis4.)