Possible Duplicate:
Proof that a natural number multiplied by some integer results in a number with only one and zero as digits
I read this somewhere recently:
For any natural number $n$, there exists a multiple of $n$, such that the multiple has only 0 and 1 as its digits.
$2 \to 10$
$3 \to 111$
$4 \to 100$
$5 \to 10$
$6 \to 1110$
$7 \to 1001$
Any ideas how to go about proving this?
Consider the numbers $a_1=1$, $a_2=11$, $a_3=111$, and so on. Let $r_1, r_2,r_3,$ and so on be the remainders when the $a_i$ are divided by $n$.
There are at most $n$ conceivable such remainders. So there must be two numbers $a_i$, $a_j$ such that $i\lt j$ and $r_i=r_j$. Their difference $a_j-a_i$ is divisible by $n$, and has only $0$'s and/or $1$'s. Moreover, all the $1$'s precede all the $0$'s.