There are four reduced residue classes $\mod 5$, namely $1, 2, 3, 4$ and thus four Dirichlet characters $\mod 5$ since $\phi(5)=4$.
I understand how to deduce that the character can be $1$ or $0$(from defination):
$$\chi(n)=\begin{cases}1 &\text{ if } (n,5)=1\\0 &\text{ if } (n,5)>1\end{cases}$$
but i am not sure how to deduce for $i $ as shown here in $\mod 5$ table , using the following property we get:
$\chi(mn)=\chi(m)\chi(n)$
$\chi(4)=\chi(2)\chi(2)=i\times i=i^2=-1$
hence
$\chi_2(4)=\chi_4(4)=-1$
but,how is it known that
$\chi_2(2)=\chi_4(3)=i $