0% found this document useful (0 votes)
399 views

How Many Triangles Can You Find?: Week 19: Puzzle Solution

This document discusses solving a combinatorics problem to determine the number of triangles that can be formed from six lines. It explains that any three lines form one triangle, so the number of triangles is the number of combinations of choosing three lines out of six, which is 20.

Uploaded by

Doddy Feryanto
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
399 views

How Many Triangles Can You Find?: Week 19: Puzzle Solution

This document discusses solving a combinatorics problem to determine the number of triangles that can be formed from six lines. It explains that any three lines form one triangle, so the number of triangles is the number of combinations of choosing three lines out of six, which is 20.

Uploaded by

Doddy Feryanto
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Week 19: Puzzle solution

How many triangles can you find?

© NY Times.com

This is a combinatorics problem (an area of math that figures out the number of ways things can be shuffled).
To solve the problem, start with this observation: Any three lines in the diagram define one and only one
triangle. It follows that the total number of triangles will be equal to the number of three-line combinations
that can be chosen from a group of six lines.

How do you calculate that? Choose a line, any line. Since there are six lines, there are six choices. Next, choose
a line to be the second side of the triangle. At first, you might think there are again six choices, but one line has
already been chosen as a line for the first side, so only five choices are left. Likewise, for the third side of
the triangle, there are four lines left to choose from. Thus, the total number of ways you can choose the sides
of the triangle equals 6x5x4, or 120. Clearly, there are not 120 triangles in the diagram. That’s because all of
those combinations are being counted more than once.

For clarity, number the lines from 1 to 6, and look at the triangle defined by lines 1, 2 and 3. It’s the same
triangle whether you choose line 1, then line 2, then line 3; or line 1, then line 3, then line 2. Indeed, there are
as many ways to create that triangle as there are ways to choose lines 1, 2 and 3. Jumble the digits every which
way: 123, 132, 213, 231, 312, 321. There are six possibilities; likewise, any triangle in the diagram could be
created six possible ways.

So now, divide out the redundancy. The total number of triangles created by those six lines is (6x5x4)/6, or 20.
That’s the answer.

Here’s where math becomes powerful. The same procedure works for any number of lines. How many
triangles are created by seven nonparallel lines? That’s (7x6x5)/6, or 35. What about 23 lines? (23x22x21)/6, or
1,771. How about 2,300 lines? That’s (2300x2299x2298)/6, which is a big number: 2,025,189,100.

The same calculation applies no matter how many lines there are. Compare that approach to brute-force
counting, which is not only laborious and error-prone but provides no way to check the answer. Math
produces the solution and the rationale for it. It also reveals that other problems are, at heart, identical. Put
balls of six different colors into a bag. Pull out three. How many different possible color combinations
are there? 20, of course.
That’s combinatorics, and it’s useful for solving problems of this type. It comes with its own notation, to
simplify the process of calculating, and involves a lot of exclamation points. The expression n! — “n factorial,”
when said aloud — describes the product of multiplying all the integers from 1 to n. So 1! equals 1; 2! equals
2x1, or 2; 3! equals 3x2x1, or 6. And so on.

In the problem by Dr. Loh, the calculation for the number of triangles can be rewritten like this: 6!/(3!3!).

It can be written as C(6,3), which is read as “6 choose 3.” More broadly, it’s mathspeak for the number of ways
to choose 3 items out of 6. It is generalized into this form:

C(n, r) = n!/((n–r)!r!)

That’s the equation that students memorize, the useful shortcut. Give it a closer look. The first part — n!/(n–r)!
— is what captures the 6x5x4 in the triangle calculation. The r! is what eliminates the redundancies.

Which is to say, if you forgot the formula, you can reconstruct it by remembering what it’s supposed to solve.
Therein lies the beauty of math, or part of it. A good equation is more than a recitation of rules; it expresses
why those rules exist, reveals patterns and points to new problems to tackle.

You might also like