another question

You can first show it for two numbers $a,b$ and then use induction to show it for arbitrary sets of pairwise relatively prime integers.