Sorry for my math language and the question header; I'm not capable of the terms used for the mathematics to ask the question via text; so I had to use the example above; feel free to edit if you can keep the meaning the same.
So the question is like this: I know that the total is uniquely identifies the used exponential constants while using the base as $2$; like $2^x + 2^y = 129$ then the $x=0$ and $y=7$.
So I couldn't think of a function to get the values like $\operatorname{func}(129) = [0,7]$.
Thanks in advance. Note: I know it's dumb to ask that but help is appreciated.