Prove that $371\cdots 1$ is not prime.
I tried mathematical induction in order to prove this, but I am stuck.
My partial answer:
To be proved is that $37\underbrace{111\cdots 1}_{n\text{ ones}}$ is never prime for $n\geq 1$. Let $P(n)$ be the statement that $37\underbrace{111\cdots 1}_{n\text{ enen}}$ is not prime.
For $n=1$, we can write $371=7\cdot 53$, and therefore $P(1)$ is true. Let $P(k)$ be true for $k>1$. Then we now have to prove that $P(k+1)$ is true.
I found that $37\underbrace{111\cdots 1}_{k\text{ ones}}$ can be written as $37\cdot 10^k+10^{k-1}+10^{k-2}+\cdots +10^0$ and that $37\underbrace{1111\cdots 1}_{k+1\text{ ones}}$ can be written as $37\cdot 10^{k+1}+10^{k}+10^{k-1}+\cdots+10^0$.
I think I'm pretty close to the answer know, but I don't know how to proceed.
Hints not to give this away completely:
Notice $111 = 37 \times 3$ so since it starts with 37, what happens if you add a number of ones divisible by $3$, like $37,111$ or $37,111,111$, etc?
Also notice if you take $3711$, the sum of digits is divisible by 3, so this should take care of $3,711$ or $3,711,111$ or $3,711,111,111$ or the like.
This leaves only one sequence class for you to deal with. Can you?