Alex Petty
Petty’s Notebook

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.

Selected cycleCurrent step

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.

Long division steps in the selected orbit
StepRemainderDigitNext remainder
1113
2342
3226
4684
5455
6571

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