If $17 \mid \frac{n^m - 1}{n-1}$ find the values of $n$ where $m$ is even but not divisible by $4$ 
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.

As the first case is perfect, let me start with the second.
As $17$ is  prime and hence $\phi(17)=16$
As Primitive Root is a Generator of Reduced Residue System, let's find a primitive root of $17$
$2^4\equiv-1, 2^8\equiv(-1)^2\equiv1\pmod{17} \implies \text{ord}_{17}2=8<\phi(17)$
$3^2\equiv9, 3^4\equiv-4,3^8=(3^4)^2\equiv(-4)^2\equiv-1\pmod {17}$
$\implies \text{ord}_{17}3=16$ i.e., $3$ is  a primitive root of $17$
From this, if $d=$ord$_ma,$ ord$_m(a^r)=\frac d{(r,d)}$ where $m,d$ are positive integers  and $a,r$  are integers.
So, ord$_{17}(3^n)=\frac{16}{(16,n)}$
Case $1:$ If ord$_{17}(3^n)\equiv2\pmod 4, n=8s$ where $s$ is odd $\implies 3^{8s}=(3^8)^s\equiv(-1)^s\equiv-1\pmod{17}\implies $ord$_{17}(-1)=2$
Case $2:$ If ord$_{17}(3^n)\equiv4\pmod 8, n=4s$ where $s$ is odd 
$\implies n\equiv4,12\pmod{16}$ 
Now, $3^4\equiv-4\pmod{17}$ and $3^{12}=3^8\cdot3^4\equiv(-1)(-4)\equiv4\pmod {17}$
$\implies $ord$_{17}(\pm4)=4$
Case $3:$ If ord$_{17}(3^n)\equiv8\pmod {16}, n=2s$ where $s$ is odd 
$\implies n\equiv2,6,10,14\pmod{16}$ 
