I'm stuck on a question since yesterday which on the face of it looks really elementary to me but I seem to be missing a point.
Let $R$ be a commutative ring with unity which has exactly three ideals, $\{0\}, I$ and $R$. If $a,b \in I$ show that $ab=0$.
What I've tried:
I have shown that every element which is not in $I$ is a unit. Further since $I \neq R$, therefore element of $I$ is a non-unit.
Suppose $ab \neq 0$. Then $I=\langle ab \rangle = \langle a \rangle\langle b \rangle=\langle a \rangle\langle a \rangle = I^2$.
I tried to get a contradiction from this but couldn't reach anywhere.
Any hints are appreciated.
Edit: I have only done a basic course on rings and fields, so I'm not familiar with "Nakayama Lemma" and such things.