<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\documentclass[a4paper,12pt]{article}

\begin{document}

\parindent=0pt

QUESTION

Let $x$ be a primitive root modulo $p$ where $p$ is an odd prime
and $1\leq x\leq p-1$.

\begin{description}

\item[(i)]
Explain why the two sets of congruence classes mod ($p$),

$$\{[1],[x],[x^2],\ldots,[x^{p-2}]\}\textrm{ and
}\{[1],[2],\ldots,[p-1]\}$$

are equal.

\item[(ii)]
Using (i) or otherwise, show that if $p-1$ divides $n$ then

$$1^n+2^n+\ldots+(p-1)^n\equiv-1\textrm{ mod }(p).$$

\item[(iii)]
Using (i) or otherwise, show that if $p-1$ does not divide $n$
then

$$1^n+2^n+\ldots+(p-1)^n\equiv\textrm{ mod }(p).$$

(Hint: In this case $n=q(p-1)+r$ with $1\leq r\leq p-2$.)

\end{description}



ANSWER

\begin{description}

\item[(i)]
It suffices to show that the $[x^i]=[x]^i$ are distinct for $1\leq
i\leq p-1$. If $x^i\equiv x^j$ mod $(p)$ with $1\leq i&lt;j\leq p-1$
then $p|x^i(1-x^{j-i})$ and so $p|(1-x^{k-i})$, since
HCF$(p,x)=1$. Hence $x^{j-i}\equiv$1 mod $(p)$. This implies that
$p-1=$order$(x)\leq j-i&lt;p-1$, which is a contradiction.

\item[(ii)]
By (i), the congruence class mod $(p), [1^n+2^n+\ldots+(p-1)^n]$,
satisfies

\begin{eqnarray*}
[1^n+2^n+\ldots+(p-1)^n]&amp;=&amp;[1]^n+[2]^n+\ldots+[(p-1)]^n\\
&amp;=&amp;[1]^n+[x]^n+[x^2]^n+\ldots+[x^{p-2}]^n
\end{eqnarray*}

If $p-1$ divides $n$ then $[x^i]^n=[x^{in}]=[1]$ since
$x^{p-1}\equiv$1 mod $(P)$ so that in this case

$$[1]^n+[x]^n+[x^2]^n+\ldots+[x^{p-1}]^n=(p-1)[1]=[p-1]=[-1]$$

as required.

\item[(iii)]
When $p-1$ does not divide $n$ we must have $n=q(p-1)+r$ for some
$q$ and some $1\leq r\leq p-1$. Hence $[x^n]=[x^r]$ so that it
will suffice to show that

$$[1]^r+[x]^r+[x^2]^r+\ldots+[x^{p-2}]^n=[1+x^r+x^{2r}+\ldots+x^{(p-2)r}]=[0]$$

Since $x^r$ is not congruent to 1 mod $(p)$ we must have
HCF$(x^r-1,p)=1$.

Therefore $[x^r-1][y]=[0]$ if and only if $[y]=[0]$. However,

\begin{eqnarray*}
&amp;&amp;[x^r-1][1+x^r+x^{2r}+\ldots+x^{(p-1)r}]\\
&amp;=&amp;[x^r+x^{2r}+\ldots+x^{(p-1)r}+x^{(p-1)r}-1-x^r-x^{2r}-\ldots-x^{(p-10r}]\\
&amp;=&amp;[x^{(p-1)r}-1]\\ &amp;=&amp;[x^{p-1}]^r-[1]\\ &amp;=&amp;[1]-[1]\\&amp;=&amp;[0]
\end{eqnarray*}

as required.

\end{description}




\end{document}
</pre></body></html>