Proof about powers of 10-s

Revision en2, by snorkel, 2021-04-10 07:53:16

Recently I was solving the problem which said that I have to find the smallest number consisting of only 1-s (1, 11, 111, ...) such that — that found number is divisible by the given number $$$n$$$ (at least for $$$<= 100 000$$$). This problem is easy, but I was surprised that it is possible for any $$$n$$$. How can I prove this?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en7 English snorkel 2021-04-10 08:11:59 1 Tiny change: 'number $n$ This prob' -> 'number $n$. This prob'
en6 English snorkel 2021-04-10 08:11:35 54
en5 English snorkel 2021-04-10 08:11:07 26 Tiny change: 'number $n$. This pr' -> 'number $n$ not divisible $2$ and $5$. This pr'
en4 English snorkel 2021-04-10 07:54:51 56
en3 English snorkel 2021-04-10 07:54:04 39
en2 English snorkel 2021-04-10 07:53:16 28 Tiny change: 'number $n$. This pro' -> 'number $n$ (at least for ${le} 100 000$). This pro'
en1 English snorkel 2021-04-10 07:50:17 323 Initial revision (published)