Visual walkthrough — Modular arithmetic — definition, addition, multiplication, congruence
The parent note stated the rules:
Here we build them from nothing, with a picture for every single step. By the end you will see why reducing before you add or multiply can never change the answer.
We assume only that you can divide whole numbers and get a remainder. Everything else — the wrap-around, the "buckets", the rules — we grow from that one seed.
Step 1 — What "remainder" really means: the number line, chopped
WHAT. Take any whole number and any fixed number (we'll use ). The Division Algorithm says we can always write
- ::: the number we start with
- ::: the modulus — how far we count before wrapping
- ::: the quotient — how many complete jumps of size we made
- ::: the remainder — what's left over, always squeezed into
WHY. This is the only fact we are allowed to assume. Every later claim reduces back to it. The remainder is the "address" of on a circle of slots — nothing more.
PICTURE. Look at the number line below. Every step of size is a colored tick. The number sits after full jumps (that's ) with left over (that's ).

Step 2 — Wrapping the line into a clock
WHAT. Bend that number line so slot lands back on slot . Numbers that differ by a multiple of now sit on the same spot.
WHY. This is the visual heart of the whole subject. The claim " means is a multiple of " becomes obvious: if and land on the same point of the circle, you must have taken a whole number of extra laps to get from one to the other.
- ::: the gap between the two numbers
- ::: how many whole laps separate them (any integer, positive or negative)
- ::: that gap expressed as complete trips around the circle
PICTURE. On the clock, watch , , and all pile onto the same slot. Their differences (, ) are exactly one lap.

Step 3 — The core object: a number is its "bucket" + a leftover
WHAT. Rewrite any two congruent numbers transparently. If , then is just with some whole laps added:
- ::: the "small" representatives (the slot we care about)
- ::: how many extra laps and carry beyond and
- ::: the invisible part — full laps that don't move the slot
WHY. This form is the whole trick. The laps (, ) are invisible on the clock. We will show that when we add or multiply, all the lap-terms collect into another whole multiple of — which is still invisible.
PICTURE. is drawn as the visible short arrow to slot () plus ghost laps (). The ghost laps are dashed — they exist but don't change where you point.

Step 4 — Addition: the ghost laps add up to more ghost laps
WHAT. Add the two boxed expressions from Step 3:
- ::: the visible part — where the two small arrows point together
- ::: total ghost laps, still a whole number
- ::: still a whole multiple of → still invisible
WHY. Because is a multiple of , the definition from Step 2 fires:
We reduced first (to ), then added — and it matched. The laps couldn't sabotage us because whole laps plus whole laps are still whole laps.
PICTURE. Two arrows on the clock placed head-to-tail. The dashed ghost laps of each simply extend the trip by complete circles — the final arrowhead lands on the same slot whether or not you keep the ghost laps.

Step 5 — Multiplication: why the extra terms are still multiples of
WHAT. Multiply the two boxed forms. This is scarier — there are cross-terms:
Now factor out of everything except :
- ::: the visible product — the slot we actually want
- ::: cross-terms, each carrying a factor
- ::: double-lap term, carrying two factors of
- the bracket ::: a single whole number → the whole correction is a multiple of
WHY. Every term that isn't has at least one factor of , so . By Step 2's definition:
That's the multiplication rule — no leap of faith, just " divides the leftover."
PICTURE. A rectangle of area split into four tiles: the small corner (colored) plus three strips/tiles that each contain a full width or height of — visibly "wrappable" chunks that disappear on the clock.

Step 6 — Powers: multiplication rule, used again and again
WHAT. Since lets us replace by inside any product, do it times:
WHY. No new idea — the power rule is Step 5 applied repeatedly. This is what makes huge exponents tame (and is the doorway to Fermats Little Theorem and Eulers Theorem).
PICTURE. A chain: each link is one multiplication where is swapped. The congruence survives every link.

Step 7 — The degenerate cases (never leave the reader stranded)
WHAT & WHY. We must handle the "boring but sneaky" inputs.
Case . Every number leaves remainder . The clock has one slot. So is always true — the rules hold trivially (everything is congruent to everything).
Case a remainder of . If is an exact multiple of (like ), it lands on slot — the "top of the clock." It behaves like any other slot; is a legitimate representative.
Case negative numbers. is not . Walk backwards around the clock: from , three steps back lands on slot . Formally add laps until you're in range:
Here from Step 3 is simply negative — the ghost laps run counter-clockwise, but the algebra of Steps 4–5 never assumed , so everything still works.
Case reducing then dividing — a warning. Adding and multiplying always survive reduction. Division does not, unless (see Modular Inverses, Linear Congruences). That's a different operation and lives on a different page.
PICTURE. Three mini-clocks side by side: the one-slot clock; the clock with slot highlighted at the top; and the clock showing walked counter-clockwise onto slot .

The one-picture summary
Everything compresses to one idea: whole laps are invisible. Add or multiply the visible small arrows; every leftover collects into multiples of that vanish on the clock.

Recall Feynman retelling — the whole walkthrough in plain words
Chop the number line every steps and roll it into a circle. A number's only real identity is which slot it lands on — its remainder. Every extra trip around the circle is a "ghost lap": it moves you, but not your slot.
Write each number as small part + ghost laps. When you add two numbers, the small parts combine and the ghost laps combine into more ghost laps — still whole circles, still invisible — so the slot you reach is the same as if you'd added just the small parts. When you multiply, you get a few cross-terms, but every one of them secretly contains a full width or height of , so they're wrappable tiles that disappear too. Powers are just multiplication done over and over, so they inherit the same magic.
Negative numbers just walk backwards; slot is the top of the clock; and if the clock has a single slot so everything is congruent. The one caution: this only covers , , and powers — division is a different beast needing .
One sentence: reduce first, then compute — the ghost laps can never bite you.
Prerequisites and neighbours: parent topic · Division Algorithm · GCD and LCM · Modular Inverses · Linear Congruences · Fermats Little Theorem · Eulers Theorem · Chinese Remainder Theorem · Quadratic Residues · RSA Cryptography.
Recall Quick self-test
Why can we reduce and before adding? ::: Because the leftover is a multiple of , so both land on the same slot. Why does multiplication survive reduction? ::: Every term of except contains a factor of , so is a multiple of . What is ? ::: , by walking three steps backward (adding one lap of ). When does this argument fail? ::: For division — you also need .