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

A346294 Numbers with two or more distinct prime factors such that the number and all its prime factors fall on a single straight line when they are plotted on a square spiral.

Original entry on oeis.org

21, 24, 35, 87, 91, 99, 106, 176, 200, 273, 282, 363, 432, 507, 564, 651, 669, 951, 1333, 1445, 1805, 1837, 1963, 2669, 2813, 4163, 4557, 4625, 6321, 6643, 6685, 6723, 7225, 7567, 8333, 10152, 10252, 12826, 12877, 14761, 21409, 23317, 24651, 25337, 27391, 27419, 32039, 34225, 36673, 42029
Offset: 1

Views

Author

Scott R. Shannon, Jul 13 2021

Keywords

Comments

On a spiral spiral plot the position of a number along with all its prime factors, where the number has at least two distinct prime factors. The sequence lists those numbers for which all these points can be connected by a single straight line.
The first term with two prime factors is 21, the first with three is 273, the first with four is 65793, and the first with five is 6118203. Almost all of the later numbers lie on lines with gradient +-1 passing through or very close to the central 1 square. In general there is a concentration of term on these diagonals; see the linked image.
There are 258 terms for numbers below 100 million. In that range the largest prime factor to appear is for 69672413 = 29 * 2402497, where 2402497 has coordinate (-771,775) relative to the central 1 square, 29 is at coordinate (3,1), while the term 69672413 is at coordinate (4174,-4170).

Examples

			The square spiral is numbered as follows:
.
  17--16--15--14--13   .
   |               |   .
  18   5---4---3  12   29
   |   |       |   |   |
  19   6   1---2  11   28
   |   |           |   |
  20   7---8---9--10   27
   |                   |
  21--22--23--24--25--26
.
21 is a term as 21 = 3 * 7, and 21 is at coordinate (-2,-2) relative to the central 1 square, 3 is at coordinate (1,1), and 7 is at coordinate (-1,-1). These three points all fall on the line y = x.
87 is a term as 87 = 3 * 29, and 87 is at coordinate (5,1), 3 is at coordinate (1,1), and 29 is at coordinate (3,1). These three points all fall on the line y = 1.
200 is a term as 200 = 2^3 * 5^2, and 200 is at coordinate (-7,4), 2 is at coordinate (1,0), and 5 is at coordinate (-1,1). These three points all fall on the line y = -x/2 + 1/2.
273 is a term as 271 = 3 * 7 * 13, and 273 is at coordinate (-8,-8), 3 is at coordinate (1,1), 7 is at coordinate (-1,-1), and 13 is at coordinate (2,2). These four points all fall on the line y = x. This is the first term with three distinct prime factors.
65793 is a term as 65793 = 3 * 7 * 13 * 241, and all these points fall on the line y = x. This is the first term with four distinct prime factors.
6118203 is a term as 6118203 = 3 * 7 * 13 * 73 * 307, and all these points fall on the line y = x. This is the first term with five distinct prime factors.
		

Crossrefs

A347357 The numbers visited on a square spiral when starting at 1 and then stepping to the smallest unvisited number that is not visible from the current number.

Original entry on oeis.org

1, 11, 6, 2, 14, 9, 3, 5, 7, 10, 4, 8, 12, 18, 20, 17, 13, 15, 19, 21, 23, 25, 22, 16, 24, 26, 28, 30, 27, 29, 31, 33, 35, 32, 34, 36, 44, 46, 37, 39, 41, 38, 40, 42, 51, 53, 47, 43, 45, 48, 50, 52, 54, 56, 66, 68, 59, 55, 57, 60, 58, 49, 65, 61, 63, 67, 69, 71, 62, 64, 74, 76, 70, 72, 83, 85, 73
Offset: 1

Views

Author

Scott R. Shannon, Aug 28 2021

Keywords

Comments

A number is not visible from the current number if, given it has coordinates (x,y) relative to the current number, the greatest common divisor of |x| and |y| is greater than 1.
See A331400 for the points visible from the starting 1 number.

Examples

			The square spiral is numbered as follows:
.
  17--16--15--14--13   .
   |               |   .
  18   5---4---3  12   29
   |   |       |   |   |
  19   6   1---2  11   28
   |   |           |   |
  20   7---8---9--10   27
   |                   |
  21--22--23--24--25--26
