We have a partition of 2018. If the maximum value of the product of the numbers in the partition can be expressed as a × b c , where a and b are primes and c is an integer, then what is a + b + c ?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Isn't the second last line is 2 × 3 6 7 2 .
Simple and elegant. I would simply add that x y > y x iff l n ( x ) / x > l n ( y ) / y . The function x ↦ l n ( x ) / x has maximal value at e ≈ 2 . 7 1 8 thus to get a so-called maximal partition, one should multiply only three's and two's, with preference for the three's.
Why AM-GM can not be used .Using this I am getting answer 2 1 0 0 9
Log in to reply
I agree that with the multiset { 2 , 2 , 2 , . . . , 2 } you have a product value equal to 2 1 0 0 9 but we are looking for the maximum product value and as you can see 2 1 0 0 9 < 2 . 3 6 7 2 .
Technically, what you mean is multiset , not set, since elements of a set are all distinct.
Log in to reply
I went with the intuitive idea of a set. Thanks for the input.
Why can't we just set "a" to whatever the final product is, "b" to 1 and "c" to any number we want? Is it just because there isn't an upper limit on "c" and thus it can't be maximised?
Log in to reply
Interesting point, maybe the solution should be clarified by adding b>1, b!=1 or something like that... Althought I think is in fact clear that the requered solution is the one with b=3. You can't put infinit on the solition and I think you are write about the lack of upper limit.
Log in to reply
Thanks! I've edited the problem to clarify.
Brilliant observation
Couldn't understand
Could u pls explain why did u break 2018 as 3*672+2??
Log in to reply
This took me a second as well, as I am not used to partitions. The product of the numbers that make up the partition (which consist only of numbers a, b, c). So a b^c means that the number "a" appears once in the partition, whereas the number "b" appears "c" times. The definition of a partition is the total number of unique ways to sum of all numbers equal to a certain value (in this case 2018). So 2018 must be equal to that 1 a + (b +b +b +b... +b) c times, i.e. 2018 = a + c b. Hope this helps. I think Daniel Xiang's solution below is much less hand wavy (though the reasoning in Romain's is nice). Still requires this understanding though.
Log in to reply
Yes basically of all the ways that you can break down 2 0 1 8 (i.e. from 1 + 1 + 1 + . . . + 1 to 2 0 1 8 , the one for which the product of all the elements is maximal is 3 + 3 + 3 + 3 . . . + 3 + 2 i.e. 3 × 6 7 2 + 2 .
Thanks for the explanation but I actually had a problem that how to figure out the no. 672,pls help me out there!!!thanks in advance
Log in to reply
@Erica Phillips – I would seek out the method of Lagrange multipliers as done in Daniel Xiang's solution. This method sets the equation you are trying to maximize f(x,y,z,...) given a constraint C(x,y,z,...)
L(x,y,z,...; lambda) = f(x,y,z,...) + lambda*C(x,y,z,...)
and then find extreme values given by setting the partial derivatives of each variable to zero. You will have a system of equations which can be used to deduce information on each of the variables. (Having issues accessing the math palette for text). This of course can be generalized for multiple constraints but is not needed here.
Since the product of the integers can be expressed as a × b c we deduce that a + b c = 2 0 1 8
To maximise a × b c we introduce the auxiliary function
L ( a , b , c , λ ) : = a b c − λ ( a + b c − 2 0 1 8 )
It follows that
∂ a ∂ L = ∂ b ∂ L = ∂ c ∂ L = 0
Solving the equations,
∂ a ∂ L = b c − λ = 0 ∂ b ∂ L = a c b c − 1 − c λ = 0 ∂ c ∂ L = a b c ln b − b λ = 0
we have
b c = a b c − 1 = a b c − 1 ln b
Since a , b , c ∈ Z + , it is clear that a ≈ b ≈ e = 2 . 7 1 8 …
Which implies that the possible values for a , b should be 2 or 3
if a = 3 and b = 2 then c = 2 2 0 1 8 − 3 = 1 0 0 7 . 5 ∈ / Z
if a = b = 3 then c = 3 2 0 1 8 − 3 = 6 7 1 . 6 6 … ∈ / Z
if a = 2 and b = 3 then c = 3 2 0 1 8 − 2 = 6 7 2 ∈ Z
if a = b = 2 then c = 2 2 0 1 8 − 2 = 1 0 0 8 ∈ Z
Since 2 1 0 0 8 < 3 6 7 2 we deduce that ( a , b , c ) = ( 2 , 3 , 6 7 2 ) is the correct answer
Finally a + b + c = 2 + 3 + 6 7 2 = 6 7 7
I love it.
Another way to see that factoring with 3 as much as possible leads to maximal product.
Considering the function x n / x , this has a maximum x = e , the closest integer 3 happens to give the maximum for integers.
So 2 0 1 8 = 3 ∗ 6 7 2 + 2 leads to 2 ∗ 3 6 7 2
"We now just proved that only 2 and 3 can be elements of a maximal partition." - this isn't true. For instance, { ∣ 4 ∣ } is a maximal partition of 4 . (But what can be said is that we can disregard any partition containing a 4 , since if such a partition is maximal then there is also a maximal partition without any 4 s in.)
Agreed. I changed the wording.
Problem Loading...
Note Loading...
Set Loading...
Let's call a partition of any integer n maximal if the product of the elements of the partition is maximal. (e.g. for n = 4 we have the three following partitions : { 1 , 1 , 1 , 1 } , { 1 , 1 , 2 } , { 1 , 3 } as well as two maximal partitions : { 2 , 2 } and { 4 } .)
It is obvious that 1 cannot be an element of a maximal partition because we could then get rid of it by adding 1 to another element, therefore keeping the sum intact and inscreasing the value of the product.
In the same way, we can discard any partition with an element p ≥ 4 because then we could split it into p − 2 and 2 therefore keeping the sum intact and substituting the corresponding factor in the product value from p to 2 ( p − 2 ) which is always ≥ p . We now just proved that there is a maximal partition with only 2 s and 3 s.
We can then show that no more than two 2 can be elements of the maximal partition : otherwise we could replace 2 + 2 + 2 by 3 + 3 therfore keeping the sum intact while increasing a factor in the product from 2 × 2 × 2 to 3 × 3 .
Since 2 0 1 8 = 3 × 6 7 2 + 2 , we get a maximum value for the product at 2 ⋅ 3 6 7 2 . Hence a + b + c = 2 + 3 + 6 7 2 = 6 7 7 .