Show that if a positive integer $ n $ is composite then $ R(n) = \frac{10^{n}-1}{9}= \underset{n\text{ times}}{\underbrace{111...11}} $ is composite
I attempted a both a normal proof and proof by contradiction by trying:
$ n = ak $
show if $ ak\equiv 0 \mod a $ then $ (10^{ak}-1) \equiv 0\mod (10^a-1) $
I reached a point where I began to go around in cirlces. Maybe I'm going down the wrong track. Any ideas ?