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