Let $n$ be a positive integer.
Consider the $n+1$ integers $1, 11, 111, . . . , 11 . . . 1$ (where the last integer in this list is the integer with $n + 1$ $1$s in its decimal expansion).
Note that there are $n$ possible remainders when an integer is divided by $n$.
Because there are $n + 1$ integers in this list, by the pigeonhole principle there must be two with the same remainder when divided by $n$. The larger of these integers less the smaller one is a multiple of $n$, which has a decimal expansion consisting entirely of $0$s and $1$s.
For example, take $n = 7$
we have $1, 11, 111, 1111, 11111, 111111, 1111111 and\ 11111111$
The remainder possible when any number is divided by $7$ is $0, 1, 2, 3, 4, 5, 6$
These are the remainders when the numbers in the first list are divided by $7$:
$1\ \%\ 7 = 1$
$11\ \%\ 7 = 4$
$111\ \%\ 7 = 6$
$1111\ \%\ 7 = 5$
$11111\ \%\ 7 = 2$
$111111\ \%\ 7 = 0$
$1111111\ \%\ 7 = 1$
$11111111\ \%\ 7 = 4$
Now you can see that we have $7$ pigeonholes $\{ 0, 1, 2, 3, 4, 5, 6 \} $ and $8$ pigeons $\{ 1, 11, 111, 1111, 11111, 111111, 1111111, 11111111 \} $, so there need to be at least one pigeonhole where $2$ pigeons will reside.
In this case, we have $11\ \%\ 7 = 4$ and $11111111\ \%\ 7 = 4$
Their difference, i.e. $11111111 - 11 = 11111100$ is divisible by $7 (1587300 * 7 = 11111100)$
Hope this helps :)
reference : https://math.berkeley.edu/~arash/55/6_2.pdf