Question: By which number is $a_{24}$ divisible by?
Where $a_n=\underbrace{999\cdots9 }_{n \text{ times}}$
The solution says the answer is $7$. Here's what is given:
$$a_{24}=\underbrace{999\cdots9 }_{24 \text{ times}}$$ $$=9(\underbrace{\underline{111} \ \ \underline{111}\ \ \underline{111} \ \cdots \ \ \underline{111})}_{8 \text{ similar sets}}$$ Now differences of each set is $0$. Hence $a_{24}$ is divisible by $7$.
Now what I don't understand is what are they implying when they say "difference of each set is $0$" . Also , why does this imply that the number is entirely divisible by $7$?
Also I know the divisibility rule of $7$ to be: Double the last digit, subtract the obtained number from whatever remains after removing the last digit and then check if the final number obtained is divisible by 7.
This process can go lengthy for this question here. Is there any way to solve it quicker?