Write numbers in ternary under each other; to get the next block of 3^k (k >= 0) terms of the sequence, start at 3^k, read diagonals in upward direction and convert to decimal.

A105108

Write numbers in ternary under each other; to get the next block of 3^k (k >= 0) terms of the sequence, start at 3^k, read diagonals in upward direction and convert to decimal.

Terms

    a(0) =0a(1) =1a(2) =2a(3) =5a(4) =3a(5) =4a(6) =8a(7) =6a(8) =7a(9) =16a(10) =11a(11) =9a(12) =10a(13) =14a(14) =12a(15) =13a(16) =17a(17) =15a(18) =25a(19) =20a(20) =18a(21) =19a(22) =23a(23) =21a(24) =22a(25) =26a(26) =24a(27) =51a(28) =34a(29) =29

External references