login
A334475
a(n) is the X-coordinate of the n-th point of the space filling curve T defined in A334474; sequence A334476 gives Y-coordinates.
4
0, 0, 1, 1, 0, 0, 1, 2, 2, 3, 3, 2, 3, 3, 2, 1, 0, 0, 1, 1, 0, 0, 1, 2, 2, 3, 4, 4, 5, 5, 4, 4, 5, 6, 6, 7, 7, 6, 7, 7, 6, 5, 4, 5, 4, 4, 5, 6, 7, 7, 6, 6, 7, 7, 6, 5, 5, 4, 3, 2, 3, 3, 2, 1, 0, 0, 1, 1, 0, 0, 1, 2, 2, 3, 3, 2, 3, 3, 2, 1, 0, 0, 1, 1, 0, 0, 1
OFFSET
0,8
FORMULA
A334474(A334476(n), a(n)) = n.
EXAMPLE
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(2) = a(3) = a(6) = a(15) = 1.
PROG
(PARI) See Links section.
CROSSREFS
Sequence in context: A196058 A081844 A233549 * A110012 A233542 A375802
KEYWORD
nonn
AUTHOR
Rémy Sigrist, May 02 2020
STATUS
approved