PROJECT EULER · #0175
Fractions and Sum of Powers of Two
Define
For example,
It can be shown that for every fraction
For instance, the smallest
The binary expansion of
Reading this binary number from the most significant bit to the least significant bit there are
Find the Shortened Binary Expansion of the smallest
Give your answer as comma separated integers, without any whitespaces.
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.