Balti Tee 2023 · Ülesanne 20
Arvuteooria
Let be a positive integer. A German set in an square grid is a set of cells which contains exactly one cell in each row and column. Given a labelling of the cells with the integers from 1 to using each integer exactly once, we say that an integer is a German product if it is the product of the labels of the cells in a German set.
(a) Let . Determine whether there exists a labelling of an grid such that the following condition is fulfilled: The difference of any two German products is always divisible by 65 .
(b) Let . Determine whether there exists a labelling of a grid such that the following condition is fulfilled: The difference of any two German products is always divisible by 101.
Kui oled valmis
Ülevaatematerjal muutub kättesaadavaks järgmise päevaülesannete komplektiga.
Ülevaade
Teemad
Modulaararitmeetika
Lahendused
Lahendus
(a) No, there is no such labelling.
On the contrary, we show that for every labelling there exist two German products whose difference is not divisible by 65 . Suppose that an square grid is labelled with the numbers such that no number is used twice.
We can construct a German product that is divisible by 13 by choosing a German set that includes the cell with the label 13 and seven others in different rows and columns, but otherwise arbitrarily.
We can construct a German product that is not divisible by 13 as follows. Notice that only four labels are divisible by 13, namely , and 52 . These four labels are located in at most four rows; we denote the index set of these rows . Similarly, there are at least four columns that do not contain any of these four labels; we denote the index set of these columns . Since it is possible to choose cells of a German set from rows using only columns from . The remaining cells are chosen from the remaining rows accordingly to the definition, but otherwise arbitrarily. The resulting German product is not divisible by 13 since the German set avoids the cells whose labels are divisible by 13 .
The difference of the two German products is not divisible by 13, since one German product is divisible by 13 whereas the other one is not. Hence the difference is not divisible by 65 . (b) Yes, there is such a labelling.
For we define ; in other words, is the remainder of when divided by 101. Note that since no power of 2 is divisible by 101 . Hence for all .
We label the cells of the square grid with the numbers as follows:
More precisely, if we label the rows and columns of the chessboard by , then the cell with coordinates gets the label .
Note that and that . Hence for this labelling any rook product is congruent to
modulo 101. Hence the difference of any two German products is divisible by 101 for this labelling.
It remains to show that the are pairwise different. (In more elaborate language, we would say that 2 is a primitive root modulo 101.) To do this, we denote by the smallest positive integer such that . Using long division, we may write with non-negative integers and such that . By virtue of Fermat's little theorem we have
Since and is the smallest positive integer with , we must have . In other words, 100 is divisible by ; in other words, is a divisor of 100 .
We claim that . If this was not the case, we would have or , which implies that or . However , so that and .
Now assume that are positive integers with and . Then we have and . Since and 101 are coprime, it follows that and . This cannot be true, since , but is the smallest positive integer with . Hence .
We conclude that the numbers with are a hundred pairwise different numbers from the set , hence they are a permutation of the set as it was required.
Solution 2
Definition. Let be a prime. Consider an square grid of elements (for ), which are not necessarily distinct. We call it rooky, if all its German products are equal as elements in .
We will provide a classification of all rooky square grids. Of course, most of this is not necessary when writing down a solution to the given problem, but it may still be interesting...
Lemma: A square grid is rooky if and only if for all :
Proof. If we swap the rows of two cells in a German set and keep their columns, it turns one valid German set into another. When comparing their German products, we can ignore all labels of cells that were not moved. The remaining values are resp. for certain . This gives equality (1) for rooky square grids.
Conversely assume that (1) holds. Then we have to compare two arbitrary German products. But they can transformed into each other by a sequence of several swaps of two cells. Due to (1) the German product does not change at any of these steps, so the rook products of the original configurations are the same as well.
Lemma: A rooky square grid is uniquely determined by the elements of its first row and first column.
Proof. Indeed the previous lemma implies that
which determines uniquely because is a unit.
One can actually prove directly that the square grid obtained that way is rooky, but it is simpler to continue directly to
Proposition: Let and arbitrary elements. Then the square grid with
is rooky. Moreover any rooky square grid can be obtained this way.
Proof. The square grid with is rooky, because any German product has the value
Let us prove the converse: By the previous lemma, it suffices to find and that recreate the values of the first row and column. For this simply set and .
Proposition: For any prime , there exists a rooky square grid with only distinct elements.
Proof. Choose any primitive root . Then set and . This provides indeed a rooky square grid. The values in the square are . As we have chosen a primitive root, these are all distinct.
For and , this reproduces exactly the construction given in the previous solution.
Võistluse kontekst
Balti Tee tulemused 2023
10 võistkonda
- Keskmine tulemus
- 2,8 / 5
- 4 või 5 punkti
- 5 / 10
- Eesti
- 5 / 5
Punktijaotus
Kõigi võistkondade punktid
| Võistkond | Punktid |
|---|---|
| Germany | 5 / 5 |
| Sweden | 5 / 5 |
| Lithuania | 5 / 5 |
| Poland | 0 / 5 |
| Estonia | 5 / 5 |
| Latvia | 0 / 5 |
| Norway | 4 / 5 |
| Denmark | 2 / 5 |
| Finland | 2 / 5 |
| Iceland | 0 / 5 |