Let $n \geq 4$ be an even integer and let $S= \{1,2,\ldots,n\}$. Fix an element $r \in \{1,2,\ldots, \frac{n}{2}-1\}$. Define a map $f: S \longrightarrow S$ by $f(t)=s$, for all $t \in S$, where $s$ is the remainder when $t+r$ is divided by $n$.
(1) Show that $f$ is a bijection (i.e. $f$ is a permutation on $\{1,2,\ldots,n\}$).
(2) Show that $f$ can be written as a product of $k$ disjoint cycles, where $k=gcd~(n,r)$.
(3) What is the length of each of these cycles ?
I guess that the length of each cycle is $m$, where $n=mk$; But couldn't achieve the proofs. Any suggestions in this regard will be useful.