login
A341164
a(n) is the Y-coordinate of the n-th point of the space filling curve A defined in Comments section; A341163 gives X-coordinates.
2
0, 1, 0, 2, 3, 4, 3, 1, 0, 2, 3, 4, 3, 5, 6, 5, 6, 7, 6, 8, 9, 10, 9, 7, 6, 4, 3, 2, 3, 1, 0, 1, 0, 2, 3, 4, 3, 5, 6, 5, 6, 7, 6, 8, 9, 10, 9, 7, 6, 8, 9, 10, 9, 11, 12, 11, 12, 11, 12, 10, 9, 8, 9, 11, 12, 13, 12, 14, 15, 16, 15, 13, 12, 14, 15, 16, 15, 17
OFFSET
0,4
COMMENTS
Coordinates are given on a hexagonal lattice with X-axis and Y-axis as follows:
Y
/
/
0 ---- X
We define the family {A_n, n >= 0} as follows:
- A_0 corresponds to the points (0, 0), (1, 1) and (3, 0), in that order:
. __+__ .
__---- ----__
+ . . +
0
- for any n >= 0, A_{n+1} is obtained by arranging 4 copies of A_n as follows:
+
/B\
+ / \
/B\ /A C\
/ \ --> +-------+
/A C\ /B\C B/A\
+-------+ / \ / \
O /A C\A/B C\
+-------+-------+
O
- the space filling curve A is the limit of A_n as n tends to infinity.
EXAMPLE
The curve A starts as follows:
.
. .
. 5 .
4 . . 6
. . 3 . .
. 1 . . 7 .
0 . . 2 . . 8
- so a(0) = a(2) = a(8) = 0,
a(1) = a(7) = 1,
a(3) = 2,
a(4) = a(6) = 3,
a(5) = 4.
PROG
(PARI) See Links section.
CROSSREFS
Cf. A341163.
Sequence in context: A363774 A358606 A360027 * A237981 A366878 A299730
KEYWORD
nonn,look
AUTHOR
Rémy Sigrist, Feb 06 2021
STATUS
approved