Skip to main content
OlympiadHQ

Browse · MathNet

Print

Japan Mathematical Olympiad

Japan counting and probability

Problem

How many 25-tuples of non-negative integers are there which satisfy the following identity?

problem
Solution
29900 Let . Then, the given identity can be rewritten as:

26 integers add up to 0, and the sum of their squares equals 4. Therefore, each of these 26 numbers can only take value in . If there is one of these 26 numbers taking value , then all other numbers must be 0, but then the sum of all the 26 numbers cannot be equal to 0, contrary to our assumption. Therefore, each of these 26 numbers must take 0 or . Since the sum of all these numbers is 0 and the sum of all the squares is 4, we can conclude that there are exactly two 1's and two -1's among them and all others must be 0. Furthermore, since and are non-negative integers, we see that among the 26 numbers the numbers 1 and -1 can appear only in the order of -1, -1, 1, 1 or -1, 1, -1, 1. If we put these two 1's and two -1's among 26 possible spots keeping one of the above two orders, then we end up with a 25-tuple satisfying the requirement of the problem. For each of the two orders for the appearance of 1 and -1, there are ways of choosing 4 spots for to go in, and therefore, there are 25-tuples satisfying the condition of the problem.
Final answer
29900

Techniques

Invariants / monovariantsIntegers