Quote (Bloo_Guardian @ Oct 23 2015 09:04pm)
Is this just a result by checking 5, 6, and 7? Or is there a more formal way to show this is true?
Any integer > 4 has been checked, not only 5, 6, 7. See my previous post.
To prove it in a more formal way, suppose you have a given N ( N = 2015 in your example), and suppose N is the sum of a1, a2, ..., ap, with all ai integers :
N = a1 + a2 + ... + ap
Now assume that at least one of the ai equals something greater than 4. We may assume that we are talking about the last one : ap > 4.
If ap is even, you can also write : N = a1 + a2 + ... + a(p-1) + (ap/2) + (ap/2)
If ap is odd, you can write : N = a1 + a2 + ... + a(p-1) + ((ap+1)/2) + ((ap-1)/2)
Now compare the products :
P = a1*a2*...*ap (your original one)
Q = a1*a2*...*a(p-1)*(ap/2)*(ap/2), in case ap is even
Q = a1*a2*...*a(p-1)*((ap+1)/2)*((ap-1)/2), in case ap is odd.
Since ap > 4, Q > P as proven above.
And that proves that a decomposition of N using at least an integer > 4 can not give the largest possible product.