editing
approved
editing
approved
n balanced ternary a(n)
-----------------------
0........0...........1
1........1...........2
2......1,-1..........2,0
3.......1,0..........2,1
...
approved
editing
editing
approved
Numbers To get a(n), write n in balanced ternary notation (using only digits -1, 0, 1, -1), then change -1's to 0's, 0's to 1's, and 1's to 2's.
Ken Levasseur, <a href="http://discretemath.org/ternary_number_system.html">The Balanced Ternary Number System</a>
11d 11 in base 10 = 11_10 = {1,1,-1} in balanced ternary = 1*3^2 + 1*3^1 - 1*3^0. Add 111 to {1,1,-1} to get a(11) = 220.
Edited by N. J. A. Sloane, Mar 31 2021
proposed
editing
editing
proposed
Also sequence A000027 written in base 3/2.
proposed
editing
editing
proposed
Cf. A024629.
proposed
editing
editing
proposed
Cf. A024629.
proposed
editing