How Mathematics Works

How to Use Small Cases to Discover a General Pattern

Learn to compute small cases, organize the results, guess a formula and then find the reason it holds, with fully worked examples.

Key takeaways

  • Compute the smallest cases carefully and list them in order, including the trivial case if the problem allows it.
  • Look at differences, ratios, factors and remainders, and keep some answers unsimplified so their structure stays visible.
  • Test a guessed rule on a fresh case before trusting it, because several rules can fit the same short list.
  • A pattern becomes a theorem only when you can explain why the step from one case to the next always works.

When a problem asks about 100 objects, or about n of them, solve it first for 1, 2, 3 and 4. Write the answers in order, look at how each one grows out of the one before, guess a rule, test the guess on a case you have not used, and then look for the reason it must hold.

This habit turns a blank page into data. You will not always see the rule right away, and a rule you see is not yet proved. Still, a handful of honest small cases is often the fastest route from "I have no idea" to a precise statement worth proving.

Choose what to shrink

Start by finding the number in the problem that controls its size: how many people, lines, disks, digits or terms. Call it n. Then ask what the question looks like when n is as small as it can sensibly be.

Take a classic. In a room of 50 people, everyone shakes hands once with everyone else. How many handshakes happen? Fifty is too many to picture, so shrink it.

people n:      1   2   3   4   5
handshakes:    0   1   3   6   10

You can verify each entry by drawing dots and joining every pair. The gaps between neighbors are 1, 2, 3, 4. That is the clue: when the fifth person walks in, she shakes four hands, one with each person already there.

So the count for n people is 1 + 2 + ... + (n − 1), which equals n(n − 1)/2. For 50 people that is 50 × 49 / 2 = 1,225.

Notice that the small cases gave you more than numbers. Building case 5 from case 4 showed you the mechanism, and the mechanism works for any size.

Organize the evidence

A neat table does half the work. List n in increasing order with no gaps, and put your results directly underneath. Add a row for differences, and another for differences of differences if the first row is not constant.

Include the case n = 0 when it makes sense. It is often easy, and it pins down the constant term of a formula. Check small cases twice, since a single arithmetic slip can hide a simple rule behind apparent chaos.

Draw the cases in the same way each time. If you place the new line, tile or point in a consistent manner, you are far more likely to notice what it adds. If two different drawings of the same n give different counts, you have learned that the problem needs another condition.

Read the differences

Here is a problem where differences are decisive. Draw n straight lines in a plane so that no two are parallel and no three pass through one point. Into how many regions do they cut the plane?

lines n:              0   1   2   3   4
regions:              1   2   4   7   11
first differences:      1   2   3   4
second differences:       1   1   1

The first differences suggest that line number n adds n new regions. The reason is visible: the new line crosses the n − 1 earlier lines at n − 1 separate points, which cut it into n pieces, and each piece splits one old region in two.

When second differences are constant, a quadratic formula an² + bn + c fits the data. The constant second difference equals 2a, so here a = 1/2. The case n = 0 gives c = 1. The case n = 1 gives 1/2 + b + 1 = 2, so b = 1/2.

regions = n²/2 + n/2 + 1 = 1 + n(n + 1)/2

test on n = 4:    1 + 4 × 5/2 = 11     matches the table
predict n = 10:   1 + 10 × 11/2 = 56

Look past the differences

Differences are only one lens. Try several on any list that resists you.

Lens What to do Typical signal
Ratios Divide each term by the one before Near-constant ratio suggests powers
Neighbors of powers Add or subtract 1 from each term 1, 3, 7, 15 become 2, 4, 8, 16
Factoring Break each term into primes A repeated factor, or a perfect square
Remainders Keep only the last digit or a remainder A repeating cycle
Familiar lists Compare with squares, factorials, Pascal's triangle A shifted or doubled version

The second row solves the Tower of Hanoi. In that puzzle you move a stack of disks among three pegs, one disk at a time, never putting a larger disk on a smaller one. The fewest moves for 1, 2, 3 and 4 disks are 1, 3, 7 and 15. Adding 1 reveals powers of 2, so the guess is 2ⁿ − 1.

Remainders handle a question that looks hopeless: what is the last digit of 7¹⁰⁰? The powers of 7 end in 7, 9, 3, 1, and then 7 again. Since each last digit depends only on the one before, the cycle of length 4 repeats forever. The exponent 100 is a multiple of 4, so the last digit is 1.

Keep the structure visible

Simplifying too early can erase the pattern. Consider the sum 1/(1·2) + 1/(2·3) + ... + 1/(n(n + 1)).

n = 1:   1/2
n = 2:   1/2 + 1/6        = 2/3
n = 3:   2/3 + 1/12       = 3/4
n = 4:   3/4 + 1/20       = 4/5
guess:   n/(n + 1)

