Topic: Bit Manipulation Problem / Level: beginner

Problem: Write a function that counts how many numbers from 1 to n can be represented in binary with an odd number of bits.

Run the code to see the output here...