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

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

A065706 Least member p1 of prime octuplets (p1, p2, p3, ..., p8 = p1 + 26), the eight p's being consecutive primes.

Original entry on oeis.org

11, 17, 1277, 88793, 113147, 284723, 855713, 1146773, 2580647, 6560993, 15760091, 20737877, 25658441, 58208387, 69156533, 73373537, 74266253, 76170527, 93625991, 100658627, 134764997, 137943347, 165531257, 171958667
Offset: 1

Views

Author

Frank Ellermann, Dec 05 2001

Keywords

Comments

3 patterns for 8-tuplets: 11010011001011, 11011010011001 and v.v.
See A022011, A022012 and A022013 for the three different possible patterns. The sequence is conjectured to be infinite, although it is not even proved that there are infinitely many twin primes (p1, p2 = p1+2). - M. F. Hasler, May 02 2015

Examples

			a(3) = 1277, 1279, 1283, 1289, 1291, 1297, 1301, 1303 = 1277+26 are primes.
		

Crossrefs

11 = A065688(8), 26 = A008407(8), 8 = A023193(26+1), octets in A066082 are another (not minimal) constellation of 8 primes.
Union of A022011, A022012 and A022013.
See A257124 (prime septuplets) with an overview of prime k-tuplets.

Programs

  • PARI
    { n=0; p1=2; p8=19; for (m=1, 10^12, p1=nextprime(p1+1); p8=nextprime(p8+1); if (p8 - p1 == 26, write("b065706.txt", n++, " ", p1); if (n==100, return)) ) } \\ Harry J. Smith, Oct 26 2009
    
  • Perl
    use ntheory ":all"; my($s,$e,$i,%h)=(1,1e10,0); undef @h{sieve_prime_cluster($s,$e,2,6,8,12,18,20,26), sieve_prime_cluster($s,$e,2,6,12,14,20,24,26), sieve_prime_cluster($s,$e,6,8,14,18,20,24,26)}; say ++$i," $" for sort {$a<=>$b} keys %h; # _Dana Jacobsen, Oct 10 2015

A096509 Number of prime-powers [including primes] in the (up and down) neighborhood of n with Ceiling[Log[n]] radius.

Original entry on oeis.org

0, 2, 4, 4, 4, 4, 4, 5, 4, 5, 4, 3, 3, 4, 3, 4, 3, 3, 3, 3, 4, 3, 4, 3, 4, 4, 5, 5, 5, 4, 4, 3, 4, 3, 3, 2, 2, 2, 3, 3, 3, 2, 3, 3, 4, 3, 3, 2, 3, 3, 3, 2, 2, 1, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 3, 4, 3, 4, 4, 3, 3, 3, 2, 3, 3, 4, 3, 4, 3, 3, 3, 3, 3, 4, 3, 3, 2, 2, 1, 1, 1, 2, 2, 2, 1, 2, 2, 3, 3, 3, 3, 4, 3, 4, 4
Offset: 1

Views

Author

Labos Elemer, Jul 12 2004

Keywords

Comments

With increasing n the radius of log(n) slowly increases, while frequency of prime-powers decreases. Thus hard to estimate upper bound of terms in this sequence.
Heuristically a(n) = 0 about 1/e^2 = 13.53...% of the time. The first few instances are 1, 300, 324, 895, 896, 897, 898, 899, 1077, .... - Charles R Greathouse IV, Apr 30 2015

Examples

			n=284736: in [284723,284749] around n, 8 prime(powers) occur,radius=13, a[284736]=8.
		

Crossrefs

Programs

  • Mathematica
    a[n_] := Select[Range[n - Ceiling[Log[n]], n + Ceiling[Log[n]]], PrimePowerQ] // Length; Array[a, 105] (* Jean-François Alcover, Oct 06 2016 *)
  • PARI
    a(n)=my(t=ceil(log(n))); sum(k=n-t,n+t,!!isprimepower(k)) \\ Charles R Greathouse IV, Apr 29 2015

Formula

