login
A163528
The X-coordinate of the n-th point in the Peano curve A163334.
16
0, 1, 2, 2, 1, 0, 0, 1, 2, 3, 4, 5, 5, 4, 3, 3, 4, 5, 6, 7, 8, 8, 7, 6, 6, 7, 8, 8, 7, 6, 6, 7, 8, 8, 7, 6, 5, 4, 3, 3, 4, 5, 5, 4, 3, 2, 1, 0, 0, 1, 2, 2, 1, 0, 0, 1, 2, 2, 1, 0, 0, 1, 2, 3, 4, 5, 5, 4, 3, 3, 4, 5, 6, 7, 8, 8, 7, 6, 6, 7, 8, 9, 10, 11, 11, 10, 9, 9, 10, 11, 12, 13, 14, 14, 13, 12
OFFSET
0,3
COMMENTS
There is a 2-state automaton that accepts exactly those pairs (n,a(n)) where n is represented in base 9 and a(n) in base 3; see accompanying file a163528.pdf - Jeffrey Shallit, Aug 10 2023
FORMULA
a(n) = A025581(A163335(n)) = A002262(A163337(n)) = A163325(A163332(n)).
KEYWORD
nonn
AUTHOR
Antti Karttunen, Aug 01 2009
EXTENSIONS
Name corrected by Kevin Ryde, Aug 28 2020
STATUS
approved