Invariance
Invariance
Invariance
Suggested readings
• Evan Chen’s
– advice On reading solutions, available at https://blog.evanchen.
cc/2017/03/06/on-reading-solutions/.
– Advice for writing proofs/Remarks on English, available at https:
//web.evanchen.cc/handouts/english/english.pdf.
• Evan Chen discusses why math olympiads are a valuable experience for
high schoolers in the post on Lessons from math olympiads, available at
https://blog.evanchen.cc/2018/01/05/lessons-from-math-olympiads/.
§1 Invariance principle
Example 1.1 (Moscow MO 1959 Grade 7 Day 2 P5). Consider n numbers
x1 , . . . , xn , each equal to 1 or −1. Prove that if
x1 x2 + x2 x3 + · · · + xn−1 xn + xn x1 = 0, (1)
then n is divisible by 4.
x1 , x2 , . . . , xn , x1 ,
whose signs differ. Since the initial and the final term of the above sequence are
equal, their signs remain unchanged, and hence the number of the alterations
of the above sequence has to be an even number. Since m is even, it follows
that n is divisible by 4. ■
Some style files, prepared by Evan Chen, have been adapted here. 1
2 June 2024 https://jpsaha.github.io/MOTP/
εi = xi xi+1 .
Note that
Note that to arrive at the above, we did not use the fact that n is even. Moreover,
the prior argument tells us that any (finite) sequence of ±1’s, with equal initial
and final terms, have an even number of alterations. Hence, n is a multiple of 4.
y1 y2 y3 y4 + y2 y3 y4 y5 + · · · + yn y1 y2 y3 ,
and the new sum obtained by replacing ym by −ym in the above sum,
10 The material posted here and at this blog by Evan Chen are quite useful.
References Typos may be reported to [email protected].
Proof of the Claim. In the above cyclic sum, ym appears in precisely four
summands. Since the remaining summands are unchanged, it suffices to show
that the sum of those four summands (denoted by A), and the new sum
obtained by replacing ym by −ym in A (to be denoted by B), leave the same
remainder upon division by 4.
In fact, it reduces to showing that if A is a sum of four terms where each
term is equal to 1 or −1, then A and −A leave the same remainder upon
division by 4, or equivalently, their difference, which is 2A is a multiple of 4,
which is equivalent to saying A is even.
If all the terms of A are equal, then A is even. If three of the terms of A
are 1 and the remaining one is −1, then A is even. Moreover, if two of the
terms of A are 1 and the other twos are −1, then A is even. Further, if only
one term of A is 1 and the others are equal to −1, then A is also even. The
Claim follows.
a1 a2 a3 a4 + a2 a3 a4 a5 + · · · + an a1 a2 a3 ,
we continue to replace all the ai ’s which are equal to −1 by 1’s. In the first
step, S is divisible by 4. By the above Claim, at the end of each step, the new
sum obtained is also divisible by 4. At the very last step, the sum will change
to n, and hence, n is divisible by 4. ■
For more exercises on the invariance principle, we refer to [Eng98, Chapter
1].
References
[Eng98] Arthur Engel. Problem-solving strategies. Problem Books in Math-
ematics. Springer-Verlag, New York, 1998, pp. x+403. isbn: 0-387-
98219-1 (cited pp. 10, 11)
Some style files, prepared by Evan Chen, have been adapted here. 11