As promised, this is the th instalment, following the 3rd.
Let us start with the solution to the second part of the problem that was left to the reader:
So remember that is smart. She wants to avoid the above case where she loses. So she says: "Aha! I only write , in that way, I will win!" Well, sad life A, because you don't. Because if A only writes "0s", using the same argument above we can in fact make B write times and then times , which after interpreting in binary is so B wins again. □
Recall the method of infinite descent or more commonly known as monovariants introduced in the 2nd instalment.
Let us now apply infinite descent to a much more difficult problem.
Example 3: (IMO 1986) We assign an integer to each vertex of a regular pentagon, so that the sum of all of them is positive. We are allowed to perform a transformation if three consecutive vertices have assigned numbers respectively and , if so, then we can change the numbers to . This process can be continued as long as one of the numbers is negative. Does this process always come to an end?
Solution: Don't freak out that this is from IMO.
We label the pentagon with as shown.
So we need to find a certain invariance. In fact the only "basic" thing we have is the sum of all numbers. Also notice that so the sum remains constant. This does not tell us whether the process ends. We need something that decreases. Now from the sum, it is certainly quite motivated to consider the average. So if every number is very close to the average then none would be negative and the process would end. So we want to search for something that will increase as the numbers are different to the average. Naturally, we might think of but the absolute value can be quite unpredictable at times, so we consider the "nicer" alternative squares .
So referring back to the notation at the beginning, consider a function . Clearly . Suppose WLOG that and we do the transformation in the problem. Then:
Since and we assumed that , we have that so decreases at each step. By infinite descent we are done. □
Question for the reader: Can you find a monovariance using as sugeested in the solution above?
Hint: Consider including pairwise sums then testing and etc.
Look forward to the next post :)
Easy Math Editor
This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.
When posting on Brilliant:
*italics*
or_italics_
**bold**
or__bold__
paragraph 1
paragraph 2
[example link](https://brilliant.org)
> This is a quote
\(
...\)
or\[
...\]
to ensure proper formatting.2 \times 3
2^{34}
a_{i-1}
\frac{2}{3}
\sqrt{2}
\sum_{i=1}^3
\sin \theta
\boxed{123}
Comments
Here is an alternate solution for the general case of n-gon from "Mathematical Puzzles: A Connoisseur's Collection" by Peter Winkler. This solution was devised by Bernard Chazelle. I quote:
Let x(0),…,x(n−1) be the labels, summing to s>0, with indices taken modulo n. Define the doubly infinity sequence b(⋅) by b(0)=0 and b(i)=b(i−1)+x(i(modn)). The sequence b(⋅) is not periodic, but periodically ascending: b(i+n)=b(i)+s.
If x(i) is negative, b(i)<b(i−1), and flipping x(i) has the effect of switching b(i) with b(i−1), so that they are now in ascending order. It does the same for all pairs b(j), b(j−1) shifted from these by multiples of n. Thus, flipping labels amounts to sorting b(⋅) by adjacent transpositions!
To track the progress of this sorting process, we need a finite parameter P that measures the degree to which b(⋅) is out of order. To obtain this, let i+ be the number of indices j>i for which b(j)<b(i), and i− the number of indices j<i for which b(j)>b(i). Note that i+ and i− are finite and depend only on i(modn). Observe also that i=0∑n−1i+=i=0∑n−1i−; we let this sum be our magic parameter P.
When x(i+1) is flipped, i+ decreases by 1, and every other j+ in unchanged. Thus, P does down by exactly 1. When P hits 0, the sequence is filly sorted, so all the labels are non-negative and the process terminates.
We have shown more than asked: The process terminates in exactly the same number (P) of steps regardless of choices, and moreover, the final configuration in independent of choices as well! The reason is that there is only one sorted version of b(⋅); entry b(i) from the original sequence must wind up in position i+i+−i− when the sorting is complete. □.
I don't understand this solution, but I hope I have enlightened all of you who do.
I don't really understand the solution of the problem, from the last note. Wasn't A going to win if it's possible to write the sum as the sum of two perfect squares? If they end with 21, as you suggest in the solution(?), wouldn't A win?
Log in to reply
I'm sorry, but how is 21 a sum of 2 perfect squares?
Log in to reply
Of course, now afterwards it´s hard to figure out how i thougt, but probably i considered 21 as a prime number, and then noticed that it was congruent to 1 modulo 4. My bad, sorry.