Why $142857$ when multiplied by $1$ to $6$ gives the same digits?

328 Views Asked by At

What made 142857 a special number? Why it gives the same digits if it is multiplied by 1,2,3,4,5 & 6 ? And gives all nines when it is multiplied by 7?

2

There are 2 best solutions below

2
On BEST ANSWER

More generally, this happens for the fraction $1/n$ exactly when $10$ is a primitive root mod $n$.

Those $n$ are the ones in A167797: $$ 7, 17, 19, 23, 29, 47, 49, 59, 61, 97, 109, 113, 131, 149, 167, 179, 181, 193, \dots $$

2
On

Because $\dfrac1{7} =.142857142857... $ and all (and there is a lot) that follows from that.