login
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.
3
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,5
FORMULA
A334474(a(n), A334475(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(1) = a(3) = a(7) = a(10) = 1.
PROG
(PARI) See Links section.
CROSSREFS
Sequence in context: A301572 A017868 A353158 * A319573 A178904 A017858
KEYWORD
nonn,look
AUTHOR
Rémy Sigrist, May 02 2020
STATUS
approved