.
a(1) = 1. The central starting number.
a(2) = 11 as the numbers 2..10 are all visible from 1, while 11 is hidden by 2.
a(3) = 6 as the numbers 2..5 are all visible from 11, while 6 is hidden by 1 and 2.
a(4) = 2 as 2 is the smallest unvisited number and from 6 it is hidden by 1.
a(5) = 14 as the unvisited numbers 3..5,7..10,12,13 are all visible from 2, while 14 is hidden by 3.
a(11) = 4 as 4 is the smallest unvisited number and from 10 it is hidden by 2. This is the first time a diagonal step is taken.
a(25) = 24 as 24 is the smallest unvisited number and from 16 it is hidden by 1. This is the first step that is not vertical, horizontal or along a 45-degree diagonal.
		

Crossrefs

Cf. A347518 (remove number after step), A063826, A214664, A214665, A331400, A330979, A332767.

A347518 The numbers visited on a square spiral when starting at 1 and then stepping to the smallest unvisited number that is not visible from the current number and where the number is removed from the spiral once visited.

Original entry on oeis.org

1, 11, 6, 14, 2, 16, 7, 9, 17, 13, 10, 20, 18, 3, 5, 12, 22, 24, 21, 25, 19, 33, 31, 26, 28, 30, 27, 35, 32, 36, 47, 39, 29, 37, 40, 42, 38, 43, 45, 48, 44, 49, 41, 52, 50, 53, 55, 51, 56, 66, 54, 63, 57, 59, 61, 4, 23, 15, 46, 34, 77, 73, 65, 58, 62, 90, 64, 106, 74, 76, 79, 75, 80, 82, 78, 95
Offset: 1

Views

Author

Scott R. Shannon, Sep 04 2021

Keywords

Comments

On the standard square spiral a number is not visible from the current number if, given it has coordinates (x,y) relative to the current number, the greatest common divisor of |x| and |y| is greater than 1. For this sequence at least one other number must also exist on the line connecting these two numbers for them to be hidden from each other. Most visited primes are stepped over by subsequent terms. See the first linked image.
See A331400 for the points visible from the starting 1 number.

Examples

			The square spiral is numbered as follows:
.
  17--16--15--14--13   .
   |               |   .
  18   5---4---3  12   29
   |   |       |   |   |
  19   6   1---2  11   28
   |   |           |   |
  20   7---8---9--10   27
   |                   |
  21--22--23--24--25--26
.
a(1) = 1 is the central starting number.
a(2) = 11 as the numbers 2..10 are all visible from 1, while 11 is hidden by 2. After stepping to 11 the number 1 is removed.
a(3) = 6 as the numbers 2..5 are all visible from 11, while 6 is hidden by 2. After stepping to 6 the number 11 is removed.
a(4) = 14 as the numbers 2..5,7..10,12,13 are all visible from 6, while 14 is hidden by 4. After stepping to 14 the number 6 is removed. This is the first term that differs from A347357 as here the number 1 has been removed thus 2 is visible from 6.
		

Crossrefs

Cf. A347357 (do not remove number after step), A063826, A214664, A214665, A331400, A330979, A332767.

A347522 The prime numbers visited on a square spiral when starting at 1 and then stepping to the smallest unvisited prime number that is not visible from the current number.

Original entry on oeis.org

1, 11, 13, 7, 3, 5, 29, 23, 17, 19, 2, 47, 31, 37, 41, 43, 83, 89, 97, 53, 59, 61, 67, 71, 73, 79, 103, 101, 107, 109, 113, 131, 127, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 229, 227, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 331, 293, 307, 311
Offset: 1

Views

Author

Scott R. Shannon, Sep 05 2021

Keywords

Comments

A number is not visible from the current number if, given it has coordinates (x,y) relative to the current number, the greatest common divisor of |x| and |y| is greater than 1.
As n increases the vast majority of primes are on the same square ring of numbers as the current prime. However occasionally, especially for primes inside the right side quadrant, the next prime is on an outer or inner ring which causes the step to make a diagonal line. See the linked images. The largest diagonal step after 50000 terms is one at step 43936 between primes 532981 and 531457 which is seen as the long violet diagonal line from the top-left to the bottom-right in the image for these terms. No other such diagonal line is seen up to 10^6 terms.

Examples

			The square spiral is numbered as follows:
.
  17--16--15--14--13   .
   |               |   .
  18   5---4---3  12   29
   |   |       |   |   |
  19   6   1---2  11   28
   |   |           |   |
  20   7---8---9--10   27
   |                   |
  21--22--23--24--25--26
