[Math] highest product of the numbers that sum to $100$

number theory

what is the highest product of the numbers that sum to 100

for example $100 = 1+1+1+1+1+1+1+\ldots+1$ the product of these is just $1^{100} = 1$

$100 = 99 + 1$ the product of these is $99\times 1$

the numbers have to be positive integers

do the numbers all have to be the same – for example I think it is $2^{50}$

Best Answer

The arithmetic-geometric-mean equation says that $\sum_{i=1}^{n}{\frac{a_i}{n}}\geq\sqrt[n]{\prod_{i=1}^n{a_i}}$.

If you enter your condition on the left side and look at different values for $n$, you might find a solution.

Edit: This method works well to guess a solution, which is that most of your numbers will be $3$, and by trying that we can find $3^{32}\cdot 2^2$. Now we can go about proving that this indeed the maximum:

Assume that any $a_k$ of your numbers is greater than $4$. We could then substitute this number by $\frac{a_k}{2}+\frac{a_k}{2}$, which have a product larger than $a_k$, since $\frac{a_k}{2}^2\geq a_k \Leftrightarrow a_k\geq 4$.

(If $a_k$ is odd, we can do the same thing with two numbers with difference $1$.)

From this we can conclude that there can be no numbers greater than $3$ in your sum. Also, there can be no $1$s, for obvious reasons.

Hence, we have a selection of $a$ $3$s, and $b$ $2$s, where $3a+2b\leq 100$. Formally, we have to look at the cases $3a+2b=100, 3a+2b=99$, since if the sum was smaller than $98$ we could simply add a $2$.

Thus, we can write our product as $3^a2^{\frac{100-3a}{2}}$. If we look at this function and its maximum/monotony properties the only possible values for a maximum are $a=32, a=33$. Comparison leads to the maximum being at $a=32, b=2$.

Another possibility with less calculus would be to look at $3\cdot 3\geq 6$, immediately telling us that there can be no more than $3$ $2$s, else we could, again, substitute them with $2$ $3$s. In hindsight, this way might actually be a lot quicker and requires no differentiation...

In any case, with both variants we are done, and you have your maximum being what quite some people have pointed out so far.

Related Question