I have looked everywhere and cannot find an answer. If the answer already exists, please refer me to it.
I have a number $n$ and need to know the formula to find the numbers in the series $2^n$ that when summed equal $n$.
For example:
$25 = 16 + 8 + 1$ or $25 = 2^4 + 2^3 + 2^0$
Thank you.