OFFSET
1,2
COMMENTS
The sequence is conjectured to be a permutation of the positive integers, although it takes many terms for most primes to appear, e.g. a(1807) = 13, a(35156) = 179. The primes do not occur in their natural order.
After a million terms the numbers 397, 419, 443, 463, 467, 487, 499, 503, 509, ... are still missing - Scott R. Shannon, Jun 20 2026.
LINKS
Scott R. Shannon, Table of n, a(n) for n = 1..20000
Michael S. Branicky, Python program for OEIS A354434 and A397168
Scott R. Shannon, Table of n, a(n) for n = 1..200000
Scott R. Shannon, Table of n, a(n) for n = 1..10^6
Scott R. Shannon, Image of the first 200000 terms. The green line is y = n.
Scott R. Shannon, Image of the first 500000 terms on square the spiral. The number colors are graduated across the spectrum, from red to violet, to show their relative size.
EXAMPLE
The spiral begins
.
.
7--35--45--54--50--48--46 82
| | |
63 21--15--24--22--20 44 80
| | | | |
51 27 3---6---4 16 42 76
| | | | | | |
57 30 9 1---2 14 40 74
| | | | | |
60 33 12--18---8--10 38 70
| | | |
66 36--39--26--28--32--34 68
| |
52--72--78--84--56--58--62--64
.
.
a(11) = 14 as the existing numbers in the Moore neighborhood when a(11) is being placed are 4,2,8,10, and 14 is the smallest unused number that shares a factor with all these numbers.
CROSSREFS
KEYWORD
AUTHOR
Scott R. Shannon, May 28 2022
STATUS
approved
