Partitions of elements in a monoid and its applications to systems theory