Let's say we have a set of natural numbers $ S=\{2^a, 2^b, 2^c, 2^d, ...\} $ and we have $z$ where $ z=\sum_{i=0}^n S_i $ How can we find the set from $z$ ?
For example, let $z = 83$ Then the set $S$ = $\{2^0, 2^1, 2^4, 2^6\} as 1 + 2 + 16 + 64 = 83$
What is the formula that can solve this problem? input: $c$ output $S$
You can write $z$ in binary, so that you can see, at what places in geometrical sequence $a_n 2^n$ is $a_n$ non-zero. For example: $83 = 1010011_b$. One can see now, that $83 = 2^6 + 2^4 + 2^1 + 2^0$.