I know that the ring of algebraic integers can be an answer because this ring has no irreducible elements.
So, is there an integral domain with nonempty set of irreducible elements and an element having no factorization into irreducibles?
I know that the ring of algebraic integers can be an answer because this ring has no irreducible elements.
So, is there an integral domain with nonempty set of irreducible elements and an element having no factorization into irreducibles?
Consider $R=\{P \in \mathbb{Q}[X],\, P(0) \in \mathbb{Z}\}$. $R$ has irreducible elements, such as $X^2+1$. However, $X$ has no factorisation into a product of irreducible elements. Indeed, any factorisation of $X$ is of the form $n \cdot \frac{X}{n}$, and $\frac{X}{n}$ is never irreducible (it can be written as $\frac{X}{(n+1)!} \frac{(n+1)!}{n}$ and none of the factors are units).