For non-zero integers $m$ and $n$, prove $(m) \subset (n)$ iif $n$ divides $m$, where $(n)$ is the principal ideal. My attempt is following.
For non-zero integers $m$ and $n$, assume that $(m) \subset (n)$. Then, $mk \in (m)$ is also in $(n)$. This means that $\exists nh$ such that $mk = nh.$ Then, we have $m=nhk^{-1}.$
Assume that $n$ divides $m$ for non-zero $n$ and $m$. Then, $n = mk$ and the principal ideal of $n$ will be $(n)=\{ mkr\ |\ n,r \in \mathbb{Z} \}.$ Since $kr \in \mathbb{Z}$, clearly $(m) \subset (n)$. is this ok proof?
Let $m,n\in\Bbb Z$. We wish to show that $\langle m\rangle\subset\langle n\rangle$ if and only if $n\mid m$.
First, suppose that $\langle m\rangle\subset\langle n\rangle$. Since $m\in\langle m\rangle$ it follows that $m\in\langle n\rangle$. That is, there exists a $k\in\Bbb Z$ such that $nk=m$. Hence $n\mid m$.
Conversely, suppose that $n\mid m$. To show that $\langle m\rangle\subset\langle n\rangle$, let $km\in\langle m\rangle$. Then, since $n\mid m$, there exists an $\ell\in\Bbb Z$ such that $\ell n=m$. It follows that $km=k\ell n\in\langle n\rangle$. Hence $\langle m\rangle\subset\langle n\rangle$.