OFFSET
0,3
COMMENTS
Although the terms equal to powers of 2 are delayed relative to similar size terms, e.g. a(2214) = 128, it is conjectured that the sequence contains all nonnegative integers.
LINKS
Scott R. Shannon, Table of n, a(n) for n = 0..5000
Scott R. Shannon, Image of the first 5000 terms on the square spiral. Zoom in to see the details. The 1 bits are black while the 0 bits are light gray. The bits that comprise each term are connected by a red line.
EXAMPLE
The spiral begins:
.
.
0---1---1---0---1---1---1 1
| | |
0 1---1---0---1---1 0 1
| | | | |
0 1 1---0---1 1 0 1
| | | | | | |
1 1 1 0---1 1 1 1
| | | | | |
0 1 1---0---1---1 0 1
| | | |
0 1---1---0---1---1---0 0
| |
1---1---1---0---1---1---0---1
.
a(0) = 0 by definition.
a(2) = 2 = 10_2 as the 4th square, which contains the 0 bit of 10_2, is not a knight's move away from the 1st square, the only other square containing a 0 bit.
a(4) = 5 = 101_2 as the 8th square, which contains the central 0 bit of 101_2, is not a knight's move away from the 1st or 4th squares, the other squares containing a 0 bit. Note that a(4) cannot equal 4 = 100_2 as that would place a 0 bit on the 9th square which is a knight's move away from the 4th square.
CROSSREFS
KEYWORD
nonn,base,new
AUTHOR
Scott R. Shannon, Jun 07 2026
STATUS
approved
