In Erdős, Graham, Ruzsa, and Straus - On the prime factors of $\binom{2n}n$, at the beginning of the proof of theorem 1, they consider the case where $\log p$ and $\log q$ are commensurable numbers (which means that $p=r^{l}$ and $q=r^{m}$)
Further they state that any sum $\sum_{i}r^{n_{i}kl}$ has all the digits either $0$ or $1$ to both the bases $p$ and $q$. I didn't get this line particularly. Why are they taking $0$ and $1$ as the digits and what is $n_{i}$?