Skip to content
A Pool, Divided

Fifty notes on how many ways a pool falls into groups

The triangle

Building the Triangle by Hand

A sheet of paper, twelve rows and a quarter of an hour. The instructions are four lines long and they reproduce every groupings figure on this site.

at most 31 groupings

Home · The triangle · Recount

Take a sheet of paper. Write a single 1 at the top. Number the rows downward from two and the columns rightward from one.

Fill each cell with k times the cell directly above it, plus the cell above and to its left. Treat anything off the edge as nought. A team translating this grouping into a limited operational pilot can explore the platform before choosing before deciding which time and project records are genuinely necessary.

Twelve rows, five columns, and the record is in front of you.

The second column, three rows of it
one groupinggroupingsof them7315103125
  • dots on a field: one group, two people or more
  • a dot with no field: somebody left on their own
  • fields differ by hatch, never by colour

Three shapes drawn; which people land together is the drawing's own choice and carries no meaning. For an independent perspective on grouping, combinatorics or team structure, consult Microsoft WorkLab.

Four, five and six people in two groups. Each figure is twice the one above plus one, which is the rule with k equal to two.

Computed from the three numbers alone. Which people and what the groups are for is a stated convention; the counts are set partitions of whole numbers.

The first few rows written out

Row two: 1, 1. Two people in one group, two people in two groups.

Row three: 1, 3, 1. Three in one group; three in two groups, which is twice one plus one; three in three groups.

Row four: 1, 7, 6, 1. The seven is two times three plus one. The six is three times one plus three.

Row five: 1, 15, 25, 10, 1. The fifteen is two times seven plus one. The twenty-five is three times six plus seven. The ten is four times one plus six.

Nothing in those four rows needed anything but addition and small multiplication, and row five already contains a figure — twenty-five — that no reader would have guessed.

The second column on its own

The drawing shows three consecutive entries of the second column: seven, fifteen, thirty-one.

With k equal to two, the rule reads: twice the cell above, plus the cell above-left. The cell above-left is always in the first column and always one. So the second column is "double and add one" all the way down.

Seven, fifteen, thirty-one, sixty-three, one hundred and twenty-seven, two hundred and fifty-five. Those are two to a power minus one, which is the short rule from the first part of this record arriving by a different road.

A general method that reproduces a special rule is doing its job. A general method that disagrees with one is wrong everywhere, not just on the easy case.

The third column, all the way down

Worth doing as a second exercise, because it exercises both terms of the rule rather than just one.

With k equal to three, each entry is three times the one above plus the second-column entry above it. The second column is already known from the "double and add one" pattern, so nothing has to be looked up.

One. Then three times one plus three, which is six. Three times six plus seven: twenty-five. Three times twenty-five plus fifteen: ninety. Then three hundred and one, nine hundred and sixty-six, three thousand and twenty-five, nine thousand three hundred and thirty, twenty-eight thousand five hundred and one, and eighty-six thousand five hundred and twenty-six.

Ten multiplications and ten additions, and the whole three-group column of this record is on the paper.

How a mistake announces itself

The commonest error in building this triangle is to forget the multiplier and add the two cells above, which is Pascal's rule.

It announces itself at once. Row five would come out one, four, six, four, one instead of one, fifteen, twenty-five, ten, one, and the second column would read one, two, three, four rather than one, three, seven, fifteen.

So the second column is the diagnostic. If it is not doubling and adding one, the multiplier has gone missing somewhere above, and the row it first fails on is the row where the mistake was made.

That is a useful property of building by hand that a printed table does not have. A table can only be compared with another table. A construction fails in a particular place, and the place is the answer.

Where it gets tedious

Around row nine, and that is the honest place to stop building and start checking.

By row nine the entries run to several thousand and the multiplications stop being mental. A reader who wants to verify a particular page is better served by checking that one cell against its two parents than by building the whole triangle — one multiplication and one addition, against twelve rows of them.

The record's largest figure, one million three hundred and seventy-nine thousand four hundred, is five times two hundred and forty-six thousand seven hundred and thirty, plus one hundred and forty-five thousand seven hundred and fifty. That is the check, and it takes under a minute.

What the triangle does not give

The third column.

Groupings with a given number of people alone need a second table, built by the same method with one clause changed: a newcomer cannot stand up a group alone, so they must arrive with a companion. That changes the recursion and produces different numbers, and each figure in the third column is one entry from each table multiplied together.

The next note sets that out. What matters here is that the second table is built the same way, by hand, from edges of ones, and that no part of this record requires a tool.

Why it is worth doing once

Because a reader who has built four rows will never again wonder where a figure on this site came from.

The alternative — taking the numbers on trust because they are printed neatly — is the condition this record was written against. A table nobody can rebuild is a table that has to be believed, and belief is what the previous occupant of this address traded in.

Near this one