Take the Cantor set sequence A121153 and if the entry m = A121153(n) is in the range 3^k <= m < 3^(k+1), subtract 3^k from it.

A170952

Take the Cantor set sequence A121153 and if the entry m = A121153(n) is in the range 3^k <= m < 3^(k+1), subtract 3^k from it.

Terms

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

External references