a(n) <= A023193(2*A004233(n)+1) + A000720(A000523(A004233(n) + n)) and so a(n) << log n/log log n (with constant at most 4 + 1/log(2) = 5.442...). Probably a(n) < 2 log n/log log n + O(log n/(log log n)^2). - Charles R Greathouse IV, Apr 29 2015

A020497 Conjecturally, this is the minimal y such that n primes occur infinitely often among (x+1, ..., x+y), that is, pi(x+y) - pi(x) >= n for infinitely many x.

Original entry on oeis.org

1, 3, 7, 9, 13, 17, 21, 27, 31, 33, 37, 43, 49, 51, 57, 61, 67, 71, 77, 81, 85, 91, 95, 101, 111, 115, 121, 127, 131, 137, 141, 147, 153, 157, 159, 163, 169, 177, 183, 187, 189, 197, 201, 211, 213, 217, 227, 237, 241, 247, 253, 255, 265, 271, 273, 279, 283, 289, 301, 305
Offset: 1

Views

Author

Keywords

Comments

a(n) purportedly gives the least k with A023193(k) = n; that is, this sequence should be the "least inverse" of A023193.
My web page extends the sequence to rho(305)=2047 and also gives a super-dense occurrence at rho(592)=4333 when pi(4333)=591 - the first known occurrence. - Thomas J Engelsma (tom(AT)opertech.com), Feb 16 2004
Tomás Oliveira e Silva (see link) has a table extending to n = 1000.
The minimal y such that there are n elements of {1, ..., y} with fewer than p distinct elements mod p for all prime p. - Charles R Greathouse IV, Jun 13 2013

References

  • R. K. Guy, Unsolved Problems in Number Theory, (2nd edition, Springer, 1994), Section A9.

Crossrefs

Equals A008407 + 1. First differences give A047947.
Cf. A023193 (prime k-tuplet conjectures), A066081 (weaker binary conjectures).

Formula

Prime(floor((n+1)/2)) <= a(n) < prime(n) for large n. See Hensley & Richards and Montgomery & Vaughan. - Charles R Greathouse IV, Jun 18 2013

Extensions

Corrected and extended by David W. Wilson

A065688 First prime in the smallest (nontrivial) prime k-tuplet.

Original entry on oeis.org

2, 3, 5, 5, 5, 7, 11, 11, 11, 11, 11, 11, 11, 11, 11, 13, 13, 13, 13, 29, 29, 19, 19
Offset: 1

Views

Author

Frank Ellermann, Dec 04 2001

Keywords

Comments

For a proper definition see the cross-references.

Examples

			a(8): 11 13 17 19 23 29 31 37 are primes and 37-11=26=A008407(8).
		

Crossrefs

