Let $a,b,c\in \mathbb{Z}$, such that $a$ and $b$ are relatively prime, and both $a$ and $b$ divide $c$. Prove that in this case $ab$ divides $c$. Find all numbers such that $a$ and $b$ divide $c$ but $ab$ does not.
I proved the first part easily. For the second part, is the answer that any two $a,b\in \mathbb{Z}$ which are not relatively prime, their product will not divide $c$?
I don't have the answer but I have an example that disproves your answer to the second part.
Let a = 3, b = 6 and c = 18.
18 = 0 mod 3
18 = 0 mod 6
18 = 0 mod 18
3, 6 are not relatively prime; but their product still divides 18.