top of page
Search

Enumeration: The Logic Behind Counting

Writer: Kashvi Jhamnani
Kashvi Jhamnani
Sep 22
6 min read

1. What If Getting the Answer Isn’t Enough?

Imagine being told that a puzzle has exactly 49 possible answers. That sounds useful, until someone asks you to actually find all 49. How do you make sure you have not repeated one? How do you know when to stop? And how can you be certain there is not a 50th answer hiding somewhere?


This is where constructive combinatorics changes the question. Instead of beginning with “How many possibilities are there?”, we try to construct the possibilities themselves. This process is called enumeration, and it can involve anything from strings of symbols and collections of numbers to geometric shapes.


That shift sounds small, but it changes the mathematics. Once you start building the possibilities rather than only counting them, questions about identity, classification, patterns, algorithms and even computational complexity begin to appear.


2. First, What Exactly Are We Counting?

Before we count objects, we need to decide when two objects count as the same. Consider


10 = 2 + 2 + 3 + 3


and


10 = 2 + 3 + 2 + 3


If these numbers form a multiset, order does not matter, so the two expressions represent the same collection. But if they form a string, order matters, so they are different. The mathematics changes depending on what we decide the object actually is.


Geometry has the same problem. Triangle ABC and triangle CBA may refer to the same shape even though their names list the vertices differently. So before reaching for a counting formula, we need to know what makes two objects identical in the first place.


Once that is clear, trial and error can get us started. We can construct something, check whether it satisfies the conditions, reject it if it fails and try again. But as the number of possibilities grows, random guessing stops being practical. We need a way to organise the search.   


3. Turning Random Guessing Into a System

Suppose we want every three-letter string made using A, B and C, where two letters are identical but the string also contains two different letters. Instead of attacking the entire problem immediately, we can simplify it. First, find every string containing exactly two A's and one B:


AAB, ABA, BAA


Why exactly three? Once we know there are two A's and one B, the string is completely determined by the position of B. It can occupy position 1, 2 or 3. We have replaced random guessing with a rule that generates the possibilities.


Now consider the original problem. There are several ways to organise the search. We could classify strings according to the letter appearing twice, the letter appearing once, the missing letter, the number of A's or even the first letter. Each method organises the same collection differently.


This is one of the most useful ideas in enumeration. A complicated search can often be broken into smaller cases by choosing the right property. There may be several valid ways to do this, and comparing them can reveal structures that were difficult to see when everything was mixed together.


Figure 1: The same possibilities can be organised using different properties.


4. When a Table Explains Multiplication

Sometimes two properties determine where an object belongs. Then a two-dimensional table becomes useful. One property determines the row and another determines the column, so each cell represents a particular combination of the two.


If there are m possible row values and n possible column values, and every row can be combined with every column, the table contains m x n cells. The multiplication rule of combinatorics now has a visual explanation. We multiply because the possibilities form a complete rectangular grid.


But this also tells us when multiplication fails. If certain combinations are impossible, their cells have to be crossed out. The grid is no longer full, so multiplying the number of rows by the number of columns would count combinations that do not actually exist.


Consider the divisors of 1,000,000:


1,000,000 = 2⁶ x 5⁶


Every divisor can be formed by choosing a power of 2 from 2⁰  to 2⁶ and a power of 5 from 5⁰ to 5⁶. There are seven choices in each direction, so 7 x 7 = 49


The answer, 49, now comes directly from the structure of the table rather than appearing as an isolated calculation.   


Figure 2: Every cell combines one power of 2 with one power of 5


5. Mapping Decisions With a Tree

Tables work well when objects can be classified using a few fixed properties. Other problems unfold through a sequence of choices. An enumeration tree gives those choices a visible structure.


The problem begins at the root. At each branching point, a question or decision creates several possible paths. If a choice does not yet determine the final object, that path branches again. If a choice eventually becomes impossible, the branch ends with a cross.


This makes dead ends useful information. Suppose we are constructing a string one element at a time. An early choice may look valid but later make it impossible to satisfy one of the remaining conditions. The tree preserves that failed route instead of hiding it, making it easier to see where a search went wrong.


