OFFSET
0,2
EXAMPLE
n balanced ternary a(n)
-----------------------
0........0...........1
1........1...........2
2......1,-1..........2,0
3.......1,0..........2,1
...
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.
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Robert G. Wilson v, Aug 15 2002
EXTENSIONS
Corrected by Reinhard Zumkeller, Aug 18 2008
Edited by N. J. A. Sloane, Mar 31 2021
STATUS
approved