login
A065365
Replace 3^k with 2^k in balanced ternary expansion of n.
1
1, 1, 2, 3, 1, 2, 3, 3, 4, 5, 5, 6, 7, 1, 2, 3, 3, 4, 5, 5, 6, 7, 5, 6, 7, 7, 8, 9, 9, 10, 11, 9, 10, 11, 11, 12, 13, 13, 14, 15, 1, 2, 3, 3, 4, 5, 5, 6, 7, 5, 6, 7, 7, 8, 9, 9, 10, 11, 9, 10, 11, 11, 12, 13, 13, 14, 15, 9, 10, 11, 11, 12, 13, 13, 14, 15, 13, 14, 15, 15, 16, 17, 17, 18, 19
OFFSET
1,3
COMMENTS
Notation: (3)<n>(2)
EXAMPLE
5 = +1(9)-1(3)-1(1) -> +1(4)-1(2)-1(1) = 1 = a(5)
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Marc LeBrun, Oct 31 2001
STATUS
approved