login
A163537
The relative direction (0=straight ahead, 1=turn right, 2=turn left) of the Peano curve A163336 at point n.
3
0, 2, 2, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 2, 2, 0, 0, 0, 0, 2, 2, 0, 1, 1, 0, 2, 2, 0, 1, 1, 0, 2, 2, 0, 0, 0, 0, 2, 2, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 2, 2, 0, 1, 1, 0, 2, 2, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 2, 2, 0, 0, 0, 0, 2, 2, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 2, 2, 0, 0, 0, 0, 2, 2, 0, 1, 1, 0, 0, 0, 0, 1, 1
OFFSET
1,2
COMMENTS
a(9*n) = a(81*n) for all n.
LINKS
FORMULA
a(n) = A163241((A163535(n+1)-A163535(n)) modulo 4).
a(n) = A014681(A163536(n)).
PROG
(Scheme:) (define (A163537 n) (A163241 (modulo (- (A163535 (1+ n)) (A163535 n)) 4)))
CROSSREFS
Cf. A163535 (direction), A163536 (transposed relative).
Sequence in context: A187752 A295181 A215573 * A219946 A117449 A004594
KEYWORD
nonn
AUTHOR
Antti Karttunen, Aug 01 2009
EXTENSIONS
Name corrected by Kevin Ryde, Aug 29 2020
STATUS
approved