Let be the number of eggs. If we remove at a time and find left over then dividing by a gives remainder of . So . We get:
Now to use the Chinese remainder theorem we need the numbers we are modding by to be pairwise relatively prime. So we need to get rid of some of the equations. Whenever (3) is true (1) will automatically be true, so we can drop (1). (5) implies (2), so drop (2). As for equations (3) and (5) we have . Then note that from 1 to 12 only the numbers 3, 7, and 11 satisfy (3); 5 and 11 satisfy (5). 11 is the only one that does both so you can replace those two with . That gives:
Which can be expressed as
Answer: the smallest number of eggs is 119.
Comments