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.

Previous Showing 11-20 of 21 results. Next

A047947 a(n) is the number of k values for which A023193(k) = n.

Original entry on oeis.org

2, 4, 2, 4, 4, 4, 6, 4, 2, 4, 6, 6, 2, 6, 4, 6, 4, 6, 4, 4, 6, 4, 6, 10, 4, 6, 6, 4, 6, 4, 6, 6, 4, 2, 4, 6, 8, 6, 4, 2, 8, 4, 10, 2, 4, 10, 10, 4, 6, 6, 2, 10, 6, 2, 6, 4, 6, 12, 4, 6, 10, 4, 6, 6, 6, 8, 6, 10, 4, 8, 6, 6, 2, 6, 12, 10, 2, 4, 6, 6, 8, 4, 2, 10, 8, 6, 6, 4, 8, 10, 2, 6, 4, 2
Offset: 1

Views

Author

Keywords

Comments

The old name was: "Schinzel's rhobar(n), number of distinct lengths of a block of consecutive integers on which a maximum of n primes occurs infinitely often (under the k-tuple conjecture)." [Note that "rhobar" is A023193.]

Examples

			A block of 21 through 26 consecutive integers may contain at most 7 primes infinitely often. There are 6 possible lengths (21 through 26), so rhobar(7) = 6.
		

References

Crossrefs

First differences of A020497. Cf. A008407, A023193.

Extensions

Definition corrected by Wolfdieter Lang, Oct 07 2017

A120934 Least prime p such that the interval [p,p+log(p)] contains n primes.

Original entry on oeis.org

2, 11, 457, 3251, 165701, 10526557, 495233351, 196039655873, 10687033762033, 79006533276941, 4313367040646743, 1740318019946551931
Offset: 1

Views

Author

T. D. Noe, Jul 21 2006

Keywords

Comments

Soundararajan states that, on average, there is one prime in the interval [k,k+log(k)] for any number k. Is there an upper limit to the number of primes in such an interval? Not if the prime k-tuple conjecture is true, in which case a(n) exists for all n. Note that a(n) > e^A008407(n). See A120935 for the largest prime in the interval.
a(n) begins a sequence of n primes whose prime pattern is one of the patterns in the n-th row of A186634. For example, the sequence of four consecutive primes beginning with 3251 is (3251, 3253, 3257, 3259), which has pattern (0, 2, 6, 8), which is in the 4th row of A186634.

Examples

			a(2)=11 because p=11 is the first prime with log(p) > 2 and 11+2 is prime.
		

Crossrefs

Cf. A120935, A120936 (number of primes in the interval [n, n+log(n)]), A020497.

Programs

  • Mathematica
    i=1; Table[While[p=Prime[i]; PrimePi[p+Log[p]]-PrimePi[p]+1< n, i++ ]; p, {n,5}]
  • PARI
    A120934(n) = {
     my(v = vector(n,k,prime(k)), i = 1);
     while(v[(i - 2) % n + 1] - v[i] > floor(log(v[i])),
      v[i] = nextprime(v[(i - 2) % n + 1] + 1);
      i = i % n + 1; );
     return(vecsort(v)[1]) } \\ Florian Baur, Jul 12 2023

Formula

This sequence grows superexponentially; a weak lower bound is a(n) >> (log n)^n. It seems that a(n) > n^n. - Charles R Greathouse IV, Apr 18 2012
A lower bound is a(n) > e^A008407(n). a(n) < b*e^A008407(n), for 2 <= n <= 12, b < 1.49. For 9 <= n <= 12, b < 1.0006. a(13) > 701673591209763173865. - Florian Baur, Jul 12 2023 [Corrected by Pontus von Brömssen, Nov 12 2023]

Extensions

a(12) from Donovan Johnson, Apr 18 2012

A120936 Number of primes in the interval [n,n+log(n)].

Original entry on oeis.org

