Let be a positive integer and let
Find the remainder of divided by .
Let be a positive integer and let
Find the remainder of divided by .
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.