Skip to main content
OlympiadHQ

Browse · MathNet

Print

SAUDI ARABIAN MATHEMATICAL COMPETITIONS

Saudi Arabia counting and probability

Problem

Let be a prime number and a table of size which is divided into unit cells. The way to color some cells of this table is called nice if there are no four colored cells that form a rectangle (the sides of rectangle are parallel to the sides of given table).

1. Let be the number of colored cells in some nice coloring way. Prove that . Denote this number as .

2. Prove that all ordered tuples with and can be partitioned into sets such that two tuples and belong to the same set if and only if for some .

3. For , if there exist and such that , we color the cell of the given table. Prove that this coloring way is nice with colored cells.
Solution
1) We will count value , the number of the tuples with column and row in relation intersect at the colored cell.

First way, denote as the number of colored cells on the th row, then

Second way, choose two columns among columns, we have ways. And then, we have at most 1 row that cuts at two colored cells (since there are no rectangle), then

Notice that . Hence, we have or .

2) Consider the tuples in which and , then we have tuples in total.

Since two tuples and are considered to belong to the same set if and only if such that . We have ways to choose , then sets satisfy the given condition.

3) From the way to color the table, one can check that on each row, there are exactly colored cells. Indeed, we need to prove that has exactly solutions that do not belong to the same set .

There are pairs and for each pair, there is a unique number such that is divisible by . Each set has solutions, then there are solutions that do not belong to the same set. Multiply this number with the number of columns, we have verified that there are colored cells on the table.

Then, we shall prove that there are no rectangles. For two tuples and that do not belong to the same set, we need to prove that the following system of equations has no more than one solution: Without loss of generality, we can suppose that is not divisible by or , then for all , there is exactly one value such that On the other hand, there are values and we do not consider the tuple , then there are at most solutions.

Note that if is a solution, then so is , then the above system has no more than one solution.

This finishes our proof and .
Final answer
(p+1)(p^2+p+1)

Techniques

Counting two waysColoring schemes, extremal argumentsCauchy-SchwarzInverses mod nVectors