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.

0:42 / 1:57

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.

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)?

Check it

Which dot stays put when you swap its numbers?

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 up2 right · 3 up · spot A
(3, 2): steps right, then up3 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 swapped5 dots move · (1, 1) stays, because its numbers match

The lesson

Clip A · Right, Then Up · 0–63 s

  1. NARRATORThis is the fourteen-day path.
  2. NARRATORFourteen small discoveries, one a day, with every answer given.
  3. NARRATORDay six, how do you tell a computer where to put a dot?
  4. 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.
  5. NARRATORA computer places a dot with two numbers, the steps right from zero, then the steps up.
  6. 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.
  7. NARRATORWhich of these three spots is the dot (3, 2), A, B or C?
  8. PICTUREA path runs 2 steps right along the bottom, then 3 up, and lands on A: (2, 3).
  9. NARRATORFor (2, 3), walk two steps right from zero, then climb three up, and you land on A.
  10. PICTUREA second path runs 3 right, then 2 up, and lands on B: (3, 2).
  11. NARRATORFor (3, 2), walk three steps right, then climb two up, and you land on B.
  12. PICTUREB is lit, and beside it: (2, 3) ≠ (3, 2), the same two numbers, two different dots.
  13. NARRATORThe answer is B, so the same two numbers in a different order make a different dot.
  14. PICTUREThe rule card appears.
  15. 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

  1. 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).
  2. NARRATORFold the grid along its diagonal, and (2, 3) lands exactly on (3, 2), like a mirror image.
  3. 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.
  4. NARRATOR(1, 4) is one right and four up, and its mirror, (4, 1), is four right and one up.
  5. 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.
  6. NARRATORA list of pairs can draw a picture, and swapping every pair flips it across the mirror.
  7. PICTURESquared paper with 0 in a corner. (1, 4) and then (4, 1) are drawn in pencil, with the steps listed below.
  8. NARRATORTry it at home on squared paper, mark zero in a corner, and count right, then up.
  9. NARRATORTake turns calling out pairs, then swap the numbers, and see where the new dot lands.
  10. PICTURE(2, 3) and (3, 2) side by side on a small grid: (2, 3) ≠ (3, 2).
  11. NARRATORSame two numbers, a different dot.
  12. NARRATORFollow for day seven, and try every day at crackinmath.com.
  13. 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.

Keys

A list of pairs drew a flag. Tomorrow: turn a table of numbers into a picture, from nothing.