In mathematics, a unit in a ring R is an element u such that there is v in R with
uv = vu = 1R.
That is, u is an invertible element of the multiplicative monoid of R. The units of R form a group U(R) under multiplication, the group of units of R.
The orbits of U(R) acting on R by multiplication are called sets of associates; in other words there is an equivalence relation on R called associatedness such that
r ~ s
means that there is a unit u with r = us. For example in the ring Z of integers n and −n are associates.