\section{The $b$-adic content}\label{sec:badic} Put $\kappa=b^{3M(M+1)/2}=\prod_{a=1}^Mr_a$. \begin{proposition}\label{prop:badic} For every prime $p\mid b$, every coefficient $c$ of $\Delta_K(X)$ satisfies $v_p(c)\ge(K-1)\,v_p(\kappa) =\frac32M(M+1)(K-1)\,v_p(b)$. In other words $\Delta_K(X)\in\kappa^{K-1}\ZZ_{(p)}[X]$. \end{proposition} The idea comes from the $\chi_{-4}$ case in \cite{UPLC}, where it gives the content $p^{5K^3/6+O(K^2)}$: by the symmetry $g(1/y)=g(y)$ the partial sums $S_{3a}$ are also partial sums of a $p$-adically convergent series, and after a translation of $X$ the tails become power series in the poles $r_a$. \begin{proof} Work in $\QQ_p$, where $|b|_p<1$. \emph{The matrix.} Let $F(s)=\prod_{a=1}^M(s-r_a)$. Since $1-w^as=-w^a(s-r_a)$, $D_M=(-1)^MF/\kappa$, so $\Delta_K(X)=\bigl((-1)^M\kappa\bigr)^K\det[T_{i+j}(X)]$ with $T_k(X)=L_X(s^k/F)$. For $k\ge0$, \[ \frac{s^k}F=\sum_{j=0}^{k-M}h_{k-M-j}(r)\,s^j+\sum_{a=1}^M\frac{r_a^k}{F'(r_a)\,(s-r_a)},\qquad r=(r_1,\dots,r_M), \] and $L_X\bigl(1/(s-r_a)\bigr)=-w^aL_X\bigl(1/(1-w^as)\bigr)=-(X-S_{3a})/r_a$. Hence \begin{equation}\label{eq:Tk} T_k=\sum_{j=0}^{k-M}h_{k-M-j}(r)\,\nu_j-\sum_{a=1}^M\frac{r_a^{k-1}}{F'(r_a)}\,(X-S_{3a}). \end{equation} \emph{The tails.} Since $g(q^n)=g(b^n)$, $S_{3a}=\sum_{n\le3a}\chi(n)g(b^n)$, and $g(b^n)=b^n/(1-b^n)^2\in b^n\ZZ_{(p)}$. So $\xi_p:=\sum_{n\ge1}\chi(n)g(b^n)$ converges in $\ZZ_p$. Put $Y=X-\xi_p$. Then, with $n=N+3a$ and $\chi(N+3a)=\chi(N)$, \[ X-S_{3a}=Y+\sum_{n>3a}\chi(n)g(b^n)=Y+r_a\Gamma(r_a), \] where $\Gamma(r)=\sum_{N\ge1}\chi(N)\,b^N/(1-rb^N)^2$. Expanding $(1-rb^N)^{-2}$ and summing over $N$ first (the double series converges absolutely in $\QQ_p$ for $|r|_p\le1$), \[ \Gamma(r)=\sum_{n\ge0}\gamma_nr^n,\qquad \gamma_n=(n+1)\frac{b^{n+1}-b^{2n+2}}{1-b^{3n+3}}\in b^{n+1}\ZZ_{(p)} . \] \emph{Two residue identities.} For $m\ge0$, $\sum_ar_a^m/F'(r_a)=h_{m-M+1}(r)$ (the coefficient of $s^{-1}$ at infinity of $s^m/F$). The residues of $1/(sF(s))$ sum to $0$, so $\sum_a1/(r_aF'(r_a))=-1/F(0)=-(-1)^M/\kappa$. \emph{The entries.} Inserting $X-S_{3a}=Y+\sum_n\gamma_nr_a^{n+1}$ into \eqref{eq:Tk}, \begin{align*} T_k&=\sum_{j}h_{k-M-j}(r)\nu_j-Y\,h_{k-M}(r)-\sum_{n\ge0}\gamma_n\,h_{k+n-M+1}(r)\qquad(k\ge1),\\ T_0&=(-1)^M\frac{Y}{\kappa}-\sum_{n\ge0}\gamma_n\,h_{n-M+1}(r). \end{align*} Here $\nu_j=j(b^{2j}-b^j)/(b^{3j}-1)\in\ZZ_{(p)}$, $h_m(r)\in\ZZ$, and $|h_m(r)|_p\le|b|_p^{3m}$, so the series converge and $T_k\in\ZZ_p[Y]$ for $k\ge1$, $T_0\in\kappa^{-1}\ZZ_p[Y]$. \emph{Conclusion.} Only the $(0,0)$ entry of $[T_{i+j}]$ is non-integral, by one factor $\kappa^{-1}$. Expanding along the first row, $\det[T_{i+j}]\in\kappa^{-1}\ZZ_p[Y]$, so $\Delta_K\in\kappa^{K-1}\ZZ_p[Y]=\kappa^{K-1}\ZZ_p[X]$, as $\xi_p\in\ZZ_p$. The coefficients of $\Delta_K(X)$ are rational, and $\QQ\cap\ZZ_p=\ZZ_{(p)}$. \end{proof} \begin{remark}\label{rem:badic} For $M=K$ the bound is sharp: the coefficient of $X^K$ is $\pm\kappa^{K-1}$, and for $b=2$, $K\le20$ the $2$-part of the content of $\Delta_K(X)$ is exactly $2^{\frac32(K^3-K)}$. [Numerical] In \cite{KriB} the analogous entrywise argument recovers only five sixths of the corresponding amount, because the weight there is a half-integer power of $w$. Here the inversion $y\mapsto1/y$ is an exact symmetry of $g$, and nothing is lost. \end{remark}