A334476 a(n) is the Y-coordinate of the n-th point of the space filling curve T defined in A334474; sequence A334475 gives X-coordinates.
0, 1, 0, 1, 2, 3, 2, 1, 0, 0, 1, 2, 2, 3, 3, 3, 4, 5, 4, 5, 6, 7, 6, 5, 4, 4, 3, 2, 2, 1, 1, 0, 0, 0, 1, 0, 1, 2, 2, 3, 3, 3, 4, 4, 5, 6, 5, 4, 4, 5, 5, 6, 6, 7, 7, 7, 6, 7, 7, 7, 6, 5, 6, 7, 8, 9, 8, 9, 10, 11, 10, 9, 8, 8, 9, 10, 10, 11, 11, 11, 12, 13, 12
Offset: 0
Examples
The space filling curve T starts as follows: 5| ... | | | | 4| 16 | \ | \ 3| 5 15-14-13 | |\ | | | \ | 2| 4 6 11-12 | \ \ \ | \ \ \ 1| 1 3 7 10 | |\ | | | | | \| | | 0| 0 2 8--9 ---+------------- y/x| 0 1 2 3 - hence a(1) = a(3) = a(7) = a(10) = 1.
Links
- Rémy Sigrist, Table of n, a(n) for n = 0..8255
- Rémy Sigrist, PARI program for A334476
- Index entries for sequences related to coordinates of 2D curves
Programs
-
PARI
See Links section.
Comments