Greater of two ternary (base 3) numbers (each using only 0's and 1's, the latter's positions never coinciding) such that the decimal representation of their difference is n.

A112867

Greater of two ternary (base 3) numbers (each using only 0's and 1's, the latter's positions never coinciding) such that the decimal representation of their difference is n.

Terms

    a(0) =0a(1) =1a(2) =10a(3) =10a(4) =11a(5) =100a(6) =100a(7) =101a(8) =100a(9) =100a(10) =101a(11) =110a(12) =110a(13) =111a(14) =1000a(15) =1000a(16) =1001a(17) =1000a(18) =1000a(19) =1001a(20) =1010a(21) =1010a(22) =1011a(23) =1000a(24) =1000a(25) =1001a(26) =1000a(27) =1000a(28) =1001a(29) =1010

External references