Let $G$ be the group of invertible elements of the ring $\mathbb{Z}/8\mathbb{Z}$. We would like to determine the Dirichlet characters modulo 8. Namely we would like to determine Hom$(G, \mathbb{C}^\times)$.
We denote by $[n]$ the residue class modulo $8$ represented by an integer $n$. Then $G = \{1, [3], [5], [7]\}$. $[3]^2 = [5]^2 = [7]^2 = 1, [3][5] = [7], [5][7] = [3], [3][7] = [5]$. Hence $G$ is the direct product of $\{1, [3]\}$ and $\{1, [5]\}$. Let $\phi \in$ Hom$(G, \mathbb{C}^\times)$. Then $\phi([3]) = \pm 1, \phi([5]) = \pm 1$. We define $\phi_1, \phi_2, \phi_3 \in$ Hom$(G, \mathbb{C}^\times)$ as follows.
$\phi_1([3]) = -1, \phi_1([5]) = 1$.
$\phi_2([3]) = -1, \phi_2([5]) = -1$.
$\phi_3([3]) = 1, \phi_3([5]) = -1$.
Then Hom$(G, \mathbb{C}^\times) = \{1, \phi_1, \phi_2, \phi_3\}$.
Clearly $\phi_3 = \phi_1\phi_2$.
Is the following proposition true? If yes, how can we prove it?
Proposition Let $n$ be an odd integer. Then
$\phi_1([n]) = (-1)^{(n-1)/2}$
$\phi_2([n]) = (-1)^{(n^2 - 1)/8}$
[It’s also perfectly fine to ask and answer your own question, as long as you pretend you’re on Jeopardy! — phrase it in the form of a question. To be crystal clear, it is not merely OK to ask and answer your own question, it is explicitly encouraged.]
http://blog.stackoverflow.com/2011/07/its-ok-to-ask-and-answer-your-own-questions/ – Makoto Kato Nov 07 '13 at 00:25