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.

A343637 10^n + a(n) is the least (n+1)-digit prime member of a prime septuplet, or a(n) = 0 if no such number exists.

Original entry on oeis.org

0, 1, 0, 4639, 78799, 65701, 68701, 1900501, 24066079, 12986041, 5758291, 63497419, 126795511, 85452991, 693558301, 1539113749, 1265954431, 959416471, 8269773991, 620669029, 9487038451, 1024481911, 8285411491, 21631441411, 15981152869, 23307738889, 32551582849, 114332503171
Offset: 0

Views

Author

M. F. Hasler, Jul 13 2021

Keywords

Comments

The smallest (n+1)-digit septuplet is given by 10^n + a(n) + D, with either D = {0, 2, 6, 8, 12, 18, 20} or D = {0, 2, 8, 12, 14, 18, 20}. (For septuplets of the first resp. second type, the first member always ends in digit 1, resp. 9.)
Numerical evidence strongly suggests the conjecture that 0 < a(n) < 10^n for all n > 4, but not even the existence of infinitely many prime septuplets is proved.
Terms up to n = 200 and some further isolated terms due to Norman Luhn et al., cf. LINKS.

Examples

			a(0) = 0 because no single-digit prime starts a prime septuplet.
a(1) = 1 because 10^1 + 1 = 11 = A022009(1) is the first member of the smallest (2-digit) prime septuplet {11, 13, 17, 19, 23, 29, 31} (of the first type).
a(2) = 0 because there is no prime septuplet starting with a 3-digit prime.
a(3) = 4639 because 10^3 + a(3) = 5639 = A022010(1) is the first 4-digit initial member of a prime septuplet, which happens to be of the second type, D = {0, 2, 8, 12, 14, 18, 20}. Similarly, 10^4 + a(4) = 88799 = A022010(2) starts the smallest 5-digit prime septuplet.
For all subsequent terms, a(n) < 10^n (conjectured), so the primes are of the form 10...0XXX where XXX = a(n).
		

Crossrefs

Cf. A022009 and A022010 (initial members of prime septuplets of first and second type).
Cf. A343635, A343636 (analog for quintuplets and sextuplets).

Programs

  • PARI
    apply( {A343637(n,D=[2,6,8,12,14,18,20],X=2^6+2^14)=forprime(p=10^n, 10^(n+1), my(t=2); foreach(D, d, ispseudoprime(p+d)||(t-- && bittest(X,d))||next(2));return(p-10^n))}, [0..10]) \\ For illustration; unoptimized code, becomes slow for n >= 11.

Formula

a(n) = min { p > 10^n; p in A022009 U A022010 } - 10^n, for n > 2.

A350826 Number of prime sextuplets with n-digit initial term (A022008).

Original entry on oeis.org

1, 1, 0, 0, 3, 0, 13, 64, 235, 1296, 7013, 41782, 253420, 1607418, 10520883, 70785653, 488096844
Offset: 1

Views

Author

M. F. Hasler, Jan 17 2022

Keywords

Comments

Prime sextuplets are of the form (p, p+4, p+6, p+10, p+12, p+16), where p is the initial member, listed in A022008.
For n = 1 and n = 2 (see Example), the last member of the sextuplet has one digit more than the initial member (so the count would be 0 for these two, if all terms of the sextuplet had to have the same length). As far as we know, for all n > 2, all members of the sextuplets have the same length. A sufficient condition for this is that A033874(n) > 16.

Examples

			For n = 1, p = 7 is the only 1-digit prime to be the initial term of a prime sextuplet, (7, 11, 13, 17, 19, 23), hence a(1) = 1.
For n = 2, p = 97 is the only 2-digit prime to be the initial term of a prime sextuplet, (97, 101, 103, 107, 109, 113), whence a(2) = 1.
For n = 3 and n = 4, there is no n-digit prime to be the initial term of a prime sextuplet, so a(n) = 0.
For n = 5, {16057, 19417, 43777} are the only 5-digit primes which are initial members of a prime sextuplet, therefore a(5) = 3.
		

Crossrefs

Cf. A022008 (initial members of prime sextuplets), A033874 (10^n - precprime(10^n)).

Programs

  • PARI
    apply( {A350826(n,L=10^n)=n=L\10; for(c=0,oo, L<(n=next_A022008(n)) && return(c))}, [1..8])

Formula

a(n) = # { p in A022008 | 10^(n-1) < p < 10^n }.

Extensions

