Minimum Permutation Sum

Let { x 1 , x 2 , , x 100 } \{ x_1, x_2 , \ldots, x_{100} \} be a permutation of { 1 , 2 , 100 } \{ 1, 2, \ldots 100 \} . What is the minimum, over all permutations, of max i = 1 to 91 x i + x i + 1 + x i + 2 + + x i + 9 ? \max_{i=1 \mbox{ to }91 } x_{i} + x_{i+1} + x_{i+2} + \ldots + x_{i+9} ?

Note: A permutation is a rearrangement of all of the numbers in the sequence.


The answer is 505.

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.

6 solutions

Justin Lim
May 20, 2014

Consider the ten sums x 1 + + x 10 , x 11 + + x 20 , , x 91 + + x 100 x_1+\dots +x_{10},x_{11}+\dots +x_{20},\dots ,x_{91}+\dots +x_{100} . The 100 terms in these sums are disjoint, and their sum is i = 1 100 x i = 5050 \sum_{i=1}^{100}x_i=5050 . It follows by Pigeonhole Principle, that one of these sums is at least the average, that is, 5050 10 = 505 \frac{5050}{10}=505 .

We now prove that 505 505 is achievable. Draw a 10 10 by 10 10 table T T as follows:

100 81 80 20 1 99 82 79 19 2 98 83 78 18 3 97 84 77 17 4 96 85 76 16 5 95 86 75 15 6 94 87 74 14 7 93 88 73 13 8 92 89 72 12 9 91 90 71 11 10 \begin{array} {l l l l l l } 100 &81 &80 & \dots &20 &1\\ 99 &82 &79 &\ldots& 19 &2\\ 98 &83 &78 &\ldots &18& 3\\ 97 &84 &77 &\ldots &17 &4\\ 96 &85 &76 &\ldots &16 &5\\ 95 &86 &75 &\ldots& 15 &6\\ 94 &87 &74 &\ldots &14 &7\\ 93 &88 &73 &\ldots& 13 &8\\ 92 &89 &72 &\ldots &12 &9\\ 91 &90 &71 &\ldots &11 &10\\ \end{array}

Take this table and take the x i x_i going right, in order, for every row. That is, our sequence is now 100 , 81 , 80 , , 20 , 1 , 99 , 82 , 79 , , 19 , 2 , 98 , 100,81,80,\dots ,20,1,99,82,79,\dots ,19,2,98,\dots . I claim that this works. Let s i = x i + + x i + 9 s_i=x_i+\dots +x_{i+9} .

We can verify that the first initial sum s 1 = 505 s_1 = 505 . But note that by design, s i + 1 = s i ± 1 s_{i+1}=s_i\pm 1 , with ± \pm constantly alternating. It follows that all sums are s i = 505 s_i = 505 for i i odd and s i = 504 s_i = 504 for i i even, and we're done.

Daniel Chiu
Dec 1, 2013

First, we establish a bound. Consider the 10 sets { x 1 , x 2 , x 3 , , x 10 } { x 11 , x 12 , x 13 , , x 20 } { x 91 , x 92 , x 93 , , x 100 } \begin{aligned} &\{x_1,x_2,x_3,\cdots,x_{10}\} \\ &\{x_{11},x_{12},x_{13},\cdots,x_{20}\} \\ &\cdots \\ &\{x_{91},x_{92},x_{93},\cdots,x_{100}\} \\ \end{aligned} All 100 elements are distinct, and they add to 1 + 2 + 3 + + 100 = 5050 1+2+3+\cdots+100=5050 , so the minimum of the maximum element sum of one of these sets is 5050 10 = 505 \dfrac{5050}{10}=505 . Therefore, the answer is at least 505.

Now, we show that 505 is achievable. Consider the 10 ordered sets S 1 = { 100 , 99 , 98 , , 91 } S 2 = { 81 , 82 , 83 , , 90 } S 0 = { 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 } \begin{aligned} S_1&=\{100,99,98,\cdots,91\} \\ S_2&=\{81,82,83,\cdots,90\} \\ &\cdots \\ S_{0}&=\{1,2,3,4,5,6,7,8,9,10\} \end{aligned}

