Suppose $(X,\mathcal A,\mu,T)$ is a finite measure-preserving system. Then we define a new measure system $(X^{(K)},\mathcal A^{(K)},\mu^{(K)},T^{(K)})$ defined by $X^{(K)}=X\times \{1,2,...,K\}$ for any positive integer $K$, $\mu^{(K)}(A\times \{k\})=\dfrac{\mu(A)}{K}$ for $1\leq k\leq K$ and $A\in\mathcal A$, and define $T^{(K)}:X^{(K)}\to X^{(K)}$ by $T^{(K)}(x,n)=(x,n+1)$ if $n<K$ and $(Tx,0)$ if $n=K$.
Then one can check that even if $T$ is ergodic, $T^{(K)}$ is not totally ergodic.
Now suppose we have a finite measure preserving system $(Y,\mathcal C,\nu,S)$ which is not totally ergodic.
Question: Find if possible a measure system $(X,\mathcal A,\mu,T)$ such that $S$ is measurably isomorphic to the system $(X^{(K)},\mathcal A^{(K)},\mu^{(K)},T^{(K)})$ for some positive integer $K$.
I get it that my $K$ will be the least positive integer $n$ for which $S^n$ is NOT ergodic. But I cannot define my $X$. Is it true that we will always get such an $X$?