One form of the [[structure theorem for finitely generated modules over a principal ideal domain states that if is a PID and a finitely generated -module, then
for some and nonzero elements for which . The nonnegative integer is called the free rank or Betti number of the module , while are the invariant factors of and are unique up to associatedness.