A255570 Numbers whose binary representation traces a closed circuit in honeycomb lattice when its bits, from the least to the second most significant bit, are interpreted as directions to proceed at each vertex. (The most significant 1-bit is ignored).
1, 64, 65, 126, 127, 380, 381, 386, 387, 1056, 1057, 1090, 1091, 1156, 1157, 1274, 1275, 1286, 1287, 1288, 1289, 1518, 1519, 1552, 1553, 1782, 1783, 1784, 1785, 1796, 1797, 1914, 1915, 1980, 1981, 2014, 2015, 4096, 4097, 4158, 4159, 4160, 4161, 4222, 4223, 4348, 4349, 4368, 4369, 4598, 4599, 4600
Offset: 0
Examples
64 ("1000000" in binary) is included, because when we take six turns to the left in the hexagonal lattice, we will reach the same vertex where we started from. 65 ("1000001" in binary) is included, because if we take first turn to the right at some vertex, and then five turns to the left in succession, we also reach the same vertex we started from. 126 ("1111110" in binary) is included, because if we take first turn to the left at some vertex, and then five turns to the right in succession, we also reach the same vertex we started from. 127 ("1111111" in binary) is included, because if we take six turns to the right in the hexagonal lattice, we will reach the same vertex where we started from. 380 ("101111100" in binary) is included, because it traces a path, where we first turn left from the starting vertex, then circumambulate a hexagon clockwise, after which we come back to the starting vertex. Note that the vertex next to the starting vertex is visited twice.
Links
- Antti Karttunen, Table of n, a(n) for n = 0..18484
- Wikipedia, Hexagonal lattice
Comments