.
a(1) = 1. The central starting number.
a(2) = 11 as the smaller prime numbers 2,3,5,7 are all visible from 1, while 11 is hidden by 2.
a(3) = 13 as the smaller prime numbers 2,3,5,7 are all visible from 11, while 13 is hidden by 12.
a(4) = 7 as the smaller prime numbers 2,3,5 are visible from 13, while 7 is hidden by 1 and 3.
a(7) = 29 as the smaller prime numbers 2,17,19,23 are visible from 5, while 29 is hidden by 3,4 and 12.
		

Crossrefs

Cf. A347358 (step to smallest visible), A000040, A063826, A214664, A214665, A331400, A335364, A332767, A330979.

A331377 The areas of the triangles formed by joining three consecutive primes as vertices on the Ulam spiral.

Original entry on oeis.org

1, 2, 3, 3, 4, 4, 2, 6, 3, 6, 12, 0, 4, 6, 9, 4, 2, 8, 0, 6, 3, 9, 18, 4, 4, 0, 0, 2, 14, 18, 8, 2, 4, 6, 0, 18, 0, 6, 9, 0, 8, 2, 0, 4, 0, 72, 6, 3, 0, 0, 0, 10, 0, 18, 0, 0, 4, 4, 0, 3, 49, 28, 0, 0, 12, 24, 12, 6, 0, 0, 15, 9, 0, 6, 6, 0, 0, 16, 0, 0, 10, 0, 0, 3, 9, 0, 0, 0, 4, 0, 12, 12, 0, 0, 4, 24, 0, 11, 21, 12
Offset: 1

Views

Author

Scott R. Shannon, Jan 14 2020

Keywords

Comments

The sequences lists the areas of the triangles formed by joining three consecutive primes, A000040(n), A000040(n+1), and A000040(n+2), as vertices on the Ulam spiral. As n increases the majority of terms are zero as most of the consecutive primes triples will fall on the same vertical or horizontal line forming the square spiral; only those primes near the corners of the spiral will form nonzero area triangles.
Assuming the truth of the Legendre conjecture one can show all areas will be integer values. Consider that the area, A, of a triangle is given by half the magnitude of the cross product of the vectors from the second prime of the triple to the first and third primes, i.e., A = |x_1*y_2 - y_1*x_2|/2. Any two primes on the same vertical or horizontal line of the spiral will always be a multiple of two units apart, so either x_1 = 2*k, y_1 = 0, or x_1 = 0, y_1 = 2*k where k is an integer with |k| >= 0. Assuming the third prime is not on the same line then A will be an even number divided by 2, which is always an integer. The only possibility for A being a non-integer is for all three primes to lie on three different vertical and/or horizontal spiral lines. Note that only the lower-right corner of the spiral has an even number. Therefore if we start on any right vertical line moving counterclockwise one complete revolution all primes will be an even number from the first three visited corners, so any vector connecting these primes will be of the form (2*j,2*k), implying once again the resulting triangle will have an integer value. So the remaining possibility is that the path between the three consecutive primes crosses the south-east corner at least once, for example the first prime is on the lower horizontal line and then the second is on the adjacent vertical right line. Such an example would be 23 to 29. But now, due to the above restriction that the next prime cannot be on the top, left, or bottom line if the proceeding prime is on the right vertical line, the third prime would need to form a path of one complete revolution and be on the next outer right vertical line. In the example case given this means it would have to be 51 or more. But in completing this revolution the path crosses both the top-left corner of the spiral, which is next to the numbers of the form (2*p)^2, and also the bottom right corner, which is next to numbers of the form (2*p+1)^2, and so it crosses consecutive squares without forming a prime. This violates the Legendre conjecture which, if true, therefore implies all triangles between three consecutive primes on the Ulam spiral will have an integer area.
For an Ulam spiral of size 20001 by 20001, with largest prime just over 400 million, the largest triangle area is 5160, between consecutive primes 364008101, 364008181 and 364008371. The first occurrence of three consecutive triangles with the same area, with area > 0, is for primes (2293,2297,2309), (2297,2309,2311), (2347,2351,2357), all of which form a triangle of area 8. Sixteen other runs with three consecutive triangles with the same area were also found, but no run of four triangles. The smallest triangle area which has not been formed is 79, although this minimum value slowly increases as the spiral gets larger, so it is likely, but unknown, that eventually triangles of all integer values are created.