0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 2, 1, 1, 0, 1, 1, 2, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 2, 2, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 0, 1, 1, 2, 2, 2, 1, 1, 0, 1, 1, 1, 1, 2, 1, 2, 2, 2, 1, 1, 0, 1, 1, 1, 1, 2, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 2, 1, 2, 2, 2, 1, 2, 1, 2
Offset: 1

Views

Author

T. D. Noe, Jul 21 2006

Keywords

Comments

Soundararajan states that, on average, there is one prime in the interval [n,n+log(n)] for any number n. See A120934 for the prime n that yield new records.

Crossrefs

Programs

  • Mathematica
    Table[Length[Select[Range[n,n+Log[n]],PrimeQ]], {n,150}]
  • PARI
    a(n)=sum(k=n,n+log(n),isprime(k)) \\ Charles R Greathouse IV, Apr 17 2012

A292224 Irregular triangle read by rows. T(n, k) gives the number of admissible k-tuples from the interval of integers [0, 1, ..., n-1] starting with smallest tuple member 0.

Original entry on oeis.org

1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 3, 2, 1, 3, 2, 1, 4, 4, 1, 1, 4, 4, 1, 1, 5, 6, 2, 1, 5, 6, 2, 1, 6, 11, 8, 2, 1, 6, 11, 8, 2, 1, 7, 15, 14, 4, 1, 7, 15, 14, 4, 1, 8, 19, 20, 8, 1, 1, 8, 19, 20, 8, 1, 1, 9, 27, 39, 24, 5, 1, 9, 27, 39, 24, 5, 1, 10, 33, 54, 44, 16, 2, 1, 10, 33, 54, 44, 16, 2, 1, 11, 39, 69, 62, 26, 2, 1, 11, 39, 69, 62, 26, 2
Offset: 1

Views

Author

Wolfdieter Lang, Oct 09 2017

Keywords

Comments

The row lengths are given by A023193 (the rhobar function of Schinzel and Sierpiński called rho* by Hensley and Richards).
This irregular triangle has already been considered by Engelsma, see Table 2, for n=1..56, p. 27.
A k-tuple of integers B_k = [b_1, ..., b_k] with 0 = b_1 < b_2 < ... < b_k <= n-1 is called admissible if for each prime p there exists at least one congruence class modulo p which contains none of the B_k elements. (This corresponds to the alternative definition of Hensley and Richards, p. 378 (*) or Richards, p. 423, 1.5 Definition and (*).) Note that the definition of "admissibility" is translation invariant (see the Note by Richards, p. 424, which is obvious from the translation equivalence of complete residue systems modulo p). Therefore the interval I_n = [0, n-1] of length n has been chosen. The b_1 = 0 choice is conventional. Without this choice other admissible k-tuples are obtained by translation as long as b_k + a < n-1. E.g., for n = 8 and k = 3 the tuple [1, 5, 7] is admissible and a translation of the considered tuple [0, 4, 6].
Only primes p <= k have to be tested to decide on the admissibility of a B_k tuple because for larger k there is always some residue class which contains none of the k members of B_k.
Because p = 2 already forbids even and odd numbers to appear in B_k for k >= 2, one can for the admissibility test eliminate all odd numbers in the chosen I_n. Therefore, only Ieven_n:= [0, 2, ..., 2*floor((n-1)/2)] =: 2*[0, 1, ..., floor((n-1)/2)] need be considered. B_1 = [0] is admissible for all n >= 1.
Because only the interval Ieven_n is of relevance, there will occur repetitions for admissible tuples for n if n = 2*k+1 and n = 2*k+2.
With the set B_k(p) = B_k (mod p) := {0, b_1 (mod p), ..., b_k (mod p)} the criterion for admissibility can be written as p - #(B_k(p)) > 0, for all primes 3 <= p <= k (because there are p congruence classes defined by smallest nonnegative complete residue system [0, 1, ..., p-1]).
Admissible tuples (starting with 0) with least b_k - b_1 = b_k value give rise to prime k-constellations of diameter b_k. E.g., for k = 2 the admissible tuple [0, 4] does not lead to a prime 2-constellation for n >= 5; [0, 6] is out for n >= 7, ... . But there are two prime 3-constellations given by [0, 2, 6] and [0, 4, 6] for n >= 7.
Row sums are in A292225, that is, total number of admissible tuples starting with 0 from the interval I_n = [0, n-1].