Consider the permutation where the elements with i k ( m o d 10 ) i\equiv k\pmod{10} are, in order, the elements of S k S_{k} . We claim that this permutation has a maximum sum of 10 consecutive elements of 505. First, note the first 10 elements are 100 , 81 , 80 , 61 , 60 , 41 , 40 , 21 , 20 , 1 100,81,80,61,60,41,40,21,20,1 , with a sum of 505 505 . Now, removing the 1st element and adding the 11th, we remove the 1st element of S 1 S_1 and add the 2nd, which is 1 less, making the new sum 504. Removing the 2nd element and adding the 3rd, we remove the 1st element of S 2 S_2 and add the 2nd, which is one more, making the new sum 505. In this way, we always replace an element with the number alternating above and below, and so the sum alternates 505,504,505,504,... Thus, the minimum of 505 \boxed{505} is indeed achievable.

To hopefully make things more clear, the permutation is (python, not written out) ( 100 , 81 , 80 , 61 , 60 , 41 , 40 , 21 , 20 , 1 , 99 , 82 , 79 , 62 , 59 , 42 , 39 , 22 , 19 , 2 , 98 , 83 , 78 , 63 , 58 , 43 , 38 , 23 , 18 , 3 , 97 , 84 , 77 , 64 , 57 , 44 , 37 , 24 , 17 , 4 , 96 , 85 , 76 , 65 , 56 , 45 , 36 , 25 , 16 , 5 , 95 , 86 , 75 , 66 , 55 , 46 , 35 , 26 , 15 , 6 , 94 , 87 , 74 , 67 , 54 , 47 , 34 , 27 , 14 , 7 , 93 , 88 , 73 , 68 , 53 , 48 , 33 , 28 , 13 , 8 , 92 , 89 , 72 , 69 , 52 , 49 , 32 , 29 , 12 , 9 , 91 , 90 , 71 , 70 , 51 , 50 , 31 , 30 , 11 , 10 ) (100,81,80,61,60,41,40,21,20,1,99,82,79,62,59,42,39,22,19,2,98,83,78,63,58,43,38,23,18,3,97,84,77,64,57,44,37,24,17,4,96,85,76,65,56,45,36,25,16,5,95,86,75,66,55,46,35,26,15,6,94,87,74,67,54,47,34,27,14,7,93,88,73,68,53,48,33,28,13,8,92,89,72,69,52,49,32,29,12,9,91,90,71,70,51,50,31,30,11,10)

Motivation: After I established the bound, I tried to make the sums as close as possible. Two consecutive sums cannot be equal, so I made them differ by 1. The construction followed.

Oh that's what the problem meant.. I was confused about the notation xP

Mike Kong - 7 years, 6 months ago

Log in to reply

Yes, they recently edited the question to say "let { x 1 , x 2 , x 3 , x 1 00 } \{x_1, x_2, x_3, \cdots x_100\} be a permutation of { 1 , 2 , 3 , 100 } \{1, 2, 3, \cdots 100\} . Earlier, it said "let x i x_i be a permutation of { 1 , 2 , 3 , 100 } \{1, 2, 3, \cdots 100\} . When it was like this, I assumed that it meant what it says now, and luckily I was right.

I don't think I've ever seen it said like that because it is quite confusing that way.

Michael Tong - 7 years, 6 months ago

I have found the sums of the list you provided and it turns out the maximum sum is 506 not 505.

Hosam Hajjir - 7 years, 6 months ago

Log in to reply

My construction works; I might have made a mistake in the python program, although I don't see it. Could you show where it is 506?

Daniel Chiu - 7 years, 6 months ago
Trevor B.
Dec 3, 2013

The first thing to do is to translate the math symbols into something that is easy to conceptualize. The problem is asking for the smallest possible value of the maximum sum of 10 10 consecutive elements in any of the 100 ! 100! permutations of the first 100 100 positive integers.

After I figured that out, I thought that if a maximum sum was being taken, then the number 100 100 would probably be involved. The best way to minimize the sum of 100 100 and one of the first 99 99 positive integers is to use the number 1 1 . This gives a sum of 101 101 , and it is the minimum possible maximum sum of two consecutive elements over all of the permutations. I applied the same logic to a 98 98 -element sequence containing integers in the range [ 2 , 99 ] [2,99] and once again got a result of 101 101 for the minimum maximum sum of two consecutive elements over all permutations.

I continued using this logic for the problem and arrived at the set S 1 = { 100 , 1 , 99 , 2 , , n , 101 n , , 51 , 50 } S_1=\{100, 1, 99, 2, \ldots , n, 101-n, \ldots , 51, 50\} . However, another possible set such that x 2 k = 101 x 2 k 1 x_{2k}=101-x_{2k-1} when k k is a positive integer is S 2 = { 1 , 100 , 2 , 99 , , n , 101 n , , 50 , 51 } S_2=\{1, 100, 2, 99, \ldots , n, 101-n, \ldots, 50, 51\} . We must consider the maximum sums of these two sets. Something that needs to be done when taking maximum sums is considering sums that begin on x 2 k x_{2k} and \textit{and} sums that befin on x 2 k 1 x_{2k-1} . When you consider the maximum sums of the sequences, the following is found.

