TITLE: Why do repunit primes have only a prime number of consecutive $1$s?
QUESTION [22 upvotes]: Repunit primes are primes of the form $\frac{10^n - 1}{9} = 1111\dots11 \space (n-1 \space ones)$. Each repunit prime is denoted by $R_i$, where $i$ is the number of consecutive $1$s it has. 
So far, very few of these have been found: $R_2, R_{19}, R_{23}, R_{317}, R_{1031}, R_{49081}, R_{86453}, R_{109297}, R_{270343}$.
One thing to observe in all of these is that all of these have a prime subscript. Is this a prerequisite for all repunit primes. Does each repunit prime written as $R_p$ have to have $p$ as prime? 
I tried my hand at this: A repunit prime $R_i$, can be written as $10^{i-1} + 10^{i-2} \dots + 10^{2} + 10 + 1$. We are required to prove that if $i$ is composite then $R_i$ is composite. Clearly, if $i$ is even, then $R_i$ is divisible by $11$. $3|i$, then $3|R_i$. 
So, $i$ has to be of the form $6n \pm 1$. I could not put any more constraints of this. Is there an elementary proof for this?

REPLY [4 votes]: Think about what happens when you multiply a three-digit number by $1001$. You get that number's digits repeated. Likewise a four-digit number by $10001$, and if you multiply it by $100010001$ then you get the digits repeated twice. What is going on is simply several multiplications by $1$, shifted far enough apart that the digits of each do not interfere with each other.
Along these lines,
\begin{align}111,111,111,111 &= 1,111 \times 100,010,001 \\ &= 111 \times 1,001,001,001 \\ &= 11 \times 10,101,010,101.\end{align}
corresponding to factoring $12$ into $4 \times 3$, $3 \times 4$, or $2 \times 6$ respectively. This should make intuitively obvious that a repunit of length $mn$ is the product of a repunit of length $m$ and a number formed of $n$ $1$s each separated by $m - 1$ zeroes.