Professional Documents
Culture Documents
Problem 1
Problem 1
Note that in the latter formulation we added the stipulation that each of the terms adding
to the integer constant and whose product we are maximizing are also integers.
2.2 Applying It
Qn
Pn we are maximizing f (x1 , . . . , xn ) = i=1 xi subject to the constraint g(x1 , . . . , xn ) =
Here
i=1 xi −c, so applying the method, the first equation in the system gives us
Q
i̸=1 xi 1
.
.. .
∇f (x1 , . . . , xn ) = = λ .. = λ∇g(x1 , . . . , xn ) =⇒
Q
j̸=n xi 1
Y Y
λ= xi = · · · = xi =⇒ x1 = · · · = xn .
i̸=1 i̸=n
Now, using the quotient rule, and knowing the derivative of nn with respect to n (proven in the
appendix), we have
To satisfy the latter constraint, we assume 3|c, but this is not always the case. Hence we
consider the following case: 3c ∈
/ N; in such a case we can round 3c down to the nearest natural
number using the floor function. Remember, the terms have to sum up to c, so we must fill the
gap created by rounding 3c down, but how so?
4.2 Case 1: c = 25
25 25 24
Initially
Pn we get 3 3 , but since 25 3
/ N, we must rewrite the product as 3⌊ 3 ⌋ = 3 3 = 38 . Since
,∈
i=1 xi = 25, so far we have 25 = 3(8) + xn = 24 + xn =⇒ xn = 1. For xn = 1, we have the
product equal to (38 )(1), so the 1 has no effect. Upon P closer inspection, though, one finds that
the product (37 )(22 ) which still satisfies the constraint ni=1 xi = 25 is greater than the original
answer of 38 . This can be attributed to the fact that the approximation e ≈ 3 results in room
for error, that is, answers which are very close to the true solution. More generally, we write:
Q c
• For 3c ∈ N, {x1 , . . . , xn , } ∈ W, given that ni=1 xi = c, max n
P
i=1 i = (3 ).
x 3
Q
⌊ 3c ⌋−1
• For c−1
Pn n
3
∈ N, {x1 , . . . , xn , } ∈ W, given that x
i=1 i = c, max i=1 i = (3
x )(22 ).
The reason that we actually further restricted {x1 , . . . , xn , c} not just to integers but to
natural numbers, is because for {x1 , . . . , xn , c} ∈ Z|{x1 , . . . , xn } ∈ (−∞, 0], c ∈ (−∞, 2]
there are actually no solutions (that is, no maximum product)! We will explore why this
is true in the final section, 4.4 Trivial Cases.
4.3 Case 2: c = 26
Finally, we must consider the case when c−2 3
∈ N, such as for n = 26. Using the same reasoning
8
as
Pn for the previous case, we get 3 , but we are missing one term to satisfy the constraint
i=1 xi = 26, specifically 26 = 3(8) + xn = 24 + xn =⇒ xn = 2. Hence our true solution is
8
(3 )(2). From this we get the last general case:
Q
⌊ 3c ⌋
• For c−2
Pn n
3
∈ N, {x 1 , . . . , x n , } ∈ W, given that x
i=1 i = c, max i=1 i = (3
x )(2).
Finally, we must consider when c ∈ Z|c ∈ (−∞, 2], failing to satisfy the outlined conditions:
c c−1 c−2
3
, 3 , 3 ∈ N.
For c ∈ Z|c ∈ (−∞, 0), there are no solutions for xi > 0. However, if we forget about this
restriction, then the following cases emerge:
• If ∈
Q
c
Z (meaning
6 if c is an even multiple of 3),
n −c
max i=1 xi = (−3)
3 .
• If ∈
Q
c
Z, 6c ∈
3
/Z (meaning if c is an odd multiple of 3),
n ⌊ −c ⌋−1
max i=1 xi = (−3)
3 (−2)(−1).
• If c+1
∈ Z, 2c ∈
3 Z (meaning if c is an even integer one less than a multiple of 3),
Qn −c
⌊ 3 ⌋−1
max i=1 xi = (−3) (−2)2 .
• If c+1
∈ Z,
3
c
2
∈
/ Z (meaning if c is an odd integer one less than a multiple of 3),
⌊ −c
Qn ⌋−1
max i=1 xi = (−3)
3 (−2)(−1)2 .
• If c+2 c
∈ Z, 2
3
∈ Z (meaning if c
3
is an even integer two less than a multiple of 3),
⌊ −c
Qn ⌋ 2
max i=1 xi = (−3)
3 (−1) .
• If c+2
∈ Z,
3
c
2
∈
/ Z (meaning if c
3
is an odd integer two less than a multiple of 3),
⌊ −c
Qn ⌋
max i=1 xi = (−3)
3 (−2).
Pn Q
n
For x i = 0, max i=1 i = 0, where xi = 0. If we hadn’t restricted xi > 0 then
x
i=1
Qn
n n
∄ max i=1 xi = (a )(−a )∀a ∈ Z.
Q Q
For ni=1 xi = 1, max n n
P
i=1 x i = 1, where x i = 1. If we hadn’t restricted x i > 0 max i=1 x i =
1 = (1)n (−1)n−1 ∀n ∈ Z. In order to set the exponent of (−1) to 0, we let n = 1, which gives
us our only term and maximum product, 1, as aforementioned.
Pn Q
n
For x
i=1 i = 2, max i=1 i = 2. We know 2 is the only term (and maximum) since
x
2 > 12 > (12 )(0)n ∀n ∈ Z. Again, here we restrict xi > 0.