๐Ÿ  Home โ€บ ๐Ÿ“ Geometry โ€บ Lesson 11

๐Ÿช„ Counting Meets Geometry โ€” Casework and Complementary Counting

๐Ÿ“– Lesson 11 of 14

๐Ÿ“Œ Key idea of this section

Count systematically: by cases, by choosing, or by SUBTRACTING the unwanted.
Choosing 2 of n lines: n(nโˆ’1)/2. Rectangles in a grid: choose, then multiply.

Back in Lesson 1, n points on a line gave n(nโˆ’1)/2 segments. Now we prove that sum formula and then weaponize the idea. The trick is young Gauss's: pair the first and last terms.

S = 1 + 2 + 3 + ... + 50
Pair ends: 1 + 50 = 51, 2 + 49 = 51, 3 + 48 = 51, ...
How many pairs? 50 รท 2 = 25 pairs, each summing to 51.
S = 25 ร— 51 = 1275
General rule: 1 + 2 + ... + m = m(m + 1)/2
(m/2 pairs, each summing to m + 1)
Check with m = 50: 50 ร— 51 รท 2 = 1275 โœ…
Segments from n points: m = n โˆ’ 1 โ†’ (n โˆ’ 1)n/2 โœ… โ€” matches Lesson 1!

Choosing: the multiplication principle

If a choice happens in two INDEPENDENT stages, multiply the counts. A rectangle in a grid is completely determined by choosing 2 vertical lines AND 2 horizontal lines:

4 ร— 3 grid of squares: 5 vertical lines, 4 horizontal lines
vertical choices: 5 ร— 4 รท 2 = 10      (choose 2 of 5 lines โ€” order doesn't matter,
                                       so divide by 2 like the segment count)
horizontal choices: 4 ร— 3 รท 2 = 6     (choose 2 of 4)
rectangles: 10 ร— 6 = 60               (each vertical pair pairs with each
                                       horizontal pair โ€” multiply!)

Counting triangles in a striped triangle

Draw a triangle, split its base into 5 segments (6 rays from the apex), and add 1 line parallel to the base. Count by cases โ€” where does the triangle's base lie?

Any triangle needs 2 of the 6 apex rays: 6 ร— 5 รท 2 = 15 pairs.
Its base can lie on the bottom line OR the parallel line: 2 choices.
Total: 15 ร— 2 = 30 triangles.

Counting squares by SIZE (classic casework)

A 3 ร— 3 grid contains more squares than the 9 little ones โ€” hunt by case:

Case 1ร—1: 9 squares      Case 2ร—2: 4 squares      Case 3ร—3: 1 square
Total: 9 + 4 + 1 = 14 squares.  (A 4 ร— 4 grid: 16 + 9 + 4 + 1 = 30.)

Complementary counting: subtract the unwanted

Sometimes the count you DON'T want is easier. How many rectangles in a 3 ร— 3 grid do NOT contain the center square?

All rectangles: (4 ร— 3 รท 2)ยฒ = 6 ร— 6 = 36   (4 lines each direction, choose 2)
Rectangles CONTAINING the center square:
  left edge: 2 choices (either line left of center)
  right edge: 2 choices;  top edge: 2;  bottom edge: 2
  2 ร— 2 ร— 2 ร— 2 = 16
Answer: 36 โˆ’ 16 = 20   (total minus the unwanted โ€” complementary counting!)

The handshake connection

Ten people each shake hands once with everyone else: how many handshakes? Each of the 10 people shakes 9 hands, but that counts every handshake twice:

10 ร— 9 รท 2 = 45 handshakes

Same formula as segments and the same as diagonals-plus-sides of a polygon: a decagon has 10 ร— 9 รท 2 = 45 segments joining vertex pairs, of which 10 are sides โ€” so 45 โˆ’ 10 = 35 diagonals, exactly matching n(n โˆ’ 3)/2 = 10 ร— 7 รท 2 = 35 โœ…. One counting idea, three disguises.

โœ๏ธ Your Turn!

  • (a)
    Compute 1 + 2 + ... + 40.
  • (b)
    How many rectangles in a 2 ร— 2 grid?
  • (c)
    How many squares in a 2 ร— 2 grid?
๐Ÿ‘€ Show the answers

Answers: (a) 40 ร— 41 รท 2 = 820. (b) 3 lines each direction: (3 ร— 2 รท 2)ยฒ = 3 ร— 3 = 9. (c) 4 little + 1 big = 5.

V.3.1