Trees can also reveal when a problem has no solution. If every possible path eventually reaches a contradiction, every leaf ends in a cross. The structure of the search itself shows what happened, rather than leaving us with a page of disconnected attempts.    


Figure 3: An example of a numeration tree


6. When Geometry Becomes Combinatorics

Enumeration is not limited to strings and numbers. Imagine a geometric figure divided into smaller regions and being asked to find every triangle hidden inside it. Simply staring at the diagram and circling triangles is unreliable. Small ones might be obvious, while larger triangles formed by several regions are easier to overlook.


A better approach is to classify the shapes according to how many regions form them. Start with individual regions, then pairs of neighbouring regions, then groups of three, four and so on. The visual puzzle becomes a systematic combinatorial problem. The same approach can be used to search for quadrilaterals or hexagons inside a configuration.    


Something even more interesting happens when two problems that look unrelated turn out to have the same structure. Suppose a triangle is formed by choosing two of four points on a base while its top vertex remains fixed. The problem reduces to choosing two positions from four. Now imagine a string where two positions must contain a particular type of bead. Again, the underlying problem is choosing positions.


This idea is called isomorphism. Once we recognise the same mathematical structure inside different-looking situations, we do not have to reinvent the solution each time. Ideas such as combinations can emerge from this recognition. Instead of starting with a formula and asking where to use it, we first understand the objects and then discover that several problems are really versions of the same thing.


7. How Fibonacci Numbers Appear From 0s and 1s

Now consider binary strings made only from 0 and 1. Call a string nice if it never contains two consecutive 1s.


For length 1:

0, 1


For length 2:

00, 01, 10


For length 3:

000, 001, 010, 100, 101.


As the length increases, the number of nice strings follows

1, 2, 3, 5, 8, 13, ...


The Fibonacci pattern has appeared, but there is a structural reason for it.


A nice string of length n can end in either 0 or 1. If it ends in 0, removing that final 0 leaves a nice string of length n-1. If it ends in 1, the previous digit has to be 0, otherwise we would have consecutive 1s. So it must end in 01. Removing those final two digits leaves a nice string of length n-2.


Therefore, if Nₙ is the number of nice strings of length n,


Nₙ = Nₙ₋₁ + Nₙ₋₂


That is the Fibonacci recurrence. What looks at first like a numerical coincidence is really a consequence of how the strings themselves can be constructed.


8. When the Search Becomes the Problem

Enumeration works nicely when there are only a few possibilities. But eventually a new question appears: how much work does the search require?


Imagine a page containing about 50 faces. In the first problem, you are shown one particular face and asked to find its identical match. You can compare the target with the other faces one by one. The amount of work grows roughly with the number of faces, giving a linear search.


Now remove the target and ask instead whether any two faces are identical. You no longer know what you are looking for. Potentially, each face has to be compared with many others. The number of comparisons grows much faster, giving a quadratic search. Two questions that sound almost identical can therefore require very different amounts of work.


A more dramatic example uses seven line segments of different integer lengths below one metre. Can some selection of them produce exactly one metre? One guaranteed strategy is to test every possible subset. Each segment has two choices, include it or leave it out, giving


2⁷ = 128


possible subsets.


This is an example of an exhaustive search. Even with only seven objects, there are already 128 cases to consider. As the number of objects increases, the number of subsets grows exponentially. A simple enumeration problem has now become a question of computational complexity: not just whether a solution exists, but whether searching for it is realistically manageable.


The question “How many?” can give us a number, but it does not tell us how that number was built. Constructive combinatorics starts one step earlier, with the possibilities themselves, and that is where unexpected structures like multiplication rules, Fibonacci patterns and computational complexity begin to appear.


 
 
 

Comments


3ae71c40-33e0-40db-804b-9086f4515ee7_edited.jpg

About Me

I’m Kashvi, a grade 12 student, and I break down complex math research papers into simple, easy-to-understand ideas. Through blogs and videos, I try to make advanced math feel less intimidating and more interesting to explore- take a look around!

Never miss a new post
bottom of page