To get the 6th term, for example, note that 5th term has three (10 in ternary!) 1's, one (1) 0, etc., giving 10 1 1 0 1 2 2 1 1 2.

A001389

To get the 6th term, for example, note that 5th term has three (10 in ternary!) 1's, one (1) 0, etc., giving 10 1 1 0 1 2 2 1 1 2.

Terms

    a(0) =2a(1) =12a(2) =1112a(3) =10112a(4) =11102112a(5) =10110122112

External references