Maximize parts of 271

Calculus Level 4

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.

Question from Nick's Mathematical Puzzle.


The answer is 100.

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.

7 solutions

Ricky Escobar
Dec 19, 2013

Call the number of summands n n and the summands themselves a 1 , a 2 , a 3 , , a n a_1, a_2, a_3,\dots, 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 a_1=a_2=a_3=...=a_n . Noting that a 1 + a 2 + a 3 + + a n = 271 a_1+a_2+a_3+\cdots+a_n=271 , and raising both sides to the power n n , we get $$\left(\frac{271}{n} \right)^n \geq a 1 a 2 a 3\cdots a n.$$ For a given n n , therefore, a 1 a 2 a 3 a n a_1 a_2 a_3\cdots a_n is maximized when a 1 = a 2 = a 3 = . . . = a n a_1=a_2=a_3=...=a_n .

Letting a 1 = a 2 = a 3 = . . . = a n 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 ) = ( 271 x ) x , f: (0,\infty) \to \mathbb{R}, \ f(x)= \left(\frac{271}{x} \right)^x, which we will do by calculus. To find the maximum, we must first take the derivative of f 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 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 f , we must find where f f' switches from positive to negative. Setting f ( x ) = 0 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 f'(x)>0 when x < 271 e x<\frac{271}{e} , and f ( x ) < 0 f'(x)<0 when x > 271 e x>\frac{271}{e} . Thus the maximum of f f occurs at x = 271 e x= \frac{271}{e} . Because e e is a little bigger than 2.71 2.71 , we have that 271 e \frac{271}{e} is a little less than 100 100 , i.e., 99 < 271 e < 100 99 < \frac{271}{e} < 100 .

Because f ( x ) f(x) has its maximum here, p ( n ) p(n) should have its maximum here as well. But because n n is a whole number, p ( n ) p(n) will have its maximum either at n = 99 n=99 or n = 100 n=100 . Calculating p ( 99 ) p(99) and p ( 100 ) p(100) shows that p ( 100 ) > p ( 99 ) p(100)>p(99) , which means that p ( n ) p(n) has its maximum at n = 100 n=\boxed{100} .

Bruce Wayne has been stealing problems from Nick's Mathematical Puzzles without even mentioning them.

This should be forbidden.

Guilherme Dela Corte - 7 years, 5 months ago

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.

Bruce Wayne - 7 years, 5 months ago

Log in to reply

Nonetheless this problem was really good,keep sharing(but always mention the source)

Snehdeep Arora - 7 years, 3 months ago

So for any given real number t t , the maximum occurs when the number of summands is the integer part of t e \frac{t}{e} + 1 +1 .

Jit Ganguly - 7 years, 5 months ago

Log in to reply

Almost. The maximum occurs either when the number of summands is the integer part of t e \frac{t}{e} or the integer part of t e + 1 \frac{t}{e}+1 . For example, consider t = 272 t=272 .

$$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 = 272 t=272 occurs at the integer part of 272 / e 272/e .

Ricky Escobar - 7 years, 5 months ago

Excellent

Anish Puthuraya - 7 years, 5 months ago

Format lets some wishes open! ;-)

Andreas Wendler - 5 years, 3 months ago

I solved this nearly the same way....only with LaGrange Multipliers + the ceiling function.

tom engelsman - 1 year, 2 months ago
Tasmeem Reza
Jul 1, 2014

I want to find a general solution for all value of * " a a " *

let the summands are b 1 , b 2 , b 3 , . . . b x 1 b_{1}, b_{2}, b_{3},...b_{x-1} and b x b_{x} . where x x is the number of required summands.

such that b 1 + b 2 + b 3 + . . . b x 1 + b x = a 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 b_{1}=b_{2}= b_{3}=...b_{x-1}=b_{x} and b m = a x b_{m}=\frac{a}{x} for m = 1 , 2 , 3 , 4... , x m={1,2,3,4...,x}

And the product of the summands are: 1 j x b j = ( a x ) x \prod_{1\leq j\leq x}^{ } b_{j} = \left ( \frac{a}{x} \right )^{x}

So all we need to do is to maximize ( a x ) x \left ( \frac{a}{x} \right )^{x}

let, y = ( a x ) x y=\left ( \frac{a}{x} \right )^{x} ,

l n ( y ) = x l n ( a ) x l n ( x ) \Rightarrow ln (y) = x ln(a) - x ln (x)

1 y × d y d x = l n ( a ) ( 1 + l n ( x ) ) \Rightarrow \frac{1}{y} \times \frac{dy}{dx} = ln (a) - (1+ ln (x))

d y d x = y [ l n ( a x ) 1 ] \Rightarrow \frac{dy}{dx} = y[ ln \left (\frac{a}{x} \right ) - 1]

Now, we want to find out when d y d x \frac{dy}{dx} becomes 0, As y = ( a x ) x 0 y= \left ( \frac{a}{x} \right )^{x} \neq 0 , then [ l n ( a x ) 1 ] [ ln \left ( \frac{a}{x} \right ) - 1] must be 0.**

So we get,

[ l n ( a x ) 1 ] = 0 [ ln \left ( \frac{a}{x} \right ) - 1]=0

l n ( a x ) = 1 = l n e \Rightarrow ln \left (\frac{a}{x} \right )=1=ln e

a x = e \Rightarrow \frac{a}{x}=e

x = a e \Rightarrow x=\frac{a}{e} , where e defines the base of Natural logarithm.