Examples

			The irregular triangle begins:
n\k   1  2  3  4  5  6  7 ...
1:    1
2:    1
3:    1  1
4:    1  1
5:    1  2
6:    1  2
7:    1  3  2
8:    1  3  2
9:    1  4  4  1
10:   1  4  4  1
11:   1  5  6  2
12:   1  5  6  2
13:   1  6 11  8  2
14:   1  6 11  8  2
15:   1  7 15 14  4
16:   1  7 15 14  4
17:   1  8 19 20  8  1
18:   1  8 19 20  8  1
19:   1  9 27 39 24  5
20:   1  9 27 39 24  5
21:   1 10 33 54 44 16  2
22:   1 10 33 54 44 16  2
23:   1 11 39 69 62 26  2
24:   1 11 39 69 62 26  2
...
The first admissible k-tuples are (blanks within a tuple are here omitted):
n\k  1                2                                  3                       4  ...
1:  [0]
2:  [0]
3:  [0]  [0,2]
4:  [0]  [0,2]
5:  [0]  [[0,2], [0,4]]
6:  [0]  [[0,2], [0,4]]
7:  [0]  [[0,2], [0,4], [0,6]]          [[0,2,6], [0,4,6]]
8:  [0]  [[0,2], [0,4], [0,6]]          [[0,2,6], [0,4,6]]
9:  [0]  [[0,2], [0,4], [0,6], [0,8]]   [[0,2,6], [0,2,8], [0,4,6], [0,6,8]]  [0,2,6,8]
10: [0]  [[0,2], [0,4], [0,6], [0,8]]   [[0,2,6], [0,2,8], [0,4,6], [0,6,8]]  [0,2,6,8]
...
The first admissible k-tuples for prime k-constellations are:
n\k  1     2           3                 4                    5                       6  ...
1:  [0]
2:  [0]
3:  [0]  [0,2]
4:  [0]  [0,2]
5:  [0]  [0,2]
6:  [0]  [0,2]
7:  [0]  [0,2]  [[0,2,6], [0,4,6]]
8:  [0]  [0,2]  [[0,2,6], [0,4,6]]
9:  [0]  [0,2]  [[0,2,6], [0,4,6]]   [0,2,6,8]
10: [0]  [0,2]  [[0,2,6], [0,4,6]]   [0,2,6,8]
11: [0]  [0,2]  [[0,2,6], [0,4,6]]   [0,2,6,8]
12: [0]  [0,2]  [[0,2,6], [0,4,6]]   [0,2,6,8]
13: [0]  [0,2]  [[0,2,6], [0,4,6]]   [0,2,6,8]   [[0,2,6,8,12],[0,4,6,10,12]]
14: [0]  [0,2]  [[0,2,6], [0,4,6]]   [0,2,6,8]   [[0,2,6,8,12],[0,4,6,10,12]]
15: [0]  [0,2]  [[0,2,6], [0,4,6]]   [0,2,6,8]   [[0,2,6,8,12],[0,4,6,10,12]]
16: [0]  [0,2]  [[0,2,6], [0,4,6]]   [0,2,6,8]   [[0,2,6,8,12],[0,4,6,10,12]]
17: [0]  [0,2]  [[0,2,6], [0,4,6]]   [0,2,6,8]   [[0,2,6,8,12],[0,4,6,10,12]] [0,4,6,10,12,16]
18: [0]  [0,2]  [[0,2,6], [0,4,6]]   [0,2,6,8]   [[0,2,6,8,12],[0,4,6,10,12]] [0,4,6,10,12,16]
...
-----------------------------------------------------------------------------------------------
T(7, 3) = 2 because Ieven_n = [0, 2, 4, 6], and the only admissible 3-tuples from this interval are [0, 2, 6] and [0, 4, 6]. For example, [0, 2, 4] is excluded because the set B_3 (mod 3) = {0, 1, 2}, thus #{0, 1, 2} = 3 and (p = 3) - 3 = 0, not > 0.
These two admissible 3-tuples both have diameter 6 and stand for prime 3-constellations for all n >= 7: p, p + 2, p + 6, and p, p + 4, p + 6. One of the Hardy-Littlewood conjectures is that there are in both cases infinitely many such prime triples. For the first members of such triples see A022004 and A022005.
		

