Let $m, n \in \mathbb{Z}_+$ with $n > 2$, and let $\frac{n^m-1}{n-1}$ be divisible by $17$. Show that either $m$ is even:$ m \equiv 0 \mod 17$ and $n \equiv 1 \mod 17$. Find all possible values of $n$ in the cases when $m$ is even but not divisible by $4$, or divisible by $4$ but not divisible by $8$.
So far, I have done this: First, let's assume that $n \equiv 1 \mod 17$. Also, we know that we can write
$$\frac{n^m-1}{n-1} = \sum_{i = 0}^{m-1} n^i.$$
As $n \equiv 1 \mod 17 \implies n^i \equiv 1 \mod 17$ and so $\sum_{i = 0}^{m-1} n^i \equiv \underbrace{1 + 1 + \cdots + 1} \equiv m$.
Also, we know that $\sum_{i = 0}^{m-1} n^i \equiv 0 \mod 17 \implies m \equiv 0 \mod 17$.
Now, let's assume that $n \not\equiv 1 \mod 17$. Then, $\frac{n^m - 1}{n - 1}$ is divisible by $17$ if $n^m - 1$ is divisible by $17$, i.e $n^m - 1 \equiv 0 \mod 17 \implies n^m \equiv 1 \mod 17$. Fermat's little theorem tells us that $n^{p-1} \equiv 1 \mod p \implies n^{16} \equiv 1 \mod 17$. From here, we have that $m \mid 16$ which tells us that $m$ must be even.
However I am now stuck on the next bit, I'm not sure how to find those values of $n$. Can someone help me please. Thank you.