Let H(x) be a polynomial over Z and p a
prime number. For n ≥ 0
and a in {1,..., p-1}, let
Na(n) denote the number of coefficients in
Hn, belonging to the residue class
a + pZ.
We show that the existence
of certain patterns in the base p representation of n
forces Na(n) and
Nb(n) to be almost equal.
Then, using Kingman's subadditive ergodic
theorem, we study the asymptotical behavior of