a(10)-a(12) from David A. Corneth, Jan 17 2022
a(13)-a(17) from Hugo Pfoertner, Jan 21 2022

A343635 10^n + a(n) is the least (n+1)-digit prime member of a prime 5-tuple, or a(n) = 0 if no such number exists.

Original entry on oeis.org

4, 1, 1, 481, 5727, 1107, 8851, 18027, 5457, 408807, 57931, 358531, 274587, 256497, 6111627, 67437, 3246567, 1638811, 8224977, 11687221, 24556351, 3129657, 15602131, 571381, 23034391, 110598987, 26716321, 31722117, 39711931, 5046777, 81054327, 1346611, 44656587
Offset: 0

Views

Author

M. F. Hasler, Jul 17 2021

Keywords

Comments

The smallest (n+1)-digit prime 5-tuple is given by 10^n + a(n) + D, with either D = {0, 2, 6, 8, 12} or D = {0, 4, 6, 10, 12}. N = 0 is the only case where the last member of the 5-tuple has one digit more than the first member.
Numerical evidence strongly suggests the conjecture that 0 < a(n) < 10^n for all n > 0, but not even the existence of infinitely many prime 5-tuples is proved.
Some further isolated terms, due to Norman Luhn et al., giving the start of the smallest 500, 600, 700, ..., 1200 digit quintuplets of first or second type:
a(499) = min(58195471283341, 69672492141807),
a(599) = min(319491304676641, 12754947401547),
a(699) = min(2254633393747621, 209264286017367),
a(799) = min(2117758391972791, 1299258655252617),
a(899) = min(2365663735968811, 1484244113736867),
a(999) = min(3554007760224751, 3818999670116007),
a(1099) = min(26317044823878361, 15720821612555937),
a(1199) = min(20483870459152351, 7033048489975137).
Terms through a(399) may be determined by taking the minima of those in the linked tables for quintuplets by Norman Luhn et al. - Michael S. Branicky, Jul 24 2021
The first member of the quintuplets of the first type always ends in digit 1 (except for the 5-tuple (5, 7, 11, 13, 17) corresponding to a(0)), for the second type it always ends in digit 7. Therefore all a(n), n > 0, end in a digit 1 or 7, which indicates the type of the 5-tuple, i.e., the set D that has to be added to 10^n + a(n) to get the whole 5-tuple. - M. F. Hasler, Aug 04 2021

Examples

			a(0) = 4 because {5, 7, 11, 13, 17} is the smallest prime 5-tuple and it starts with the single-digit prime 10^0 + a(0) = 5 = A022006(1).
a(1) = 1 because 10^1 + 1 = 11 = A022006(2) is the 2-digit prime to start a prime 5-tuple {11, 13, 17, 19, 23}, again of the first type.
a(2) = 1 and a(3) = 481 because 10^2 + 1 = 101 = A022006(3) and 10^3 + 481 = 1481 = A022006(4) are the smallest 3-digit, resp. 4-digit, initial members of a prime 5-tuple, both again of the first type.
a(4) = 5727 because 10^4 + 5727 = 15727 = A022007(6) is the smallest 5-digit initial member of a prime 5-tuple, now of the second type.
It appears that for all n > 0, a(n) < 10^n, so that the primes are of the form 10...0XXX where XXX = a(n) and 0...0 stands for a string of zero or more digits 0.
		

Crossrefs

Cf. A022006 and A022007 (initial members of prime 5-tuples of first and second type).
Cf. A343636, A343637 (analog for sextuplets and septuplets).

Programs

  • PARI
    apply( {A343635(n,q=[1..4],i=0)=forprime(p=10^n,, (q[1+i]+12==q[i++]=p) && return(p-12-10^n); i>3 && i=0)}, [0..15]) \\ Shorter but slightly slower (?)
    
  • PARI
    apply( {A343635(n, i=ispseudoprime, q)=forprime(p=10^n,, i(p+12) && i(p+6) && (p+6 > q=nextprime(p+2)) && i(q+6) && return(p-10^n))}, [0..15])
    
  • Python
    from sympy import nextprime
    def a(n):
        p = nextprime(10**n)
        q = nextprime(p); r = nextprime(q); s = nextprime(r); t = nextprime(s)
        while p < 10**(n+1):
            if t - p == 12: return p - 10**n
            p, q, r, s, t = q, r, s, t, nextprime(t)
        return 0
    print([a(n) for n in range(14)]) # Michael S. Branicky, Jul 24 2021
Showing 1-3 of 3 results.