I came across a question which is as follows:
Find out the smallest number which leaves remainder of 1 when divided by 2, 3, 4, 5, 6 but divided by 7 completely.
What I did is given below step wise.
Step 1- Find out the LCM of 2, 3, 4, 5, 6 which is 60.
Step 2- Add 1 to 60 which is 61.
Step 3- Multiple 61 by 7 repeatedly till it fulfills the condition that remainder should be 1.
Step 4- I got the answer 146461 which seems to correct.
So now my question is:
1) Is this answer correct? If yes how to verify that this is smallest number which fulfills above condition?
2) I think this is not the best way to do this question. So Can anyone give a better way to solve this problem?
Thanks in advance
You definitely need $n\equiv 1\pmod {60}$ and $n\equiv 0\pmod 7$. So the trick is to apply the Chinese remainder theorem. Solve $60x+7y=1$ with $(x,y)=(2,-17)$.
Then $n\equiv 1\cdot 7\cdot (-17)+0\cdot 60\cdot 2\pmod{420}$, or $n\equiv -119\pmod{420}$. The smallest such positive number is $420-119=301$.