Number of numbers not greater than n such that length in binary representation and number of ones are coprime.

A099249

Number of numbers not greater than n such that length in binary representation and number of ones are coprime.

Terms

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

External references