Question 2Let an odd integer $k\gt 1$ be given. For each positive integer $n$, define $f(n)$ to be the largest nonnegative integer such that $k^n-1$ is divisible by $2^{f(n)}$. Determine a formula for $f(n)$ in terms of $k$ and $n$.