Let $f:\mathbb{N}\to\mathbb{N}$ be defined as $f(1)=1$ and if $n=\prod_{r=1}^{k}p_r^{\alpha_r}$ is the prime decomposition of $n$ then: $$ f\left(n\right)=\prod_{r=1}^{k}(p_r-1)^{\alpha_r} $$ Let $\sigma:\mathbb{N}\to\mathbb{N}$ be defined as the function which associates each number with the number of iterations of $f$ it takes until we reach $1$, i.e: $$ f^{(\sigma(n)-1)}(n)\neq 1\\ f^{(\sigma(n))}(n)= 1 $$ Prove that $\sigma(n)\le \lceil\log_2(n)\rceil$.
I actually have no idea how to solve this, so any help would be greatly appreciated.
Hint. Look what happens to the size of the prime divisors of a number when applying $f$.