S 1 = { 100 , 1 , 99 , 2 , , n , 101 n , , 51 , 50 } 505 S_1=\{100, 1, 99, 2, \ldots , n, 101-n, \ldots , 51, 50\}\rightarrow505 (start on x 1 x_1 ) S 2 = { 1 , 100 , 2 , 99 , , n , 101 n , , 50 , 51 } 510 S_2=\{1, 100, 2, 99, \ldots , n, 101-n, \ldots , 50, 51\}\rightarrow510 (start on x 2 ) x_2)

The smaller one of these is 505 505 , so the answer to the problem is 505 \boxed{505}

So why does my original reasoning work? How did I come up with S 1 S_1 and S 2 S_2 ? Try to come up with a sequence of the sums of two consecutive elements of S 1 S_1 (called S + S_+ ). This sequence will be 50 50 repeated occurrences of the number 101 101 . We are trying to find if this is the minimal sum. If you switch two elements of S 1 S_1 , one element of S + S_+ will go up and another will go down. No matter what happens, S + S_+ will always have an average of its elements equal to 101 101 . If a local decrease of elements occurs to lower the local average by any amount, then the average of the rest of the elements will go up. There will always be a set of ten consecutive elements that will have an average greater than 101 101 if another set of ten consecutive elements has its average go down. So the average of elements x 2 k 1 x_{2k-1} and x 2 k x_{2k} will always be 101 101 . This would repeat 5 5 times, so the answer is 101 × 5 = 505 101\times5=\boxed{505}

Small correction: in the second-last sentence, it is not always elements x 2 k 1 x_{2k-1} and x 2 k x_{2k} . It is supposed to say this: in a sequence (within the parameters of the problem) that has the maximum sum of ten consecutive elements equal to 505 505 , each set of 10 10 elements will have exactly 5 5 pairs of integers that add up to 101 101 . I realized this after I saw Daniel's sequence.

Trevor B. - 7 years, 6 months ago
Praveen Agrawal
Dec 2, 2013

Think of the Permutation: {100, 1, 99, 2, 98, 3, 97, 4, ............. 51,50}.

Maximum sum of 10 consecutive terms in this permutation is 505.

Sum of positive integers from 1 to 100 = 5050

So we cannot reduce sum of 10 consecutive terms to less than 5050/10 = 505

Hence 505 is the minimum.

You also have to show that equality can occur.

Sreejato Bhattacharya - 7 years, 6 months ago

Exactly my solution!

Avi Eisenberg - 7 years, 6 months ago

If you try to reduce sum of any one decade(group of numbers having locations from 10n+1 to 10n+10; n=0 to 9) to less than 505, sum of at least one other decade will have to increase in order to keep the sum of 10 decades to be 5050.

Praveen Agrawal - 7 years, 6 months ago

Log in to reply

Yes, this just needs to be explained clearer in your solution. If you state that "By Pigeonhole principle, one of the 10 (decade) sums is at least 5050/10=505, so the minimum of the maximum is at least 505".

Calvin Lin Staff - 7 years, 6 months ago
Avi Eisenberg
Dec 5, 2013

The answer is 505. To establish an upper bound, just use 100 , 1 , 99 , 2 , 97 , 3 , . . . , 52 , 49 , 51 , 50 {100,1,99,2,97,3,...,52,49,51,50}

To establish a lower bound, partition the number into 10 groups of 10. Using Gauss's theorem sorry, inside joke:) they sum to 5050, which implies that at least one is greater than or equal to 505.

This clearly generalizes to any set size that's a multiple of 10.

Sujoy Roy
Dec 4, 2013

For some positive real numbers, min a v e r a g e m a x \min \le average \le max .

In the problem average of the set is 505 505 and all numbers are positive and distinct. Again cardinality of the set 100 100 is an even multiple of 10 10 (total number of terms taken at a time for the sum operation). So, minimum among the maximum values of consecutive ten numbers is 505 505 as the sum can not less than the average value. Answer is 505 \boxed{505} .

This is not complete since you must give a permutation satisfying 505.

Daniel Chiu - 7 years, 6 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...