A334577 a(n) is the Y-coordinate of the n-th point of the space filling curve P defined in Comments section; sequence A334576 gives X-coordinates.
0, 0, 0, 1, 2, 2, 1, 0, 0, 0, 0, 1, 1, 1, 2, 3, 4, 4, 4, 5, 6, 6, 5, 4, 3, 3, 3, 2, 2, 2, 1, 0, 0, 0, 0, 1, 2, 2, 1, 0, 0, 0, 0, 1, 1, 1, 2, 3, 3, 3, 3, 2, 1, 1, 2, 3, 4, 4, 4, 5, 5, 5, 6, 7, 8, 8, 8, 9, 10, 10, 9, 8, 8, 8, 8, 9, 9, 9, 10, 11, 12, 12, 12, 13
Offset: 0
Keywords
Examples
The first points of the space filling curve P are as follows: 6| 20...21 | | | 5| 19 22 | | | 4| 16...17...18 23 | | | 3| 15 26...25...24 | | | 2| 4....5 14 27...28...29 | | | | | 1| 3 6 13...12...11 30 | | | | | 0| 0....1....2 7....8....9....10 31.. | ---+---------------------------------------- y/x| 0 1 2 3 4 5 6 7 - hence a(15) = a(24) = a(25) = a(26) = 3.
Links
- Rémy Sigrist, Table of n, a(n) for n = 0..4095
- Joerg Arndt, L-system corresponding to P
- Kevin Ryde, Iterations of the Alternate Paperfolding Curve
- Rémy Sigrist, PARI program for A334577
- Index entries for sequences related to coordinates of 2D curves
Programs
-
PARI
See Links section.
Comments