How to find number of presentations of 1 as a sum of exactly $k$ numbers of the form $2^{-i}$ ? As an example for $k=2$ we have only one presentation: $$1 = \frac{1}{2} + \frac{1}{2},$$ so answer for $k = 2$ is 1. For $k=4$, $$1 = \frac{1}{2} + \frac{1}{4} + \frac{1}{8} + \frac{1}{8}$$ and $$1 = \frac{1}{4} + \frac{1}{4} + \frac{1}{4} + \frac{1}{4},$$ so the answer is 2.
How to find the formula for all $k$?
$$f_m(w,z)=\prod_{j=0}^{m}\frac1{1-wz^{2^{j}}}$$
Then you want to find the coefficient of $w^kz^{2^m}$ for $m=\lfloor \log_2 k\rfloor.$ But I don't immediately see how to do that.
– Thomas Andrews Mar 26 '23 at 14:39