Cf. A008407 (minimal difference of first and last prime in a prime k-tuplet), A023193 (prime k-tuplet conjectures), A047947 (Schinzel's rhobar), A020497.
Cf. A261324 (another variant including trivial tuplets).

Extensions

a(1) prepended and a(20)-a(23) added by Max Alekseyev, Aug 15 2015

A083409 Number of prime k-tuplet constellations, i.e., patterns with minimal diameter A008407.

Original entry on oeis.org

1, 2, 1, 2, 1, 2, 3, 4, 2, 2, 2, 6, 2, 4, 2, 4, 2, 4, 2, 2, 4, 2, 4, 18, 2, 8, 10, 2, 2, 2, 4, 14, 20, 2, 2, 2, 6, 26, 26, 8, 2, 6, 18, 4, 4, 4, 2, 2, 22, 22, 2, 2, 26, 6, 6, 2, 2, 4, 2, 2, 6, 2, 2, 2, 2, 18, 2, 20, 2, 2, 2, 10, 2, 14, 14, 40, 8, 2, 14, 14, 16, 4, 2, 2, 60, 50, 2, 2, 2, 16, 2, 18, 12
Offset: 2

Views

Author

Frank Ellermann, Jun 07 2003

Keywords

Examples

			For a(8) = 3 octuplet patterns see A065706. for a(6) = 1 sextet see A061671.
		

Crossrefs

Extensions

More terms from Engelsma's website sent by T. D. Noe, Jul 21 2006

A364678 Maximum number of primes between consecutive multiples of n, as permitted by divisibility considerations.

Original entry on oeis.org

0, 1, 1, 2, 2, 2, 2, 3, 3, 4, 4, 4, 4, 4, 4, 5, 5, 6, 6, 6, 5, 7, 7, 6, 7, 7, 7, 7, 8, 7, 8, 9, 8, 10, 8, 10, 10, 10, 11, 11, 11, 10, 11, 11, 11, 12, 12, 12, 12, 13, 12, 13, 14, 13, 13, 14, 14, 15, 15, 14, 15, 15, 15, 16, 15, 15, 16, 16, 17, 16, 17, 18, 18, 18, 18, 18, 17, 19, 19, 19, 19, 20, 20, 19, 19, 20, 21, 21
Offset: 1

Views

Author

Brian Kehrig, Aug 24 2023

Keywords

Comments

Alternatively: a(n) = the maximum number of elements of an admissible k-tuple strictly contained in (0,n) such that all elements are relatively prime to n. Recall that an admissible tuple is defined as a tuple of integers with the property that all primes p have at least one residue class that has no intersection with the tuple.
For n > 1, we have a(n) <= A023193(n-1), with equality if (but not only if) n is prime or a power of 2. The smallest n for which it is not an equality is n=14.
Conjecture 1: Every nonnegative integer appears in this sequence.
Conjecture 2: For all n, there is an infinitude of k's such that there are a(n) primes between n*k and n*(k+1).
Conjecture 2 resembles the k-tuples conjecture a.k.a. the first Hardy-Littlewood conjecture, although it is not the same.
A notable value is a(35) = 8. Compare with A000010(210) = 48. This says that between any two consecutive multiples of 210 the 48 values that are not divisible by 2, 3, 5 or 7 are equally distributed between 6 equal divisions of 210; that is, 8 are in the interval [0, 34], 8 in the interval [35, 69], etc. - Peter Munn, Feb 16 2024

Examples

			Between two multiples of 15 (n and n+15), only n+1, n+2, n+4, n+7, n+8, n+11, n+13, and n+14 could possibly be prime based on divisibility by 3 and 5. However, 4 of these are even and 4 are odd, so at most 4 of them can be prime. Thus, a(15)=4.
		

Crossrefs

Multiples of n following which the maximum number of primes occur for particular n: A005097 (2), A144769 (3), A123986 (4), A056956 (6), A007811 (10), A123985 (12), A309871 (18).

Programs

  • Python
    # see Links section

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)].

A292225 Row sums of irregular triangle A292224. a(n) gives the total number of admissible tuples starting with 0 in the interval [0, 1, ..., n-1].

Original entry on oeis.org

1, 1, 2, 2, 3, 3, 6, 6, 10, 10, 14, 14, 28, 28, 41, 41, 57, 57, 105, 105, 160, 160, 210, 210, 383, 383, 531, 531, 678, 678, 1343, 1343, 1923, 1923, 2482, 2482, 4402, 4402, 5849, 5849, 7824, 7824, 14064, 14064, 18292, 18292, 23981, 23981, 39745, 39745, 57307, 57307, 71639, 71639, 117846, 117846
Offset: 1

Views

Author

Wolfdieter Lang, Oct 09 2017

Keywords

Comments

This sequence is given in column 2 of Table 2, p. 27, of the Engelsma link.
See A292224 for the reason for the repetitions for n = 2*k+1 and n = 2*(k+1) for k >= 0, the definition of "admissible", references, and examples of these admissible k-tuples for n = 1..10 (with k = 1, 2, ..., A023193(n)).

Crossrefs

Formula

a(n) = Sum_{k=1..A023193(n)} A292224(n, k), for n >= 1.
a(2*n+1) = a(2*n) + A023189(n+1). - Pontus von Brömssen, Aug 21 2025

Extensions

Terms a(27) .. a(56) from Engelsma's Table 2 (there are also a(57)..a(62) given but a(62) should be 364545 if a(61) = 364545 is correct). - Wolfdieter Lang, Oct 17 2017
Showing 1-9 of 9 results.