A mentally handicapped problem

Algebra Level 5

Let a 1 , a 2 , , a 31 a_1,a_2,\ldots, a_{31} and b 1 , b 2 , , b 31 b_1,b_2, \ldots, b_{31} be positive integers such that a 1 < a 2 < < a 31 2015 a_1< a_2<\cdots< a_{31} \leq 2015 ; b 1 < b 2 < < b 31 2015 \ b_1< b_2<\ldots<b_{31} \leq 2015 \ and a 1 + a 2 + + a 31 = b 1 + b 2 + + b 31 \ a_1+a_2+\cdots+a_{31}=b_1+b_2+\cdots+b_{31} .

Find the maximum value of

S = a 1 b 1 + a 2 b 2 + + a 31 b 31 . S=|a_1-b_1|+|a_2-b_2|+\cdots+|a_{31}-b_{31}|.


The answer is 30720.

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.

0 solutions

No explanations have been posted yet. Check back later!

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...