Write n in balanced ternary notation, omit any zeros and form the left-to-right alternating sum mod 3.
A108964
Write n in balanced ternary notation, omit any zeros and form the left-to-right alternating sum mod 3.
Terms
- a(0) =0a(1) =1a(2) =2a(3) =1a(4) =0a(5) =1a(6) =2a(7) =0a(8) =2a(9) =1a(10) =0a(11) =2a(12) =0a(13) =1a(14) =2a(15) =1a(16) =0a(17) =1a(18) =2a(19) =0a(20) =1a(21) =0a(22) =2a(23) =1a(24) =2a(25) =0a(26) =2a(27) =1a(28) =0a(29) =2
External references
- oeis: A108964