I'm working on an if and only if proof for discrete math and need help.
Let $c$ and $d$ be integers and let $C=\{x\in\mathbb{Z}:x\mid c\}$ and $D=\{x\in\mathbb{Z}:x\mid d\}$. Prove $C\subseteq D$ if and only if $c\mid d$.
How do I show if $C\subseteq D$, then $c\mid d$?
Or, how do I show if $c\mid d$ then $C\subseteq D$?
Hint:
We say that $a$ divides $b$ or $a | b$ iff $a = nb$, where n is an integer.
We say that $C \subset D$ iff every $c \in C$ is also in $D$.
We can prove that $C \subset D$ by demonstrating that an arbitrary $c \in C$ is in $D$.
Final hint, $c$ is divisible by $c$ and thus belongs in $C$.