Let be an integral domain. We say that an element is unit if it is invertible. A non-unit is called irreducible if it can not be represented as a product of two non-units.
A commutative integral domain is a unique factorization domain if every non-unit has a factorization as product of irreducible non-units and this decomposition is unique up to renumbering and rescaling the irreducibles by units.