Skip to main content
OlympiadHQ

Browse · MATH

Print

jmc

number theory intermediate

Problem

A Chinese emperor orders a regiment of soldiers in his palace to divide into groups of . They do so successfully. He then orders them to divide into groups of , upon which of them are left without a group. He then orders them to divide into groups of , upon which are left without a group. If the emperor estimates there are about two hundred soldiers in the regiment, what is the most likely number of soldiers in the regiment?
Solution
Let be the number of soldiers. According to the problem statement, it follows that By the Chinese Remainder Theorem, there is an unique residue that can leave, modulo ; since , it follows that . Also, we know that is divisible by , so by the Chinese Remainder Theorem again, it follows that . Writing out the first few positive values of , we obtain that , and so forth. The closest value of is .
Final answer
236