I am trying to find out what is the best upper bound on the size of a list such that
- All its values are integers between $1$ and $n$
- Its values are all different from each other
- The sum of the $k^\text{th}$ powers of its entries equals $n$.
I quickly found an 'ok upper bound' that is the $\sqrt[k]n$, since any number bigger than this one will be larger the n after we power it by k (and all the numbers in the list must be different)
but I couldn't a smaller upper bound on the size of the list :( do you have any ideas?
I really appreciate any help you can provide.
Suppose the list has length $\ell$. In order for the list to be as long as possible, the entries should be as small as possible, meaning the entries are $1,2,\dots,\ell$. Therefore, $$ n=1^k+\dots+\ell^k\ge \int_0^\ell x^k\,\mathrm dx=\frac{\ell^{k+1}}{k+1} $$ We conclude that $$\ell\le \Big(n(k+1)\Big)^{1/(k+1)}.$$