A334222 a(n) is the X-coordinate of the point at n steps backward from the origin along the space filling curve U defined in A334188; sequence A334223 gives Y-coordinates.
0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 5, 4, 4, 4, 3, 3, 3, 2, 1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 2, 1, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7
Offset: 0
Keywords
Examples
The "backward" branch of curve U starting from the origin is as follows: | | 7| -15..-16 -21..-22 -31..-32 -37 | | | | | | | | 6| -14 -17 -20 -23 -30 -33 -36 | | | | | | | | 5| -13 -18..-19 -24 -29 -34..-35 | | | | 4| -12..-11..-10 -25 -28 | | | | 3| -3...-4 -9 -26..-27 | | | | 2| -2 -5 -8 | | | | 1| -1 -6...-7 | | 0| 0 ---+----------------------------------- y/x| 0 1 2 3 4 5 6 - hence a(4) = a(5) = a(6) = a(11) = a(16) = a(17) = a(18) = 1.
Links
- Rémy Sigrist, Table of n, a(n) for n = 0..8318
- Rémy Sigrist, PARI program for A334222
- Index entries for sequences related to coordinates of 2D curves
Programs
-
PARI
See Links section.