How To Really Solve This Combinatorics Puzzle?β€Š-β€ŠAn image showing a total of thirteen planar points. Of the thirteen, six pink points are collinear. That is, they lie along a straight line (visualized as a pink broken line). Similarly, four green points and three black points are collinear along a green broken line and a black broken line respectively.

This combinatorics puzzle offers you a nice opportunity to brush up on your logical reasoning skills. You are presented with a total of thirteen planar points. Of the thirteen, the six pink points are collinear. That is, they lie along a straight line (visualized as the pink broken line). Similarly, the four green points and the three black points are collinear along the green broken line and the black broken line respectively.

Given this premise, your job is to figure out how many straight lines you can construct using these planar points. Before you proceed, note that we are talking about straight lines here and not line-segments. Unlike a line-segment, a straight line does not have end points; it extends indefinitely either side.

Here are the conditions for the puzzle:

1. Each line should use at least two points.

2. If two or more lines are collinear, they should be considered as one line. In other words, if there are an infinite number of lines possible through 2 or more collinear points, only one of them should be considered for the final count.

Hint:

You could try taking advantage of certain geometrical properties of straight lines. Using combinatorics, you would then be able to map your general understanding onto the given problem space.

Spoiler Alert:

If you wish to try this puzzle out on your own, now is the time. Once you’ve given the puzzle a try, you may choose to continue reading this essay. Beyond this section, I will be explicitly discussing solutions to the puzzle.

This essay is supported by Generatebg

A product with a beautiful background featuring the sponsor: Generatebg - a service that generates high-resolution backgrounds in just one click. The description says "No more costly photographers" and displays a "Get Started" button beneath the description.

Solving the Combinatorics Puzzle for a Special Case

The first thing we need to note in this puzzle is that the problem space consists of three different sets of collinear points. This adds an annoying layer of complexity to the puzzle.

Instead of worrying about collinear points right from the start, let us make it a tad bit simpler by looking at a hypothetical problem space in which no three points are collinear. Such a space of thirteen points would look like this:

How To Really Solve This Combinatorics Puzzle?β€Šβ€”β€ŠAn image showing 6 pink points, four green points and three black points in a plane. However, in this image, no three points are collinear. They appear to be randomly distributed.
A special case where no three points are collinear β€” Illustration created by the author

Now, we just need to worry about two factors:

1. The total number of points in the plane

2. The total number of possible lines that can be constructed using these points.

The fundamental property of a line is that it must pass through at least two points. In our special problem case, no three points are collinear. What this means is that we could construct a line by just letting it pass through any two points randomly.

How To Really Solve This Combinatorics Puzzle?β€Šβ€”β€ŠTwo sets of random points are chosen from the previous set of 13 points to create two separate straight lines.
Examples of straight lines created using two pairs of points β€” Illustration created by the author

The question then becomes:

β€œHow many combinations of point-pairs could be chosen from a total of thirteen planar points?”

The answer is: 13Cβ‚‚ = 78 (where C denotes the combination function from combinatorics).

Now that we have arrived at a solution for our special case, let us try and extend this result to our original problem space.


How to Solve the Combinatorics Puzzle?

The special case that we just solved had no more than two collinear points. But in our original problem, we have three different sets of collinear points. This means that our original problem represents a subset of the special case.

In other words, the total number of possible straight lines in our original problem space has to be necessarily less than that in the special problem space. So, we need to subtract something from the special case’s solution (78). What could that be?

Subtracting Redundant Combinations

Let us take a look at the set of pink collinear points. If I construct a line by allowing it to pass through any two of these points, the line also passes through all the rest of the points. So, one line covers all combinations as far as this collinear set of points is concerned.

How To Really Solve This Combinatorics Puzzle?β€Šβ€”β€ŠAn image showing the original problem space again. Here, there are two line drawn using the set of pink collinear points. One straight line (A) is drawn by letting it pass through the second and third pink points (from the left). Another straight line (B) is constructed by letting it pass through all the pink points. Both the lines, A and B, are collinear!
One line covers all combinations for a given set of collinear points β€” Illustration created by the author

By analogy, we could arrive at the same conclusion for the green and black collinear sets of points respectively. By doing this, we arrive at an equation where we subtract the individual collinear line combinations from the total number of all possible line combinations for the special case. We can express this equation as follows:

13C₂–6C₂–4C₂–3Cβ‚‚

Before we call it a day, there is one last thing we need to take into account. By subtracting the above terms, we have discounted all possible collinear combinations. This is not true. We have three sets of collinear points. So, we will need to take the corresponding three collinear lines into account as well. If we do this, we arrive at the following equation:

13C₂–6C₂–4C₂–3Cβ‚‚ + 3

= 78–15–6–3+3

=57

There we go. We can construct a total of 57 straight lines in the original combinatorics puzzle space!


If you’d like to get notified when interesting content gets published here, consider subscribing.

Further reading that might interest you: How Much String Would You Need To Wrap The Earth? and Are We Living In A Simulation?

If you would like to support me as an author, consider contributing on Patreon.

Street Science

Explore humanity's most curious questions!

Sign up to receive more of our awesome content in your inbox!

Select your update frequency:

We don’t spam! Read our privacy policy for more info.