A163361 Hilbert curve in N x N grid, one-based, starting rightwards from the top-left corner.
1, 2, 4, 15, 3, 5, 16, 14, 8, 6, 17, 13, 9, 7, 59, 20, 18, 12, 10, 58, 60, 21, 19, 31, 11, 55, 57, 61, 22, 24, 30, 32, 54, 56, 62, 64, 235, 23, 25, 29, 33, 53, 51, 63, 65, 236, 234, 26, 28, 36, 34, 52, 50, 68, 66, 237, 233, 231, 27, 37, 35, 47, 49, 69, 67, 79, 240, 238, 232
Offset: 1
Links
Formula
a(n) = A163357(n-1)+1