Coding's an art and everyone's slightly different. I like Hanzo's way of thinking. Here's mine. The trick is to keep dividing by 2 until it's gonna be less than 1, then stop and print the remainders. This way no leading zeroes will appear.
1そうだね プレイ済み