A non-UFD such that $a^2 \mid b^2$ does not lead to $a\mid b$

122 Views Asked by At

Is there any non-UFD that is a commutative ring such that $a^2 \mid b^2$ does not always lead to $a\mid b$?

It would be preferable if examples are something that does not involve monomials/polynomials, and there are some integer parts in the non-UFD (for example, gaussian integers have integer parts, though gaussian integer is UFD).

2

There are 2 best solutions below

1
On

Let $\,a = 2,\ b=\sqrt{12}\,$ in $\,\Bbb Z[\sqrt{12}]$

1
On

Let $a=4$, $b=8$ in $4{\bf Z}$.