Crossrefs

Formula

T(n, k) = number of admissible k-tuples B_k = [0, b_2, ..., b_k] (see the comment above) from the interval of integers Ieven_n:= [0, 2, ..., 2*floor((n-1)/2)].

A078869 Number of n-tuples with elements in {2,4,6} which can occur as the differences between n+1 consecutive primes > n+1. (Values of a(11), ..., a(18) are conjectured to be correct, but are only known to be upper bounds.)

Original entry on oeis.org

3, 7, 15, 26, 38, 48, 67, 92, 105, 108, 109, 118, 130, 128, 112, 80, 36, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
Offset: 1

Views

Author

Labos Elemer, Dec 19 2002

Keywords

Comments

The ">n+1" rules out n-tuples like (2,2), which only occurs for the primes 3, 5, 7. All terms from a(19) on equal 0.
An n-tuple (a_1,a_2,...,a_n) is counted iff the partial sums 0, a_1, a_1+a_2, ..., a_1+...+a_n do not contain a complete residue system (mod p) for any prime p.

Crossrefs

The 26 4-tuples and 38 5-tuples are in A078868 and A078870. Cf. A001359, A008407, A029710, A031924, A022004-A022007, A078852, A078858, A078946-A078969, A020497.

Programs

  • Mathematica
    test[tuple_] := Module[{r, sums, i, j}, r=Length[tuple]; sums=Prepend[tuple.Table[If[j>=i, 1, 0], {i, 1, r}, {j, 1, r}], 0]; For[i=1, Prime[i]<=r+1, i++, If[Length[Union[Mod[sums, Prime[i]]]]==Prime[i], Return[False]]]; True]; tuples[0]={{}}; tuples[n_] := tuples[n]=Select[Flatten[Outer[Append, tuples[n-1], {2, 4, 6}, 1], 1], test]; a[n_] := Length[tuples[n]]

Extensions

Edited by Dean Hickerson, Dec 20 2002

A094660 Number of permissible patterns of primes in a fixed interval of n consecutive integers.

Original entry on oeis.org

0, 1, 2, 4, 6, 9, 12, 18, 24, 34, 44, 58, 72, 100, 128, 169, 210, 267, 324, 429, 534, 694, 854, 1064, 1274, 1657, 2040, 2571, 3102, 3780, 4458, 5801, 7144, 9067, 10990, 13472, 15954, 20356, 24758, 30607, 36456, 44280, 52104, 66168, 80232, 98524, 116816, 140797, 164778
Offset: 0

Views

Author

Thomas J Engelsma (tom(AT)opertech.com), Jun 09 2004

Keywords

Comments

Similar to A023192. (Here we ignore the empty pattern and start at 0.) These are called "admissible constellations" of primes. - Don Reble, Jun 12 2004

Examples

			a(5)=9 because primes can exist in interval as x.... .x... ..x.. ...x. ....x x.x.. .x.x. ..x.x or x...x
		

Crossrefs

Cf. A008407, A020497, A023189. Equals A023192 - 1.

Formula

a(n) = Sum_{k=1..floor((n+1)/2)} (n + 2 - 2*k)*A023189(k). - Jon E. Schoenfield, May 17 2024

Extensions

a(42)-a(48) from Pontus von Brömssen, Aug 25 2025

A120935 Largest prime in the cluster of n primes whose first prime is given in A120934.

Original entry on oeis.org

2, 13, 463, 3259, 165713, 10526573, 495233371, 196039655899, 10687033762063, 79006533276973, 4313367040646779, 1740318019946551973
Offset: 1

Views

Author

T. D. Noe, Jul 21 2006

