Skip to main content
OlympiadHQ

Browse · MathNet

Print

The 35th Japanese Mathematical Olympiad

Japan number theory

Problem

Determine how many integers between and (inclusive) have the property that the remainders upon division by , , , , and are all distinct.
Solution
Let be an integer with , and for each integer with , let denote the remainder when is divided by . We require that be pairwise distinct. Since , in particular can only be or .

Case 1: Assume . Then is even, so , and forces . Similarly and force , which in turn gives . Finally forces . Hence the only possible tuple is which, by the Chinese remainder theorem, holds precisely when .

Case 2: Assume . Then is odd, so , and forces . Similarly and force , which in turn gives . Finally forces . Hence the only possible tuples are which, by the Chinese remainder theorem, hold precisely when or .

Therefore it suffices to count the integers between and whose remainder modulo is , , or . There are , , and such integers, respectively. Hence the total number is .
Final answer
49

Techniques

Chinese remainder theoremLeast common multiples (lcm)