Weighted sums of regularized smoothed character sums
Let $\mathcal K$ be a finite set of primitive Dirichlet characters that contains the principal character $1$ of modulus $1$ and, with every $\chi$, its conjugate $\overline\chi$. Let $o\ge0$ be an integer. Either let $\xi\in\mathcal K$ be an odd real-valued character, or let no such character be chosen. For $\chi\in\mathcal K$ let $g_\chi$ be the function of (Regularized smoothed character sumsDefinition ANT.D088). The weighted sum attached to $\mathcal K$, $\xi$ and $o$ is the real-valued function $$G_{\mathcal K}(x)=g_1(x)+\sum_{\chi\in\mathcal K\setminus\{1\}}w_\chi\,\Re g_\chi(x)\qquad(x>0),$$ where $w_\xi=1$ if a character $\xi$ is chosen, and $w_\chi=(3o+1)^{-1}$ for every other $\chi\in\mathcal K\setminus\{1\}$.
The powers of a primitive character. Let $\psi$ be a primitive Dirichlet character of conductor $M\ge1$, and let $o\ge1$ be its order, the least positive integer for which $\psi^o$ is the principal character modulo $M$. For $0\le j<o$ let $\chi_j$ be the primitive character that induces $\psi^j$: the primitive character of conductor dividing $M$ that agrees with $\psi^j$ on the integers coprime to $M$. Put $$\mathcal P_\psi=\{\chi_j:0\le j<o\}.$$ The set $\mathcal P_\psi$ contains $\chi_0=1$ and $\chi_1=\psi$, and it contains the conjugate of each of its members. The weighted sum of $\psi$ is the weighted sum attached to $\mathcal P_\psi$, to no character $\xi$, and to the order $o$ of $\psi$: $$G_\psi(x)=g_1(x)+\frac1{3o+1}\sum_{\chi\in\mathcal P_\psi\setminus\{1\}}\Re g_\chi(x)\qquad(x>0).$$
A character is odd when its value at $-1$ is $-1$. The function $g_1$ is real-valued. If $\psi$ is the principal character of modulus $1$, then $o=1$, $\mathcal P_\psi=\{1\}$ and $G_\psi=g_1$.
(Weighted prime-sum boundTheorem ANT.1.0102) bounds $G_{\mathcal K}$ from above, and (Landau theorem on intervalsTheorem ANT.1.0127) is applied to $G_\psi$, with the coefficients $1$ and $(3o+1)^{-1}$.