Maximization in 2018 Variables

Algebra Level 3

Let 0 x k 1 0 \leq x_k \leq 1 for all k = 1 , 2 , . . . , 2018 k = 1, 2, ..., 2018 . Maximize f ( x 1 , x 2 , . . . , x 2018 ) = x 1 + x 2 + . . . + x 2018 x 1 x 2 . . . x 2018 . f(x_1, x_2, ..., x_{2018}) = x_1 + x_2 + ... + x_{2018} - x_1x_2...x_{2018}.


The answer is 2017.

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.

1 solution

Alan Yan
Jan 20, 2018

Notice that since f f is a linear function in every one of it's variables, its maximum value is achieved when every x k x_k is either 1 1 or 0 0 . If we have k k zeroes and 2018 k 2018-k ones, then f ( x 1 , . . . , x k ) = 2018 k f(x_1, ..., x_k) = 2018 - k if k > 0 k > 0 and f ( x 1 , . . . , x k ) = 2017 f(x_1, ..., x_k) = 2017 if k = 0 k = 0 . Either way, the maximum value of f f is 2017 \boxed{2017} .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...