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

A373812 Lengths of successive runs of equal terms in A373811.

Original entry on oeis.org

1, 2, 3, 3, 5, 4, 6, 5, 7, 6, 7, 8, 8, 7, 8, 9, 9, 8, 9, 11, 9, 10, 10, 9, 12, 11, 10, 11, 12, 12, 12, 12, 11, 12, 13, 13, 12, 13, 13, 14, 13, 14, 14, 16, 13, 13, 14, 15
Offset: 1

Views

Author

N. J. A. Sloane, Aug 14 2024

Keywords

Comments

Equivalently, a(n) is the number of occurrences of the term n-1 in A373811. - Max Alekseyev, Aug 15 2024
Comment from Dominic McCarty, Aug 15 2024 (Start)
Theorem: a(n) <= n.
Proof. Let S(n) denote a smallest set of lines that intersects all points (m, A373811(m)) for m < n.
Let k and j be integers such that {(k, A373811(k)), (k+1, A373811(k+1)), ... (k+j, A373811(k+j))} form a run of equal terms at height h.
We know that S(k+j) has h lines in it by definition.
I show below that S(k+j) contains no horizontal line of the form y = h, so each line in S(k+j) intersects the line y = h exactly once.
So S(k+j) intersects the line y = h at most h times. This means that once h + 1 points appear along the line y = h, we must introduce a new line to intersect all those points. So run lengths of A373811 at height h can be at most h+1.
It appears that equality only happens at heights 0, 1, 2, and 4 (corresponding to a(1), a(2), a(3) and a(5) here).
Proof that S(k+j) contains no horizontal line of the form y = h: Assume the contrary. By definition, S(k+j) must intersect all points left of x = k+j, so it must also intersect all points left of x = k. But y = h intersects no points left of x = k. So S(k+j) \ {y = h} intersects all points left of x = k. This means that |S(k)| is at most |S(k+j) \ {y = h}| = h - 1. However, A373811(k) = h and A373811(k) = |S(k)|. Contradiction! (End)

Crossrefs

Cf. A373811.

Extensions

a(9)-a(10) corrected, a(18)-a(48) added by Max Alekseyev, Aug 18 2024

A373813 a(n) is the smallest number of straight lines needed to intersect all points (k, prime(k)) for k = 1..n.

Original entry on oeis.org

1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15
Offset: 1

Views

Author

Rémy Sigrist and N. J. A. Sloane, Aug 18 2024

Keywords

Comments

Dan Asimov asks if the graph is trying to converge to the Cantor (or Devil's Staircase) function. - N. J. A. Sloane, Aug 25 2024

Crossrefs

Cf. A373814 (run lengths), A373810 (same with y(k) = phi(k)), A373811 (similar with y(k) = a(k)), A375499 (same with y(k)=sigma(k)).
See also A376187, A376188, A376190 for single lines.

Extensions

Terms a(19) onward from Max Alekseyev, Aug 18 2024

A375499 a(n) is the smallest number of straight lines needed to intersect all points (k, d(k)) for k = 1..n (where d is the sum-of-divisors function A000005).

Original entry on oeis.org

1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11
Offset: 1

Views

Author

Rémy Sigrist and N. J. A. Sloane, Aug 18 2024

Keywords

Examples

			The initial terms, together with an appropriate set of lines, are:
  1 1 [1]
  2 1 [x]
  3 2 [2, x]
  4 2 [2, (2/3)*x + 1/3]
  5 2 [2, (2/3)*x + 1/3]
  6 3 [2, 2*x - 8, (2/3)*x + 1/3]
  7 3 [2, 2*x - 8, (2/3)*x + 1/3]
  8 3 [2, 4, (2/3)*x + 1/3]
  9 4 [2, 3, 4, x]
  10 4 [2, 3, 4, x]
  11 4 [2, 3, 4, x]
  12 4 [2, 3, 4, (5/11)*x + 6/11]
  13 4 [2, 3, 4, (5/11)*x + 6/11]
  14 4 [2, 3, 4, (5/11)*x + 6/11]
  15 4 [2, 3, 4, (5/11)*x + 6/11]
  16 5 [2, 3, 4, 4*x - 42, (4/15)*x + 11/15]
  17 5 [2, 3, 4, 4*x - 42, (4/15)*x + 11/15]
  18 5 [2, 3, 4, 6, (4/15)*x + 11/15]
		

Crossrefs

Suggested by A373811 and A375420.

Programs

  • PARI
    \\ See Links section.

Extensions

Terms a(30) onward from Max Alekseyev, Aug 18 2024

A375433 a(n) is the smallest number of parallel straight lines needed to intersect all points (k, a(k)) for k < n.

Original entry on oeis.org

0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15
Offset: 1

Views

Author

Rémy Sigrist, Aug 15 2024

Keywords

Comments

This sequence is a variant of A373811. The two sequences coincide over the first 22 terms.

Examples

			See illustration in Links section.
		

Crossrefs

Formula

a(n) <= a(n+1) <= a(n) + 1.

A375465 Lengths of successive runs of equal terms in A375433.

Original entry on oeis.org

1, 2, 3, 3, 5, 4, 4, 6, 6, 5, 5, 5, 10, 6, 7, 6, 6, 6, 6, 6, 13, 9, 7, 7, 8, 7, 7, 7, 7, 7, 7, 7, 18, 11, 8, 10, 8, 8, 8, 9, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 31, 9, 12, 9, 9, 11, 9, 9, 9, 9, 10, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 38
Offset: 1

Views

Author

Rémy Sigrist, Aug 17 2024

Keywords

Crossrefs

A375502 a(n) is the minimal number of parallel straight lines needed to intersect all points (k, prime(k)) for k = 1..n (where prime(k) denotes the k-th prime number).

Original entry on oeis.org

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

Views

Author

Rémy Sigrist, Aug 18 2024

Keywords

Crossrefs

Programs

  • PARI
    \\ See Links section.

A378831 The minimum number of diagonal lines required to cover all vertices created when the n outer vertices of a regular n-gon are connected by diagonal lines.

Original entry on oeis.org

1, 2, 2, 4, 5, 10, 11, 21
Offset: 2

Views

Author

Scott R. Shannon, Dec 08 2024

Keywords

Comments

See A007569 for the total number of vertices created by the diagonal lines of a regular n-gon.
The terms a(9)..a(13) are less than or equal to 21, 25, 38, 41, 59 respectively.
Note that these numbers are not always the same as the minimum number of required lines if the lines can be arbitrarily placed. The first known occurrence where the numbers differ is for a(7) = 10 where one can use eight diagonal lines plus one off-diagonal line to cover two vertices in such a way that all vertices can be covered with only 9 lines.
Better upper bounds for a(10)..a(13) are 23, 36, 38, 56, with a(10), a(11) being almost certainly the correct values. - Scott R. Shannon, Dec 10 2024

Crossrefs

Extensions

a(9) added by Scott R. Shannon, Dec 10 2024
Showing 1-7 of 7 results.