This problem comes from this commutative algebra problem
Let $R$ be a commutative ring with identity, $I$ is a finite generated ideal of $R$ such that $I^2=I$, then exists $e\in R$ such that $I=Re$.
This problem can be proved using the Nakayama lemma, but the condition for finite generated is necessary? If I isn't finitely generated, does the conclusion still hold? follow
Let $R$ be a commutative ring with identity, $I$ is an ideal of $R$ such that $I^2=I$, then exists $e\in R$ such that $I=Re$.
How to prove this? Or there is a counter-example to disprove.