Skip to main content
OlympiadHQ

Browse · MathNet

Print

Mongolian Mathematical Olympiad

Mongolia number theory

Problem

Let , and be integers. If and are divisible by , then prove that is also divisible by .
Solution
Let and be divisible by .

So, We want to show that

Let us consider the three expressions:

1. 2. 3.

Let us add the first two congruences:

Now, add to both sides: But this is not directly helpful. Instead, let's try to express and in terms of .

From the first congruence: If , then .

Similarly, from the second congruence: If , then .

Now, consider : Substitute and from above:

Let us try to use symmetry. Notice that the expressions are cyclic in .

Let us consider the sum: But this is not directly helpful.

Alternatively, let us try to use the fact that , since .

Let us try to use the following trick:

Let . Given that and , prove that .

Let us try to subtract the two congruences: So, either or .

Case 1:

Then .

Plug into : So , so .

Plug into : So , but , contradiction.

So , so , i.e., .

Now, consider . But , so . So .

Recall that and are both modulo . But , is arbitrary.

But from , : But is arbitrary, so for this to be true for all , and , but , so this only works for a specific .

But since , .

But from , : If , .

Now, . So .

But , so But , so . So .

But from , , so .

But since and are both modulo , and the only possible case is , so .

Therefore, is divisible by .

Conclusion: If and are divisible by , then is also divisible by .

Techniques

Inverses mod n