Proof

First we show that every g in Sn can be written as a product of disjoint cycles (the existence). Then we prove the uniqueness of this product. Both parts are proved by induction.

Existence.

Uniqueness.