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.

A072998

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.

Terms

    a(0) =1a(1) =2a(2) =20a(3) =21a(4) =22a(5) =200a(6) =201a(7) =202a(8) =210a(9) =211a(10) =212a(11) =220a(12) =221a(13) =222a(14) =2000a(15) =2001a(16) =2002a(17) =2010a(18) =2011a(19) =2012a(20) =2020a(21) =2021a(22) =2022a(23) =2100a(24) =2101a(25) =2102a(26) =2110a(27) =2111a(28) =2112a(29) =2120

External references