Integral weights of a periodic matrix homomorphism
Let $I$ be a finite set and $M:\mathbb R\to\operatorname{Mat}_I(\mathbb C)$ satisfy $$M(0)=1,\qquad M(\phi+\psi)=M(\phi)M(\psi),\qquad M(2\pi)=1.$$ Suppose every entry is differentiable at $0$, with derivative $B_{ij}$, and $B_{ij}=0$ whenever $i\ne j$. There are integers $n_i$ such that $$M(\phi)_{ij}=\begin{cases}e^{in_i\phi}&i=j,\\0&i\ne j\end{cases}\qquad(\phi\in\mathbb R).$$