Let $\hat{G}_q$ be the set of Dirichlet characters modulo $q$. If $d|q$, how many $\chi\in\hat{G}_q$ are there with $f_\chi|d$? ($f_\chi$ denotes the conductor of $\chi$)
And what if we count the $\chi\in\hat{G}_q$ with $f_\chi|d$ and $\chi(-1)=\pm1$? I expect the number to be $\frac12\phi(d)$ but don't know how to prove that.
Thanks alot!
Ok, maybe I got it by myself: Let us define $\hat{P}_{d,\pm}:=\{\text{primitive Dirichlet characters $\tilde{\chi}$ with conductor dividing }d\text{ and }\tilde{\chi}(-1)=\pm1\}$ and $\hat{G}_{d,\pm}=\{\chi\in\hat{G}_q:f_\chi|d\text{ and }\chi(-1)=\pm1\}$. Let $\varphi:\hat{G}_{d,\pm}\longrightarrow \hat{P}_{d,\pm}$, $\chi\mapsto\chi'$, $\chi'$ the primitive character inducing $\chi$.
If $\tilde{\chi}\in\hat{P}_{d,\pm}$, set $\chi(n)=\tilde{\chi}(n)$ for all $(n,q)=1$ and $0$ otherwise. Thus, $\chi\in\hat{G}_q$ and $\tilde{\chi}$ induces $\chi$. So $\varphi(\chi)=\chi'$ and $\tilde{\chi}$ both are primitive inducing $\chi$, therefore $\varphi(\chi)=\tilde{\chi}$. But as $f_\chi=f_{\chi'}=f_{\tilde{\chi}}$ and $\chi(-1)=\chi(q-1)=\tilde{\chi}(q-1)=\pm1$ we got $\chi\in\hat{G}_{d,\pm}$. The uniqueness of $\chi$ is obvious. So we got $\hat{G}_{d,\pm}\cong\hat{P}_{d,\pm}$. Now, as $\hat{P}_d\cong\hat{G}_d$ it follows easily that $|\hat{P}_{d,\pm}|=\frac12\phi(d)$.