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.

A366354 a(0) = 0; for n > 0, a(n) is the largest taxicab distance on a square spiral between any two previous occurrences of a(n-1). If a(n-1) has not previously occurred then a(n) = 0.

Original entry on oeis.org

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

Views

Author

Scott R. Shannon, Oct 08 2023

Keywords

Examples

			The spiral begins:
.
                                .
    0---9---8---8---4---5---8   :
    |                       |   :
   10   6---0---5---2---4   4   10
    |   |               |   |   |
    0   0   2---0---1   0   5   12
    |   |   |       |   |   |   |
   10   6   0   0---0   4   7   8
    |   |   |           |   |   |
    2   2   2---2---3---0   0   7
    |   |                   |   |
    7   6---4---7---0---6---8   12
    |                           |
    8--12---0--10---8--12---4---8
.
a(2) = 1 as the maximum taxicab distance between 0 = a(1) and the only previous occurrence of 0, a(0) at (0,0), is 1.
a(8) = 3 as the maximum taxicab distance between any two previous occurrences of 2 = a(7) is 3, between a(3) = 2, at (-1,1) relative to the starting square, and a(7) = 2 at (0,-1) relative to the starting square.
a(32) = 4 as the maximum taxicab distance between any two previous occurrences of 5 = a(31) is 4, between a(14) = 5, at (0,2) relative to the starting square, and a(28) = 5 at (3,1) relative to the starting square. This is the first term to differ from A366353.
		

Crossrefs

A365344 a(0) = 0; for n > 0, a(n) is the largest distance squared on a square spiral between a(n-1) and any previous occurrence of a(n-1). If a(n-1) has not previously occurred then a(n) = 0.

Original entry on oeis.org

0, 0, 1, 0, 2, 0, 4, 0, 4, 4, 9, 0, 10, 0, 10, 4, 18, 0, 16, 0, 20, 0, 20, 4, 20, 16, 29, 0, 26, 0, 34, 0, 34, 4, 26, 20, 41, 0, 40, 0, 40, 4, 34, 72, 0, 45, 0, 41, 61, 0, 74, 0, 58, 0, 50, 0, 61, 50, 5, 0, 58, 32, 0, 85, 0, 113, 0, 89, 0, 73, 0, 89, 16, 53, 0, 85, 68, 0, 89, 61, 65, 0, 145, 0
Offset: 0

Views

Author

Scott R. Shannon, Oct 16 2023

Keywords

Examples

			The spiral begins:
.
  41--20--26--4---34--0---34  .
  |                       |   .
  0   18--4---10--0---10  0   50
  |   |               |   |   |
  40  0   2---0---1   0   26  0
  |   |   |       |   |   |   |
  0   16  0   0---0   9   0   58
  |   |   |           |   |   |
  40  0   4---0---4---4   29  0
  |   |                   |   |
  4   20--0---20--4---20--16  74
  |                           |
  34--72--0---45--0---41--61--0
.
.
a(4) = 2 as a(3) = 0 and the largest square distance between a(3) and a previous occurrence of 0 is 2 - between a(3) and a(1).
a(47) = 41 as a(46) = 0 and the largest square distance between a(46) and a previous occurrence of 0 is 41 - between a(46) and a(37). This is the first term to differ from A365343.
		

Crossrefs

A366543 a(0) = 0; for n > 0, a(n) is the largest distance squared on a square spiral between any two previous occurrences of a(n-1). If a(n-1) has not previously occurred then a(n) = 0.

Original entry on oeis.org

0, 0, 1, 0, 2, 0, 4, 0, 4, 4, 9, 0, 10, 0, 10, 4, 18, 0, 16, 0, 20, 0, 20, 4, 20, 16, 29, 0, 26, 0, 34, 0, 34, 4, 26, 20, 41, 0, 40, 0, 40, 4, 34, 72, 0, 45, 0, 45, 4, 45, 16, 40, 53, 0, 50, 0, 61, 0, 65, 0, 65, 4, 65, 16, 85, 0, 68, 0, 68, 4, 65, 72, 4, 73, 0, 89, 0, 89, 4, 73, 36, 0, 130, 0
Offset: 0

Views

Author

Scott R. Shannon, Oct 16 2023

Keywords

Examples

			The spiral begins:
..
  41--20--26--4---34--0---34  .
  |                       |   .
  0   18--4---10--0---10  0   50
  |   |               |   |   |
  40  0   2---0---1   0   26  0
  |   |   |       |   |   |   |
  0   16  0   0---0   9   0   53
  |   |   |           |   |   |
  40  0   4---0---4---4   29  40
  |   |                   |   |
  4   20--0---20--4---20--16  16
  |                           |
  34--72--0---45--0---45--4---45
.
.
a(4) = 2 as a(3) = 0 and the largest square distance between any previous pairs of 0's is 2 - between a(3) and a(1).
a(47) = 45 as a(46) = 0 and the largest square distance between any previous pairs of 0's is 45 - between a(44) and a(31). This is the first term to differ from A365344.
		

Crossrefs

Showing 1-3 of 3 results.