БГ
Size: a a a
БГ
БГ
<Ч
БГ
БГ
<Ч
БГ
<Ч
БГ
БГ
БГ
I
БГ
БГ
БГ
БГ
E
БГ
from itertools import count
def bomzheg(n: float):
pieces = []
for power in count():
frac = 2**-power
diff = n-frac
if diff >= 0:
pieces.append(frac)
n = diff
if not n:
break
return pieces