Exercise: Show that every ideal $I$ of $\mathbb{Z}$ is principal.
Attempt: Since $I$ is principal, it can be generated by one element. Also, my tutor said that if $I \subset \mathbb{Z}$ is an ideal and we consider any $a \in I-\{ 0 \}$ with $|a|$ minimal, we need to show that $a$ generates $I$ (which I have trouble understanding). Thank you.