The 14-Day Path · Week 1 · Day 06
How do you tell a computer where to put a dot?
Two numbers, in an agreed order, name one dot.
This is the live scene the video is rendered from: every number is computed as it plays. Narrated by one voice, with an original score; the captions are drawn into the picture.
Your move
On a grid, the first number of a pair counts steps right from zero and the second counts steps up. Three spots glow: A, B and C. Which one is the dot (3, 2)?
Pick before you watch, or after. Thinking time, not a test.
For (2, 3), walk two steps right from zero, then climb three up: that is spot A. For (3, 2), walk three steps right, then climb two up: spot B. The same two numbers in a different order make a different dot.
On Day 04, swapping the numbers in 3 × 5 changed nothing. Here swapping them moves the dot. A pair of numbers whose order matters is called an ordered pair.
Rule unlocked
We agree: the first number counts steps right, the second counts steps up. So the order matters: (2, 3) and (3, 2) are different dots.
Check it
Where is (5, 0)?
5 right and 0 up: it sits on the bottom edge. Its swap, (0, 5), is 0 right and 5 up: on the left edge. Zero steps is a fine number of steps.
Check it
Which dot stays put when you swap its numbers?
(2, 2): swapping gives (2, 2) again, the same dot. Every dot whose two numbers match sits on one diagonal line across the grid, and none of them move when swapped. Level 2 shows why that line works like a mirror.
Level 2
Where would (1, 4) be, and its swap?
One step right and four up. Swap the numbers and (4, 1) is four right and one up. Fold the grid along its diagonal, the line where both numbers match, and each dot lands exactly on its swap: swapping the numbers gives the mirror image. Halfway between (1, 4) and (4, 1) is (2.5, 2.5), right on the fold. One surprise: many computer screens count the second number down from the top, not up from the bottom. It still works, because everything on that screen agrees on the order.
Try it together, no screen needed
Take squared paper and mark 0 in a corner. Take turns calling out a pair, like (1, 4): count steps right, then steps up, and put a dot there. Then swap the numbers. Where does the new dot land? Which pairs don't move at all when you swap them?
The ledger
Computed by the scene in your browser, and checked again in Python when this page was built.
| (2, 3): steps right, then up | 2 right · 3 up · spot A |
| (3, 2): steps right, then up | 3 right · 2 up · spot B |
| Mirror images across the diagonal (both numbers match) | (2, 3) ↔ (3, 2) and (1, 4) ↔ (4, 1) · both midpoints (2.5, 2.5), on the line |
| A flag from six pairs, every pair swapped | 5 dots move · (1, 1) stays, because its numbers match |
The lesson
Clip A · Right, Then Up · 0–63 s
- NARRATORThis is the fourteen-day path.
- NARRATORFourteen small discoveries, one a day, with every answer given.
- NARRATORDay six, how do you tell a computer where to put a dot?
- PICTUREA grid from 0 to 4, numbered along the bottom and up the side. A line runs right from 0 along the bottom: the first number, steps right.
- NARRATORA computer places a dot with two numbers, the steps right from zero, then the steps up.
- PICTUREThree spots glow, A, B and C, and a five-second thinking ring. A is 2 right and 3 up, B is 3 right and 2 up, C is 3 right and 3 up.
- NARRATORWhich of these three spots is the dot (3, 2), A, B or C?
- PICTUREA path runs 2 steps right along the bottom, then 3 up, and lands on A: (2, 3).
- NARRATORFor (2, 3), walk two steps right from zero, then climb three up, and you land on A.
- PICTUREA second path runs 3 right, then 2 up, and lands on B: (3, 2).
- NARRATORFor (3, 2), walk three steps right, then climb two up, and you land on B.
- PICTUREB is lit, and beside it: (2, 3) ≠ (3, 2), the same two numbers, two different dots.
- NARRATORThe answer is B, so the same two numbers in a different order make a different dot.
- PICTUREThe rule card appears.
- NARRATORThe rule we unlocked is that the first number goes right and the second goes up.
Clip B · The Mirror and the Picture · 63–118 s
- PICTUREA dashed diagonal appears: the mirror, where both numbers match. (2, 3) travels across it to (3, 2), through the midpoint (2.5, 2.5).
- NARRATORFold the grid along its diagonal, and (2, 3) lands exactly on (3, 2), like a mirror image.
- PICTURE(1, 4) is walked, 1 right and 4 up, then (4, 1), 4 right and 1 up. The two are joined through the same midpoint.
- NARRATOR(1, 4) is one right and four up, and its mirror, (4, 1), is four right and one up.
- PICTURESix pairs from a list are plotted and joined into a flag. Every pair is swapped and the flag lies down across the mirror; (1, 1) stays put.
- NARRATORA list of pairs can draw a picture, and swapping every pair flips it across the mirror.
- PICTURESquared paper with 0 in a corner. (1, 4) and then (4, 1) are drawn in pencil, with the steps listed below.
- NARRATORTry it at home on squared paper, mark zero in a corner, and count right, then up.
- NARRATORTake turns calling out pairs, then swap the numbers, and see where the new dot lands.
- PICTURE(2, 3) and (3, 2) side by side on a small grid: (2, 3) ≠ (3, 2).
- NARRATORSame two numbers, a different dot.
- NARRATORFollow for day seven, and try every day at crackinmath.com.
- NARRATORTell us in the comments where (5, 0) and (0, 5) would land.
Record and reading
Record. An ordered pair names a point by its steps right from the starting corner (the origin) and then up. Mathematicians write it (x, y). Swapping the two numbers reflects the point across the diagonal y = x, where both numbers match, and points whose numbers match lie on that line. Many computer screens count the second number down from the top instead of up.
Schematic. The grid, the squared paper and the pencil dots are illustrations. Every spot, step count, swap and midpoint is computed.
From The History of Math
15When Equations Became Curves and Dice Learned Law
1609 to 1654 CE
Keys
A list of pairs drew a flag. Tomorrow: turn a table of numbers into a picture, from nothing.