Keywords

Comments

For n>1, it appears that each prime is a cluster prime. See A038134.

Crossrefs

Cf. A020497.

Formula

a(n)= A120934(n)+A008407(n)

Extensions

a(12) from Donovan Johnson, Apr 18 2012

A192870 The maximum integer M such that there are no prime n-tuplets of any possible pattern between M^2 and (M+1)^2, or -1 if no such maximum M exists.

Original entry on oeis.org

0, 122, 3113, 719377, 15467683
Offset: 1

Views

Author

Alexei Kourbatov, Jul 11 2011

Keywords

Comments

All terms are conjectural. A prime n-tuplet is defined as the densest permissible prime constellation containing n primes. The term a(2) corresponds to twin primes, a(3) to prime triplets, a(4) to prime quadruplets, etc. Extensive computational evidence suggests that these terms are valid. However, there is no proof that the greatest integer M exists - not even for a subset of values of n. If one could find a constructive existence proof, then Twin Prime Conjecture as well as Legendre's Conjecture would require just a trivial additional step. - Edited by Hugo Pfoertner, Sep 15 2021
Note that, for some n, a prime (n+1)-tuple must include a prime n-tuple; e.g., prime quadruplets include prime triples. Thus, if any term is -1, subsequent terms may be -1, too. - Franklin T. Adams-Watters and Alexei Kourbatov, Jul 14 2011
However, for other n, a prime (n+1)-tuple does NOT include a prime n-tuple; e.g. 7-tuples {p, p + 2, p + 6, p + 8, p + 12, p + 18, p + 20} do not contain 6-tuples {p-4, p, p + 2, p + 6, p + 8, p + 12}; see List of all possible patterns of prime k-tuplets by Tony Forbes.
Assuming the Hardy-Littlewood k-tuple conjecture, the average distance between k-tuples grows slower than the distance between consecutive squares. This is an indication (but not a proof) that the maximum integer M in this sequence does exist for all n.
a(6) > 3005845357, because there is a gap of size 7191214380 between consecutive sextuplets, enclosing in its interior the interval between the two squares 3005845357^2 and 3005845358^2, found with a fast sieving program provided by Martin Raab, i.e., 9035106309825245467 < 3005845357^2 = 9035106310198457449 < 3005845358^2 = 9035106316210148164 < 9035106317016459847. Statistical considerations based on the observed scatter of maximum gap sizes (see A200503 and data provided at N. Luhn link) suggest a range of 3*10^9 < a(6) < 6*10^9. In a private communication Martin Raab provided the following estimates for the order of magnitude of the next terms: a(7) ~= 1.1*10^11, a(8) ~= 1.6*10^12, a(9) ~= 6*10^13, a(10) ~= 3*10^16. - Hugo Pfoertner, Jul 31 2023, corrected Oct 23 2023

Examples

			The term a(4)=719377 means that there are no prime quadruplets between 719377^2 and 719378^2, but there are prime quadruplets between m^2 and (m+1)^2 for m > 719377.
		

Crossrefs

Cf. A091592: Numbers n such that there are no twin primes between n^2 and (n+1)^2; A008407: Minimal width of prime n-tuplet.

Extensions

First term, 0, added and offset changed by Zak Seidov, Jul 11 2011
Clarification regarding patterns in the title added by Hugo Pfoertner, Sep 15 2021

A161781 Binary encodings of prime constellations.

Original entry on oeis.org

1, 3, 5, 9, 11, 13, 17, 19, 25, 27, 33, 37, 41, 45, 65, 67, 69, 73, 75, 77, 81, 83, 89, 91, 97, 101, 105, 109, 129, 131, 137, 139, 145, 147, 153, 193, 195, 201, 203, 209, 211, 257, 261, 265, 269, 289, 293, 297, 301, 321, 325, 329, 333, 353, 357, 361, 365, 513, 515
Offset: 0

Views

Author

Carl R. White, Jun 19 2009

Keywords

Comments