Now, d y d x = y l n ( a x ) y \frac{dy}{dx}=y ln\left (\frac{a}{x} \right) - y

d 2 y d x 2 = d y d x [ l n ( a x ) 1 ] 1 a x \Rightarrow \frac{d^{2}y}{dx^{2}}=\frac{dy}{dx}[ ln \left ( \frac{a}{x} \right ) - 1] - \frac{1}{ax}

Now plugging x = a e x=\frac{a}{e} we get,

d 2 y d x 2 = d y d x [ l n ( e ) 1 ] 1 a x = 0 1 a x = 1 a x \frac{d^{2}y}{dx^{2}}=\frac{dy}{dx}[ ln(e) - 1] - \frac{1}{ax}=0-\frac{1}{ax}=-\frac{1}{ax}

So, for x = a e x=\frac{a}{e} the value of d 2 y d x 2 \frac{d^{2}y}{dx^{2}} becomes Negative . That is to say, for x = a e x=\frac{a}{e} , the value of ( a x ) x \left ( \frac{a}{x} \right )^{x} is maximized.

So 271 will require x = a e = 271 e x=\frac{a}{e}=\frac{271}{e} summands, or approximately 100 \boxed{100} summands, to be the product maximized.

Owen Scott
Dec 19, 2013

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.

  1. Choosing 5 as a summand is a bad choice (2*3 will give you 6 and still only add 5 to the sum).
  2. Choosing 4 as a summand is the same as choosing 2 (2*2 and 4 both add 4 to the sum).
  3. Choosing 3 seems slightly better than choosing 2.
  4. Choosing the same number as all your summands leads to a likely maximum product.

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) ?

Carlos David Nexans - 6 years, 10 months ago

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.

Anuj Mishra - 5 years, 11 months ago
Anish Puthuraya
Dec 19, 2013

Lets suppose we divide 271 into n parts. such that, a 1 + a 2 + + a n = 271 a_{1} + a_{2} + \ldots + a_{n} = 271

Now, let us apply AM-GM Inequality to this relation of n real and positive numbers. Thus,

a 1 + a 2 + + a n n a 1 a 2 a n n \frac {a_{1} + a_{2} + \ldots + a_{n}}{n} \geq \sqrt[n] {a_{1} a_{2} \ldots a_{n}}

Using the fact that the L.H.S is 271 n \frac {271}{n} , and raising to the power of n on both sides, we get,

27 1 n n n a 1 a 2 a n \frac {271^n}{n^n} \geq a_{1} a_{2} \ldots 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 27 1 n n n \frac {271^n}{n^n} Therefore, let us consider,

f(x) = 27 1 n n n \frac {271^n}{n^n}

Differentiating, rearranging and equating the expression to 0. We find,

n = 271 e \frac {271}{e} which on assuming e \approx 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.

Guilherme Dela Corte - 7 years, 5 months ago

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.

Bruce Wayne - 7 years, 5 months ago

I didn't mention this, but to differentiate f(x) = 27 1 n n n \frac {271^n}{n^n} , Take log on both sides, and then do it.

Anish Puthuraya - 7 years, 5 months ago

Clean solution, thanks!

Carlos David Nexans - 6 years, 10 months ago
Changming Xu
Dec 19, 2013

We want to maximize x 271 x x^{\frac{271}{x}} to do so we will find when it's derivative equals 0. Using logarithmic differentiation we find that the derivative is 271 x 271 x ( 1 l n ( x ) ) 271x^{\frac{271}{x}}(1-ln(x)) . Setting this equal to 0 we find that x = 0 x=0 or e e . Since optimally we want an integer power of x we want either x = 271 100 x=\frac{271}{100} or 271 99 \frac{271}{99} . Using a calculator it is easy to verify that x = 271 100 x=\frac{271}{100} is larger, thus our answer is 100 \boxed{100} .

Arjen Vreugdenhil
May 19, 2016

If the sum S = a + b S = a+b is given, the product a b a\cdot b is maximized by making a = b = 1 2 S a = b = \tfrac12S . This is easy to check, and generalizes immediately to n n factors, so that we maximize the product of n n summands by taking a 1 = a 2 = = a n = S / n a_1 = a_2 = \cdots = a_n = S/n .

The only question, then, is how much n n should be.

Now the product of the summands is P = a 1 a 2 a n = ( S n ) n . P = a_1 \cdot a_2 \cdot \cdots \cdot a_n = \left(\frac S n\right)^n. To maximize this, I will maximize the logarithm by settings its derivative equal to zero. d P d n = d d n [ n ( ln S ln n ) ] = ln S ln n 1 = 0. \frac{dP}{dn} = \frac{d}{dn}\left[n(\ln S - \ln n)\right] = \ln S - \ln n - 1 = 0. The solution is ln n = ln S 1 n = S e = 271 2.71 , \ln n = \ln S - 1 \ \ \ \therefore\ \ \ \ n = \frac S e = \frac{271}{2.71\dots}, which lies between 99 and 100. Therefore the solution is either 99 or 100.

We check 99 ( ln 721 ln 99 ) = 196.57 ; 100 ( ln 721 ln 100 ) = 197.55. 99(\ln 721 - \ln 99) = 196.57; \\100(\ln 721 - \ln 100) = 197.55. The latter is slightly greater, so the optimal number of summands is n = 100 n = \boxed{100} .

Deepak Kamlesh
Dec 21, 2013

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.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...