Let { x 1 , x 2 , … , x 1 0 0 } be a permutation of { 1 , 2 , … 1 0 0 } . What is the minimum, over all permutations, of i = 1 to 9 1 max x i + x i + 1 + x i + 2 + … + x i + 9 ?
Note: A permutation is a rearrangement of all of the numbers in the sequence.
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.
First, we establish a bound. Consider the 10 sets { x 1 , x 2 , x 3 , ⋯ , x 1 0 } { x 1 1 , x 1 2 , x 1 3 , ⋯ , x 2 0 } ⋯ { x 9 1 , x 9 2 , x 9 3 , ⋯ , x 1 0 0 } All 100 elements are distinct, and they add to 1 + 2 + 3 + ⋯ + 1 0 0 = 5 0 5 0 , so the minimum of the maximum element sum of one of these sets is 1 0 5 0 5 0 = 5 0 5 . Therefore, the answer is at least 505.
Now, we show that 505 is achievable. Consider the 10 ordered sets S 1 S 2 S 0 = { 1 0 0 , 9 9 , 9 8 , ⋯ , 9 1 } = { 8 1 , 8 2 , 8 3 , ⋯ , 9 0 } ⋯ = { 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 1 0 }
Consider the permutation where the elements with i ≡ k ( m o d 1 0 ) are, in order, the elements of S k . We claim that this permutation has a maximum sum of 10 consecutive elements of 505. First, note the first 10 elements are 1 0 0 , 8 1 , 8 0 , 6 1 , 6 0 , 4 1 , 4 0 , 2 1 , 2 0 , 1 , with a sum of 5 0 5 . Now, removing the 1st element and adding the 11th, we remove the 1st element of 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 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 5 0 5 is indeed achievable.
To hopefully make things more clear, the permutation is (python, not written out) ( 1 0 0 , 8 1 , 8 0 , 6 1 , 6 0 , 4 1 , 4 0 , 2 1 , 2 0 , 1 , 9 9 , 8 2 , 7 9 , 6 2 , 5 9 , 4 2 , 3 9 , 2 2 , 1 9 , 2 , 9 8 , 8 3 , 7 8 , 6 3 , 5 8 , 4 3 , 3 8 , 2 3 , 1 8 , 3 , 9 7 , 8 4 , 7 7 , 6 4 , 5 7 , 4 4 , 3 7 , 2 4 , 1 7 , 4 , 9 6 , 8 5 , 7 6 , 6 5 , 5 6 , 4 5 , 3 6 , 2 5 , 1 6 , 5 , 9 5 , 8 6 , 7 5 , 6 6 , 5 5 , 4 6 , 3 5 , 2 6 , 1 5 , 6 , 9 4 , 8 7 , 7 4 , 6 7 , 5 4 , 4 7 , 3 4 , 2 7 , 1 4 , 7 , 9 3 , 8 8 , 7 3 , 6 8 , 5 3 , 4 8 , 3 3 , 2 8 , 1 3 , 8 , 9 2 , 8 9 , 7 2 , 6 9 , 5 2 , 4 9 , 3 2 , 2 9 , 1 2 , 9 , 9 1 , 9 0 , 7 1 , 7 0 , 5 1 , 5 0 , 3 1 , 3 0 , 1 1 , 1 0 )
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
Log in to reply
Yes, they recently edited the question to say "let { x 1 , x 2 , x 3 , ⋯ x 1 0 0 } be a permutation of { 1 , 2 , 3 , ⋯ 1 0 0 } . Earlier, it said "let x i be a permutation of { 1 , 2 , 3 , ⋯ 1 0 0 } . 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.
I have found the sums of the list you provided and it turns out the maximum sum is 506 not 505.
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?
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 1 0 consecutive elements in any of the 1 0 0 ! permutations of the first 1 0 0 positive integers.
After I figured that out, I thought that if a maximum sum was being taken, then the number 1 0 0 would probably be involved. The best way to minimize the sum of 1 0 0 and one of the first 9 9 positive integers is to use the number 1 . This gives a sum of 1 0 1 , and it is the minimum possible maximum sum of two consecutive elements over all of the permutations. I applied the same logic to a 9 8 -element sequence containing integers in the range [ 2 , 9 9 ] and once again got a result of 1 0 1 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 = { 1 0 0 , 1 , 9 9 , 2 , … , n , 1 0 1 − n , … , 5 1 , 5 0 } . However, another possible set such that x 2 k = 1 0 1 − x 2 k − 1 when k is a positive integer is S 2 = { 1 , 1 0 0 , 2 , 9 9 , … , n , 1 0 1 − n , … , 5 0 , 5 1 } . 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 and sums that befin on x 2 k − 1 . When you consider the maximum sums of the sequences, the following is found.
S 1 = { 1 0 0 , 1 , 9 9 , 2 , … , n , 1 0 1 − n , … , 5 1 , 5 0 } → 5 0 5 (start on x 1 ) S 2 = { 1 , 1 0 0 , 2 , 9 9 , … , n , 1 0 1 − n , … , 5 0 , 5 1 } → 5 1 0 (start on x 2 )
The smaller one of these is 5 0 5 , so the answer to the problem is 5 0 5
So why does my original reasoning work? How did I come up with S 1 and S 2 ? Try to come up with a sequence of the sums of two consecutive elements of S 1 (called S + ). This sequence will be 5 0 repeated occurrences of the number 1 0 1 . We are trying to find if this is the minimal sum. If you switch two elements of S 1 , one element of S + will go up and another will go down. No matter what happens, S + will always have an average of its elements equal to 1 0 1 . 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 1 0 1 if another set of ten consecutive elements has its average go down. So the average of elements x 2 k − 1 and x 2 k will always be 1 0 1 . This would repeat 5 times, so the answer is 1 0 1 × 5 = 5 0 5
Small correction: in the second-last sentence, it is not always elements x 2 k − 1 and x 2 k . 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 5 0 5 , each set of 1 0 elements will have exactly 5 pairs of integers that add up to 1 0 1 . I realized this after I saw Daniel's sequence.
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.
Exactly my solution!
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.
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".
The answer is 505. To establish an upper bound, just use 1 0 0 , 1 , 9 9 , 2 , 9 7 , 3 , . . . , 5 2 , 4 9 , 5 1 , 5 0
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.
For some positive real numbers, min ≤ a v e r a g e ≤ m a x .
In the problem average of the set is 5 0 5 and all numbers are positive and distinct. Again cardinality of the set 1 0 0 is an even multiple of 1 0 (total number of terms taken at a time for the sum operation). So, minimum among the maximum values of consecutive ten numbers is 5 0 5 as the sum can not less than the average value. Answer is 5 0 5 .
This is not complete since you must give a permutation satisfying 505.
Problem Loading...
Note Loading...
Set Loading...
Consider the ten sums x 1 + ⋯ + x 1 0 , x 1 1 + ⋯ + x 2 0 , … , x 9 1 + ⋯ + x 1 0 0 . The 100 terms in these sums are disjoint, and their sum is ∑ i = 1 1 0 0 x i = 5 0 5 0 . It follows by Pigeonhole Principle, that one of these sums is at least the average, that is, 1 0 5 0 5 0 = 5 0 5 .
We now prove that 5 0 5 is achievable. Draw a 1 0 by 1 0 table T as follows:
1 0 0 9 9 9 8 9 7 9 6 9 5 9 4 9 3 9 2 9 1 8 1 8 2 8 3 8 4 8 5 8 6 8 7 8 8 8 9 9 0 8 0 7 9 7 8 7 7 7 6 7 5 7 4 7 3 7 2 7 1 … … … … … … … … … … 2 0 1 9 1 8 1 7 1 6 1 5 1 4 1 3 1 2 1 1 1 2 3 4 5 6 7 8 9 1 0
Take this table and take the x i going right, in order, for every row. That is, our sequence is now 1 0 0 , 8 1 , 8 0 , … , 2 0 , 1 , 9 9 , 8 2 , 7 9 , … , 1 9 , 2 , 9 8 , … . I claim that this works. Let s i = x i + ⋯ + x i + 9 .
We can verify that the first initial sum s 1 = 5 0 5 . But note that by design, s i + 1 = s i ± 1 , with ± constantly alternating. It follows that all sums are s i = 5 0 5 for i odd and s i = 5 0 4 for i even, and we're done.