Proof (disjoint cycles)

The action $\gen\sigma \actson X=\set{1,2,\ldots,n}$ partitions $X$ into the orbits $$ X = \gen\sigma i_1 \union \gen\sigma i_2 \union \ldots \union \gen\sigma i_k. $$

Letting $n_j = |\gen\sigma i_j|$ for all $j=1,2,\ldots, k$, $$ \sigma = \pmat{i_1 & \sigma i_1 & \ldots & \sigma^{n_1-1} i_1} \pmat{i_2 & \sigma i_2 & \ldots & \sigma^{n_2-1}i_2 } \ldots \pmat{i_k & \sigma i_k & \ldots \sigma^{n_k-1} i_k}. $$ These are disjoint cycles since orbits partition. Hence such expression exists.

For uniqueness, note that the only choices we made were