Here reducing the fractions helps. The opposite happens with the sum of cubes. The totals 1, 9, 36, 100 look unrelated until you write them as 1², 3², 6², 10². The numbers being squared are the triangular numbers, the running totals 1, 1 + 2, 1 + 2 + 3 and so on. That points to the formula (n(n + 1)/2)².

A useful rule is to record each result in two forms, the raw expression and the simplified value. When something such as 3 × 4 / 2 appears, leave it written that way until you have seen the next two cases. Figurate numbers such as triangles and squares turn up so often that they are worth knowing by sight.

When the pattern comes in blocks

Some lists make sense only once you cut them into pieces. In the Josephus problem, n people stand in a circle, numbered 1 to n. Counting begins at person 1, and every second person is removed (first 2, then 4, and so on around the shrinking circle) until one remains. Which seat survives?

n:          1  2  3  4  5  6  7  8  9  10
survivor:   1  1  3  1  3  5  7  1  3  5

The answers are all odd, climb by 2, and drop back to 1 at n = 1, 2, 4 and 8. Those are powers of 2. Each block starts at a power of 2 and counts through the odd numbers until the next one.

To state the rule, write n as 2ᵐ + k, where 2ᵐ is the largest power of 2 that is no bigger than n. The survivor appears to be seat 2k + 1. For n = 13 we have 13 = 8 + 5, so the prediction is seat 11. You can confirm it by crossing out names on paper.

The explanation again comes from linking one size to a smaller one. If the circle has an even number of people, the first lap removes all the even seats and leaves a circle half the size with the count starting at seat 1. That connects case 2n to case n, and a similar step handles odd sizes.

Had you stopped at n = 4, the survivors 1, 1, 3, 1 would have suggested very little. When a list looks erratic, compute further before giving up, and look for the places where it restarts.

Guess, then try to break the guess

A formula that fits the cases you used to build it has passed no test at all. Compute one more case independently, preferably by direct counting, and compare.

The small-case loop
Explain Find why case n forces case n + 1 Test Check a fresh case by direct work Compute Solve the smallest cases exactly Organize Tabulate results, differences, factors Conjecture State a precise rule for every n 1 2 3 4 5 Compute Solve the smallest cases exactly 1 Organize Tabulate results, differences, factors 2 Conjecture State a precise rule for every n 3 Test Check a fresh case by direct work 4 Explain Find why case n forces case n + 1 5

A failed test sends you back to the table with better data.

Remember too that a short list never determines a unique continuation. The list 1, 2, 4 could go on to 8 under doubling, or to 7 as in the line problem above. The situation that produces the numbers is what decides. Some patterns hold for dozens of cases and then fail, and famous examples of lying patterns are worth studying for exactly that reason.

Turn the pattern into a proof

The best proof usually comes from watching how one case becomes the next. Take the sums of odd numbers: 1 = 1, 1 + 3 = 4, 1 + 3 + 5 = 9. The guess is that the first n odd numbers add to n².

Picture an n by n square of dots. To grow it to side n + 1, you add an L-shaped border: n dots along one side, n along the other and 1 at the corner. That is 2n + 1 dots, which is exactly the next odd number.

Written in symbols, if the sum of the first n odd numbers is n², then the sum of the first n + 1 is n² + 2n + 1 = (n + 1)². Together with the starting case 1 = 1², this proves the claim for every positive whole number. The method is mathematical induction, and small cases are the natural way to discover what to feed into it.

No number of verified cases can replace that general step, which is the point of why checking a million cases is not a proof.

Common mistakes with small cases

The most frequent error is letting a hunch fill in the table. If you compute cases 1 to 3 honestly and then write case 4 from the rule you expect, the table can no longer contradict you.

A second error is choosing cases that are too special. A one-by-one square or a triangle with all sides equal has extra properties that larger or lopsided examples lack. Use the tiny cases to start the table, but make sure at least one entry is large enough to be typical.

A third is shrinking the wrong thing. In a problem about an m by n grid, setting both to the same value hides how each one matters. Fix m = 1 and vary n, then fix m = 2, and only then combine what you have learned.

A routine you can reuse

When you meet a new problem with a size in it, work through these steps.

  1. Name the size n and decide its smallest legal value.
  2. Solve at least four cases by hand, without any guessed formula.
  3. Tabulate, then try differences, factors and remainders.
  4. Write your conjecture as a full sentence with its conditions.
  5. Predict the next case, then compute it directly.
  6. Ask what the new object adds, and turn that into an argument.

If nothing appears, change what you record. Count something related, split the total into types, or vary a different quantity. This is one of the tactics inside Pólya's four steps, and it rewards patience: even a case table that yields no formula usually tells you where the real difficulty lives.

Written for 4Mathematics with AI writing tools and not reviewed line by line by a person. Check anything you rely on against a textbook or primary source. Report an error.

Keep reading

All 32 articles in How Mathematics Works →

Latest news on this topic