Home » Ask & Discuss » Mathematics. » Algebra « Back to Discussion
Algebra
Comments (16)




There will be 332 3's and 2 2's. So a total of 334 numbers. So n = 334
I had done a similar problem once earlier. But there was no restriction that the numbers be natural. I will give you the link http://goiit.com/posts/list/algebra-write-271-as-the-sum-of-positive-real-numbers-so-as-73541.htm#364087
Now if you follow that procedure, you will notice that if all ai are real, the maximum always occurs when all the ai are equal to e. This is actually independent of the sum of the ai
But here they got to be natural numbers. So, we must choose our numbers in such a way that they are close to 2.71. So choose as many 3's as possible, and ensure that the deviation
is minimized
Our first instinct would be to go for 333 3's and one 1. But look at 332 3's and 2 2's. This has lesser deviation than the earlier combination and its easy to check that indeed the product is greater in this case.
Thus the winning combination is 332 3's and 2 2's giving the product as 4. 3332. You can even check with their sum being 10. The max product of 36 occurs when we choose 3 3's and 2 2's.
@conjurer-could you tell me which chapter of that book? Just want to check what logic was used there.
edit: ok got it. its the 1st chapter (not inequalities as I thought). At first sight the procedure looks a bit like conjecture. Got to see what their logic is. But the conclusion is the same as i have indicated. 2 two's and rest all three's.
Maybe we can get bolder and generalise: for n>5
If n = 3k, then all the ai equal 3
If n = 3k+1 2 two's and rest all three's. (1000 falls in this category)
If n = 3k+2, then 1 two and rest all 3's
how bout this
using AM>= GM
{ (x1 + x2 +....+xn )/n }n has to be maximized which is discrete
so f(x) = ( N / x )x has to be max. (this fun is continuous)
for maxima f'(x)=0
i.e. (N/x)x {log (N/x) - 1} = 0
i.e N/x = e
or x = N/e
here N=1000
so it should be divided in
parts
@ankit: that would be the reckoning if the ai were +ve real numbers. But here we are restricted to natural numbers. But in my solution, I have used the observation that solution from real numbers is each ai is close to e whatever be the constant sum of the ai. So the natural numbers should be chosen as close as possible to 2.71
Sorry for the delayed response. And yes, there is an alternative.
Given:
We can assume that
. Let
. The following observations can be made:
1)
does not yield the maximum value of
, since replacing
,
by
,
increases
without altering the sum.
2)
does not yield the maximum, since replacing
by
and
increases the product.
3)
does not yield the maximum, since
. Also, since
, we can assume that all the
's are either
or
. And thus
where
.
4)
does not yield the maximum value, since
.
Hence
. Since,
(since that would imply
which is not possible), we get
, in which case
. Hence,
and so
.
Quite by accident, I discovered this problem in two places:
This is from IMO 1976 and the solution in the IMO Compendium is the same as what sir has given.
I was a bit apprehensive whether my method was a lot of hand-waving. Luckily, this morning, in the very last chapter of the book "Art and Craft of Problem Solving" I discovered this IMO problem solved by them with the same argument as mine. The caveat is that it is in a section called "Eulerian methods" which refers to intuitive but not entirely rigorous solutions that yet work! 
So it may be better to go by the "official IMO solution" which sir has also given.


and
,
,
,
so that
and the product
is as large as possible.







