I was solving this initial problem at Project Euler website (link: https://projecteuler.net/problem=30). It asks to find the sum of all the numbers in which the sum of the digits to the fifth power is equal to the number itself. I basically searched in the space between $10$ and $10^6$. I've chosen this upper limit since I thought that, at the edge, all digits would be $9$, maximizing the sum, but $7*(9^5) < 10^6$, and, as the number grows, it get even further from that maximal possible sum, even with the number of digits still increasing. But I know this is not very formal and I would like to know how can I describe that condition in a more formal way, in order to help me think for future problems.
Thank you!