Each constellation is encoded by means of dividing each of the increments to p in the k-tuple by two, raising two to the power of each and then summing the result. E.g.:
(p,p+2,p+6) -> p+(0,2,6) => (0,1,3) -> 2^0 + 2^1 + 2^3 = 11.
Each encoding is unique and so can be reversed e.g.:
89 = 2^0 + 2^3 + 2^4 + 2^6 -> (0,3,4,6) => (p,p+6,p+8,p+12).
Those constellations that represent all moduli for all their matching primes p are not counted; for example, encoding #7, which implies (p,p+2,p+4) only matches the prime triple (3,5,7) which is (0,2,1) mod 3, and so is not a valid constellation, and thus 7 is not in the list. Encoding #155 is the first that fails modulo 5, and is also not in the list.

Examples

			Encoding #1 corresponds to the primes themselves (constellations of one), #3 corresponds to the twin primes (p,p+2), #5 to the cousin primes (p,p+4) and #9 to the "sexy" primes (p,p+6).
		

Crossrefs

Cf. A008407, A020497, A094660, A135311. Also compare A014657 which is unrelated but remarkably similar.

A279862 a(n) = the smallest integer k where there are exactly n primes between 10k and 10k+100.

Original entry on oeis.org

37027, 15590, 3562, 3561, 1881, 1856, 735, 588, 132, 131, 188, 111, 89, 47, 44, 32, 20, 11, 9, 8, 5, 3, 2
Offset: 0

Views

Author

Wolfram Hüttermann, Dec 21 2016

Keywords

Comments

a(25) = 0, and a(24) cannot exist. The same is true with a(k) and k>25. From A020497, we see that a range of 101 numbers is required to find 24 primes. It is an open question if a(23) exists.
From Robert Israel, Jan 18 2017: (Start)
Dickson's conjecture implies that a(23) does exist.
Let Q = 27926129625869590, and R = 614889782588491410 the product of all primes < 50.
Then for any k, the 23 numbers Q+i+k*R for i = 1, 3, 7, 9, 13, 19, 21, 27, 31, 33, 37, 43, 49, 51, 57, 63, 69, 73, 79, 87, 91, 97, 99 have no prime divisors < 50.
Dickson's conjecture would indicate that there are infinitely many k for which these numbers are all prime, and thus there are 23 primes between Q+k*R and Q+k*R+100. (End)
Heuristics suggest a(23) exists (see above) and has between 20 and 30 digits. There are 192 residue classes mod 23# = 223092870 in which a(23) might fall, all of which are 11 mod 30 and either 3 or 4 mod 7. - Charles R Greathouse IV, Jul 12 2017

Examples

			For n = 1 there is only one prime between 155900 and 156000: 155921.
		

Crossrefs

Cf. A186311.
For the Dickson conjecture, see A020497.

Programs

  • Maple
    for n from 1 to 10^5 do
      T[n]:= nops(select(isprime, [$10*n+1 ..10*n+9]))
    od:
    for k from 1 to 10^5-10 do
       v:= add(T[k+j],j=0..9):
       if not assigned(A[v]) then A[v]:= k fi
    od:
    seq(A[n],n=0..22); # Robert Israel, Jul 12 2017
  • Mathematica
    Function[s, -1 + Flatten@ Table[FirstPosition[s, n] /. k_ /; MissingQ@ k -> 0, {n, 0, Max@ s}]]@ Table[Count[Range[10 k, 10 k + 100], ?PrimeQ], {k, 0, 10^5}] (* _Michael De Vlieger, Jul 12 2017; program writes "-1" for a(23) and a(24). *)
  • PARI
    a(n) = my(k=0); while(1, if(primepi(10*k+100)-primepi(10*k)==n, return(k)); k++) \\ Felix Fröhlich, Jul 12 2017
    
  • PARI
    a(n)=my(k); while(sum(p=10*k+1,10*k+99,isprime(p))!=n, k++); k \\ Charles R Greathouse IV, Jul 12 2017

Extensions

Name clarified by FUNG Cheok Yin, Jul 12 2017
Previous Showing 11-20 of 21 results. Next