Numbers k whose base 3 expansion matches (0|1)*(02)?(0|1)* (no more than one "02" allowed in midst of 0's and 1's).

A051382

Numbers k whose base 3 expansion matches (0|1)*(02)?(0|1)* (no more than one "02" allowed in midst of 0's and 1's).

Terms

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

External references