  Let $m\in\N_{\geq 2}$ and for given $k\in\N_{+}$ consider the sequence
$(A_{m,k}(n))_{n\in\N}$ defined by the power series expansion $$
\prod_{n=0}^{\infty}\frac{1}{\left(1-x^{m^{n}}\right)^{k}}=\sum_{n=0}^{\infty}A_{m,k}(n)x^{n}.
$$ The number $A_{m,k}(n)$ counts the number of representations of $n$ as sums
of powers of $m$, where each summand has one among $k$ colors. In this note we
prove that for each $p\in\mathbb{P}_{\geq 3}$ and $s\in\N_{+}$, the $p$-adic
valuation of the number $A_{p,(p-1)(p^s-1)}(n)$ is equal to 1 for $n\geq p^s$.
We also obtain some results concerning the behaviour of the sequence
$(\nu_{p}(A_{p,(p-1)(up^s-1)}(n)))_{n\in\N}$ for fixed $u\in\{2,\ldots,p-1\}$
and $p\geq 3$. Our results generalize the earlier findings obtained for $p=2$
by Gawron, Miska and the first author.
