Power-sum traces of dominant Iwahori double cosets
Let $F$ be a nonarchimedean local field, $n\ge0$, and $I\subseteq\operatorname{GL}_n(F)$ the inverse image of the upper-triangular subgroup under reduction $\operatorname{GL}_n(\mathcal O_F)\to\operatorname{GL}_n(\mathcal O_F/\mathfrak p_F)$. Give $\operatorname{GL}_n(F)$ its Borel structure and a Haar measure $\mu$ with $\mu(I)=1$. Let $\rho$ be a smooth complex representation with finite-dimensional $I$-fixed space. For a weakly decreasing tuple $\nu=(\nu_1,\ldots,\nu_n)\in\mathbb Z^n$, write $$t_\nu=\operatorname{diag}(\varpi^{\nu_1},\ldots,\varpi^{\nu_n}),$$ where $\varpi$ is the chosen uniformizer. There is a multiset $Z$ of nonzero complex numbers such that $$|Z|=\dim_{\mathbb C}V^I,\qquad \operatorname{tr}\rho(\mathbf1_{It_{j\nu}I})=\sum_{z\in Z}z^j\quad(j\ge0).$$
The operator $\rho(f)$ integrates $f(g)\rho(g)$ against $\mu$. Its trace is the algebraic finite-rank trace; $\mathbf1_{It_{j\nu}I}$ is the unscaled characteristic function of the double coset.