I need to show that if $R$ is an integral domain (containing three ideals: $\{0\}$, $I$ and $R$), then $a,b\in I\Rightarrow ab=0$.
I know that since $R$ is an integral domain, $ab=0\Leftrightarrow a=0$ or $b=0$, but does this mean that $a,b\in I\Rightarrow a=0$ or $b=0$, and if so, how can I show this?
We need to show that no integral domain has exactly three ideals. Indeed, this follows from the following observation. Let $a \in R$ be non-zero and not a unit. Then the ideal generated by $a$ is strictly contained in the ideal generated by $a^2$ (since if $a^2 = ba$ for a unit $b$ we have that $a = b$ is a unit, contradiction).