Skip to main content
OlympiadHQ

Browse · MathNet

Print

Bulgaria

Bulgaria number theory

Problem

Let be a positive integer and let

Find the remainder of divided by .
Solution
It is easy to see that . Then for any there exists a unique such that and . Since , then , i.e. . Moreover, implies that if . Then the numbers from can be divided into different pairs of the form and hence the wanted remainder is 1.
Final answer
1

Techniques

Inverses mod nGreatest common divisors (gcd)