Unique factorization theorem: Let RR be a . Every nonzero element of RR that is not a can be written as a finite product of . Moreover, if

r=up1pm=vq1qnr = u\,p_1\cdots p_m = v\,q_1\cdots q_n

with u,vu,v units and pi,qjp_i,q_j irreducible, then m=nm=n and after reordering, each pip_i is to qiq_i. In particular, irreducibles are in a UFD.

Remarks

This theorem is the foundational reason gcd/lcm notions behave well in UFDs and underlies factorization results in polynomial rings via Gauss-type arguments.