Remainder explorer
Long division writes a digit and leaves a remainder. Put the remainders on a circle and each division draws one edge. Follow a fraction until it comes home.
Choose a point on the circle to start there.
Step 1 of 6
Remainder 1 to 3
10 × 1 = 1 × 7 + 3
The next digit is 1. Carry 3 into the next division.
Decimal expansion of 1/7
0.142857
Follow the cycle
All six nonzero remainders lie on one cycle. The zero remainder stays at zero.
Choose a step to see its edge on the circle.
| Step | Remainder | Digit | Next remainder |
|---|---|---|---|
| 1 | 1 | 1 | 3 |
| 2 | 3 | 4 | 2 |
| 3 | 2 | 2 | 6 |
| 4 | 6 | 8 | 4 |
| 5 | 4 | 5 | 5 |
| 6 | 5 | 7 | 1 |
Related preprint
The Collision Invariant
The explorer follows single remainders. The paper asks what happens when you shift a whole repeating decimal by one place and count the matching digits.
Read the paper