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

A139187 Smallest twin prime member A001359 of the form k!/n-1.

Original entry on oeis.org

5, 11, 239, 5, 7983359, 3
Offset: 1

Views

Author

Artur Jasinski, Apr 11 2008

Keywords

Comments

"Factorial" twin primes are a pair (k!/n-1, k!/n+1) = (A001359(j), A006512(j)).
Given n, the sequence shows the smallest a(n)=A001359(j) solving this pair equation.
The associated upper twin prime is A139188(n) = A006512(j) = A001359(j)+2 = a(n)+2, and the associated factorial index is k(n) = A139186(n).
The twin prime indices j(n) are 2, 3, 17, 2, 48525, 1.
a(7) is unknown, with k(7) > 25000. A continuation of the sequence, with unknown terms indicated by 0, is a(7)..a(50): 0, 453599, 0, 11, 0, 59, 0, 0, 2687, 0, 0, 0, 2688996956405759999, 5, 239, 0, 0, 29, 44960029111104307199, 0, 134399, 179, 0, 3, 0, 0, 0, 0, 1151, 100799, 0, 0, 536481791999, 17, 0, 0, 0, 141523199, 0, 1313375283986387731246850697141608641462271999999999, 0, 7559, 0, 8065829222532112711679999. - Hugo Pfoertner, Mar 30 2020

Examples

			For n=1, the smallest k is 3, where (3!/1-1,3!/1+1) = (5,7) = (A001359(2),A006512(2)).
For n=3, the smallest k is 6, where (6!/3-1,6!/3+1) = (239,241) = (A001359(17),A006512(17)).
		

Crossrefs

Programs

  • Mathematica
    a = {}; Do[k = 1; While[ ! (PrimeQ[(k! - n)/n] && PrimeQ[(k! + n)/n]), k++ ]; AppendTo[a, (k! - n)/n], {n, 1, 6}]; a

A139188 Greater twin prime member A006512 of the form k!/n + 1.

Original entry on oeis.org

7, 13, 241, 7, 7983361, 5
Offset: 1

Views

Author

Artur Jasinski, Apr 11 2008

Keywords

Comments

Given n, the sequence shows the smallest A006512(j) = a(n) of the form k!/n - 1.
The associated lower twin prime is A139187(n) = A001359(j) = a(n) - 2,
and the associated factorial index is k(n) = A139186(n).
a(7) is unknown, with k(7) > 25000. A continuation of the sequence, with unknown terms indicated by 0, is a(7)..a(50): 0, 453601, 0, 13, 0, 61, 0, 0, 2689, 0, 0, 0, 2688996956405760001, 7, 241, 0, 0, 31, 44960029111104307201, 0, 134401, 181, 0, 5, 0, 0, 0, 0, 1153, 100801, 0, 0, 536481792001, 19, 0, 0, 0, 141523201, 0, 1313375283986387731246850697141608641462272000000001, 0, 7561, 0, 8065829222532112711680001. - Hugo Pfoertner, Mar 30 2020

Crossrefs

Programs

  • Mathematica
    a = {}; Do[k = 1; While[ ! (PrimeQ[(k! - n)/n] && PrimeQ[(k! + n)/n]), k++ ]; AppendTo[a, (k! + n)/n], {n, 1, 6}]; a

Formula

a(n) = A139187(n)+2 = A000142(A139186(n))/n+1 .

A240622 Least number k such that k!/n - 1 is prime.

Original entry on oeis.org

3, 3, 4, 4, 5, 4, 7, 4, 6, 5, 15, 6, 13, 7, 5, 9, 38, 8, 21, 5, 7, 19, 27, 6, 15, 14, 10, 7, 30, 5, 31, 8, 12, 18, 8, 6, 47, 53, 13, 5, 127, 10, 67, 11, 16, 27, 51, 8, 14, 26, 17, 16, 77, 9, 23, 7, 184, 56, 123, 6, 66, 203, 7, 9, 13, 13, 74, 42, 26, 7, 75, 9, 205
Offset: 1

Views

Author

Derek Orr, Apr 09 2014

Keywords

Comments

a(263) > 5000. - Jinyuan Wang, Mar 31 2020

Examples

			1!/1 - 1 = 0 is not prime. 2!/1 - 1 = 1 is not prime. 3!/1 - 1 = 5 is prime. Thus, a(1) = 3.
		

Crossrefs

Programs

  • Mathematica
    lnk[n_]:=Module[{k=1},While[!PrimeQ[k!/n-1],k++];k]; Array[lnk,80] (* Harvey P. Dale, Aug 31 2015 *)
  • PARI
    a(n) = {for(k=1, oo, s=k!/n-1; if(floor(s)==s, if(ispseudoprime(s), return(k)))); }
Showing 1-3 of 3 results.