This is latex Overleaf and I'm receiving this error with no idea on how to fix it
edit: Here is the code
\begin{definition}[Dirichlet Character]
Any map $\chi:(\mathbb{Z}/n\mathbb{Z})* \rightarrow \mathbb{C}$ is said to be a Dirichlet Character of modulus $n$ if for any two integers $a$ and $b$,
\begin{itemize}
\item $\chi(ab) = \chi(a)\chi(b) \hspace{2pt} \text{(multiplicity)}$
\item $\chi(a)$ = $\begin{cases}
$0$ & \text{if } $\gcd(a,n) > 1$ \\
\text{non-zero} & \text{if }$\gcd(a,n) = 1$ \\
\end{cases}$ \item $\chi(a+m)$ = $\chi(a)$ \text{(periodic with period $m$)}
\end{itemize}
\end{definition}
$
inside acases
environment, which is already math so generates an error. In general you have far too many$
soa = b$
not$a$ = $b$