If 271 is written as the sum of positive real numbers so as to maximize the product of the summands, how many summands would be there?
As an example: 271 can be written as sum of 200,70 and 1. The product of the summands here is 14000. You are supposed to maximize this product. Remember that there is no restriction on the number of summands.
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.
Bruce Wayne has been stealing problems from Nick's Mathematical Puzzles without even mentioning them.
This should be forbidden.
Log in to reply
I am sorry that I did not mention the source. It is an honest mistake and I apologize for the same. I just wanted to share some good problems. I will make sure to quote the source whenever I post a problem from other site. Thank you for pointing out.
Log in to reply
Nonetheless this problem was really good,keep sharing(but always mention the source)
So for any given real number t , the maximum occurs when the number of summands is the integer part of e t + 1 .
Log in to reply
Almost. The maximum occurs either when the number of summands is the integer part of e t or the integer part of e t + 1 . For example, consider t = 2 7 2 .
$$272/e \approx 100.06$$ $$\left( \frac{272}{100} \right)^{100} \approx 2.863 \times 10^{43}$$ $$\left( \frac{272}{101} \right)^{101} \approx 2.851 \times 10^{43}$$
So the max for t = 2 7 2 occurs at the integer part of 2 7 2 / e .
Excellent
Format lets some wishes open! ;-)
I solved this nearly the same way....only with LaGrange Multipliers + the ceiling function.
I want to find a general solution for all value of * " a " *
let the summands are b 1 , b 2 , b 3 , . . . b x − 1 and b x . where x is the number of required summands.
such that b 1 + b 2 + b 3 + . . . b x − 1 + b x = a .
By AM-GM inequality we come to the conclusion, that the product of the summands will be maximized if and only if every summands are equal.
so we get, b 1 = b 2 = b 3 = . . . b x − 1 = b x and b m = x a for m = 1 , 2 , 3 , 4 . . . , x
And the product of the summands are: ∏ 1 ≤ j ≤ x b j = ( x a ) x
So all we need to do is to maximize ( x a ) x
let, y = ( x a ) x ,
⇒ l n ( y ) = x l n ( a ) − x l n ( x )
⇒ y 1 × d x d y = l n ( a ) − ( 1 + l n ( x ) )
⇒ d x d y = y [ l n ( x a ) − 1 ]
Now, we want to find out when d x d y becomes 0, As y = ( x a ) x = 0 , then [ l n ( x a ) − 1 ] must be 0.**
So we get,
[ l n ( x a ) − 1 ] = 0
⇒ l n ( x a ) = 1 = l n e
⇒ x a = e
⇒ x = e a , where e defines the base of Natural logarithm.
Now, d x d y = y l n ( x a ) − y
⇒ d x 2 d 2 y = d x d y [ l n ( x a ) − 1 ] − a x 1
Now plugging x = e a we get,
d x 2 d 2 y = d x d y [ l n ( e ) − 1 ] − a x 1 = 0 − a x 1 = − a x 1
So, for x = e a the value of d x 2 d 2 y becomes Negative . That is to say, for x = e a , the value of ( x a ) x is maximized.
So 271 will require x = e a = e 2 7 1 summands, or approximately 1 0 0 summands, to be the product maximized.
More of a thinking process than a solution, but here goes...
Pretend you are breaking down the number 10 rather than 271. You could try 2 2 2 2 2=32, or 5 5 = 25, but those are both smaller than 3 3*4=36. You'll notice a couple of things while thinking about 10.
Let's think about breaking down 9. If you think about it, you'll realize 3 3 3 seems to be the best option.
But wait, we're dealing with real numbers, not just integers here...so what now...
If we break down a number n into pieces of x, we want to maximize the following function. x ^ (n/x)
If you want, take the derivative and maximize that function (or be lazy and use wolframalpha...I don't judge).
The maximum occurs at x = e = 2.718...
271 / 2.718 is about 100. Your last summand is probably a little smaller than e, but it should still be a maximum.
Thus, there should be 100 summands to maximize the product.
Hmmm... Why x^(n/x) ?
I just neglected the fact that problem is saying to use real numbers. I was only using integers and got 90 as the answer with maximized no. be (3^89)*4.
Lets suppose we divide 271 into n parts. such that, a 1 + a 2 + … + a n = 2 7 1
Now, let us apply AM-GM Inequality to this relation of n real and positive numbers. Thus,
n a 1 + a 2 + … + a n ≥ n a 1 a 2 … a n
Using the fact that the L.H.S is n 2 7 1 , and raising to the power of n on both sides, we get,
n n 2 7 1 n ≥ a 1 a 2 … a n
The R.H.S is the required product of the summands. Hence, to find the maximum value of this product, we clearly need to maximize n n 2 7 1 n Therefore, let us consider,
f(x) = n n 2 7 1 n
Differentiating, rearranging and equating the expression to 0. We find,
n = e 2 7 1 which on assuming e ≈ 2.71, we get,
n = 100
Bruce Wayne has been stealing problems from Nick's Mathematical Puzzles without even mentioning them.
This should be forbidden.
Log in to reply
I have apologized for my honest mistake and have sworn to make a note of it (if there is a next time). Stop spamming and potraying me like HARVEY DENT when I am not! HARVEY DENT SOURCE : 'THE DARK KNIGHT' DIRECTED BY CHRISTOPHER NOLAN. Don't ask me to get copyright permissions to use movie charected names.
I didn't mention this, but to differentiate f(x) = n n 2 7 1 n , Take log on both sides, and then do it.
Clean solution, thanks!
We want to maximize x x 2 7 1 to do so we will find when it's derivative equals 0. Using logarithmic differentiation we find that the derivative is 2 7 1 x x 2 7 1 ( 1 − l n ( x ) ) . Setting this equal to 0 we find that x = 0 or e . Since optimally we want an integer power of x we want either x = 1 0 0 2 7 1 or 9 9 2 7 1 . Using a calculator it is easy to verify that x = 1 0 0 2 7 1 is larger, thus our answer is 1 0 0 .
If the sum S = a + b is given, the product a ⋅ b is maximized by making a = b = 2 1 S . This is easy to check, and generalizes immediately to n factors, so that we maximize the product of n summands by taking a 1 = a 2 = ⋯ = a n = S / n .
The only question, then, is how much n should be.
Now the product of the summands is P = a 1 ⋅ a 2 ⋅ ⋯ ⋅ a n = ( n S ) n . To maximize this, I will maximize the logarithm by settings its derivative equal to zero. d n d P = d n d [ n ( ln S − ln n ) ] = ln S − ln n − 1 = 0 . The solution is ln n = ln S − 1 ∴ n = e S = 2 . 7 1 … 2 7 1 , which lies between 99 and 100. Therefore the solution is either 99 or 100.
We check 9 9 ( ln 7 2 1 − ln 9 9 ) = 1 9 6 . 5 7 ; 1 0 0 ( ln 7 2 1 − ln 1 0 0 ) = 1 9 7 . 5 5 . The latter is slightly greater, so the optimal number of summands is n = 1 0 0 .
A.M - G.M. inequality:
[ (x1 + x2 + ... + xn) /n ] ^ n >= (x1 * x2 * .... * xn)
Let x1 + x2 + ... +xn =271 and let P = x1 * x2 * ... * xn
We have now, P <= (271/n)^n. So we have to find the value of n for which (271/x)^x is maximum.
Let f(x) = (271/x)^x. Taking log and differentiating we get that
d(f(x))/dx = (271/x)^x * [ ln(271/x) - 1].
d(f(x))/dx = 0 at x = 271/e.....................[ ln(271/x) - 1=0 implies ln(271/ex) =1 implies ex= 271]
f(x) is increasing for x < 271/e and decreasing for x > 271/e and attains it's maximum at 271/e.
Now, 271/e is approximately equal to 99.6953 and the required number of summands is 100.
Problem Loading...
Note Loading...
Set Loading...
Call the number of summands n and the summands themselves a 1 , a 2 , a 3 , … , a n .
By the AM-GM inequality, we have $$\frac{a 1+a 2+a 3+\cdots+a n}{n} \geq \left( a 1 a 2 a 3\cdots a n \right)^{1/n},$$ with equality holding when a 1 = a 2 = a 3 = . . . = a n . Noting that a 1 + a 2 + a 3 + ⋯ + a n = 2 7 1 , and raising both sides to the power n , we get $$\left(\frac{271}{n} \right)^n \geq a 1 a 2 a 3\cdots a n.$$ For a given n , therefore, a 1 a 2 a 3 ⋯ a n is maximized when a 1 = a 2 = a 3 = . . . = a n .
Letting a 1 = a 2 = a 3 = . . . = a n , we have the product $$p(n)=a 1 a 2 a 3\cdots a n=\left(\frac{271}{n} \right)^n,$$ which we wish to maximize. Note, that we cannot maximize this function using calculus because it is not a function of a real variable, but rather a function of a whole number variable. So instead we maximize the function f : ( 0 , ∞ ) → R , f ( x ) = ( x 2 7 1 ) x , which we will do by calculus. To find the maximum, we must first take the derivative of f , which can be done using logarithmic differentiation: $$\ln f(x) = x \ln \left( \frac{271}{x} \right)$$ $$\ln f(x)= x \ln 271 - x \ln x.$$ Differentiating implicitly with respect to x , we get $$\frac{f'(x)}{f(x)}= \ln 271 - \ln x - 1$$ $$\frac{f'(x)}{f(x)}= \ln \left( \frac{271}{e\cdot x} \right)$$ $$f'(x)= \left(\frac{271}{x} \right)^x \ln \left( \frac{271}{e\cdot x} \right).$$ To maximize f , we must find where f ′ switches from positive to negative. Setting f ′ ( x ) = 0 and solving gives us $$ \left(\frac{271}{x} \right)^x \ln \left( \frac{271}{e\cdot x} \right) = 0$$ $$\ln \left( \frac{271}{e\cdot x} \right)=0$$ $$ \frac{271}{e\cdot x}=1 $$ $$x= \frac{271}{e}.$$ It is easy to verify that f ′ ( x ) > 0 when x < e 2 7 1 , and f ′ ( x ) < 0 when x > e 2 7 1 . Thus the maximum of f occurs at x = e 2 7 1 . Because e is a little bigger than 2 . 7 1 , we have that e 2 7 1 is a little less than 1 0 0 , i.e., 9 9 < e 2 7 1 < 1 0 0 .
Because f ( x ) has its maximum here, p ( n ) should have its maximum here as well. But because n is a whole number, p ( n ) will have its maximum either at n = 9 9 or n = 1 0 0 . Calculating p ( 9 9 ) and p ( 1 0 0 ) shows that p ( 1 0 0 ) > p ( 9 9 ) , which means that p ( n ) has its maximum at n = 1 0 0 .