Examples

			a(1) = 1 as the relative coordinates of the first three primes, 2,3,5, from the central 1 square are (1,0), (1,1), and (-1,1), which form a triangle with area |0*0 - -2*-1|/2 = 1.
a(3) = 3 as the relative coordinates of the third to fifth primes, 5,7,11, from the central 1 square are (-1,1), (-1,-1), and (2,0), which form a triangle with area |-3*-1 - -3*1|/2 = 3.
a(12) = 0 as the relative coordinates of the twelfth to fourteenth primes, 37,41,43, from the central 1 square are (-3,3), (-3,-1), and (-3,-3), all of which lie on the same vertical line so the triangle formed has zero area.
		

Crossrefs

A347337 The prime numbers ordered by their distance from the origin of a square spiral which starts at 1. If two or more primes have the same distance from the origin the smaller prime appears first.

Original entry on oeis.org

2, 3, 5, 7, 11, 19, 23, 13, 17, 29, 41, 47, 53, 61, 31, 37, 43, 59, 67, 71, 79, 97, 107, 73, 83, 89, 103, 109, 113, 127, 139, 151, 163, 137, 149, 101, 191, 131, 167, 173, 179, 193, 233, 281, 251, 263, 283, 157, 181, 199, 223, 229, 269, 277, 317, 353, 313, 331, 337, 349, 197, 211, 227, 239
Offset: 1

Views

Author

Scott R. Shannon, Aug 27 2021

Keywords

Examples

			The square spiral is numbered as follows:
.
  17--16--15--14--13   .
   |               |   .
  18   5---4---3  12   29
   |   |       |   |   |
  19   6   1---2  11   28
   |   |           |   |
  20   7---8---9--10   27
   |                   |
  21--22--23--24--25--26
.
a(1) = 2 as this is the only prime a distance of 1 unit from the origin.
a(2) = 3, a(3) = 5, a(4) = 7. All of these primes are a distance of
sqrt(2) units from the origin, so they are listed with the smaller primes first.
a(6) = 19 as this is 2 units from the origin, the same as a(5) = 11. This is the first prime that appears out of natural order as both 13 and 17 are sqrt(8) units, which is greater than 2 units, from the origin.
		

Crossrefs

A370776 The maximum number of alive cells reached in Conway's Game of Life when starting with the first n primes in Ulam's spiral; or -1 if no such maximum exists.

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 7, 65, 56, 120, 56, 28, 133, 30, 160, 46, 24, 24, 25, 28, 30, 31, 31, 32, 32, 32, 35, 74, 39, 38, 38, 38, 39, 40, 42, 319, 319, 319, 319, 319, 46, 129, 93, 50, 50, 72, 72, 72, 72, 72, 72, 53, 53, 56, 56, 851, 851, 167, 167, 167, 167, 391
Offset: 1

Views

Author

Thomas Strohmann, Mar 01 2024

Keywords

Comments

The initial alive cells are at coordinates x=A214664(i), y=A214665(i) for i=1..n.
For the first 7 terms of this sequence we have a(n)=n since those initial configurations do not lead to complex enough patterns that increase the number of alive cells beyond the initial number of alive cells.
The definition includes the possibility that a glider gun (or a similar pattern) is created which will result in an unbounded number of alive cells.

Examples

			n=1 to n=4 die out very quickly (within 3 steps). The maximum number of alive cells is simply the number of alive cells in the initial pattern, i.e., n.
n=5 is the first term that leads to somewhat interesting steps in the game of life simulation (although the maximum number of alive cells still does not exceed the initial number 5):
  . . . . . | . . . . . | . . . o . | . . . o . | . . . o . | . . . . .
  o . o . . | . o o o . | . . o . o | . . o . o | . . . o . | . . . . .
  . . o o . | . . o o . | . . o . o | . . . . . | . . . . . | . . . . .
  o . . . . | . . . . . | . . . . . | . . . . . | . . . . . | . . . . .
n=8 leads to a maximum number of 65 alive cells and stabilizes after 107 steps. Initial pattern:
  o . . . o |
  . o . o . |
  o . . o o |
  . o . . . |
n=15 reaches a maximum of 160 alive cells and is the first pattern that leads to having a glider (escaping in the northeast direction). Besides the glider, the stabilized pattern contains 4 blinkers, 3 blocks, 2 beehives and 1 ship.
		

Crossrefs

Previous Showing 11-17 of 17 results.