Schools sometimes teach “fact families:” triangles that connect three numbers based on their sum and differences. For example, the triangle below expresses the series of relationships: 5 + 3 = 8, 8 - 5 = 3, and 8 - 3 = 5.

Nothing too mysterious is happening yet, but the triangle shape calls out to be extended. So let’s extend it! I call these shapes “pyramids,” and I like them best if I can fill them with positive whole numbers, without repeating any number, so that every number is the sum of the two directly below it. Following mathematician’s penchants for making up words when we need them, I’ll call pyramids that satisfy all these conditions nice.
For example, here’s a nice pyramid with an 8 at its top. It is nice because:
- It is filled with positive whole numbers
- No number occurs more than once in the pyramid
- Every number is the sum of the two below it.

I claim that 8 is the smallest number that can be in a nice pyramid with three layers. (Do you believe me?)
Puzzle 1.
Fill in these pyramids so that they are nice. In other words, fill in the pyramids so every number is the sum of the two positive whole numbers below it, and no number occurs more than once.

Puzzle 2.
Fill in the blank squares to make a nice pyramid below.

Puzzle 3.
What is the smallest number that can be at the top of a nice pyramid with 5 layers?

(Hint: try solving this for pyramids with 3 or 4 layers first)
Solutions
One way to approach this problem is just to mess around with it.
Solution to puzzle 1.
There are several answers. Here is one possibility for each.

As you play with the numbers in the bottom row, however, you might notice that certain spaces have a larger impact than the others. We can see this explicitly with help from a little algebra. Put variables x, y, and z in the bottom row, and see what happens.

All this is telling us is that the middle space on the bottom contributes twice its value to the top of the pyramid. That makes sense, since the middle space passes its value to both the left and right spaces above.
Following this same logic in the larger pyramids, we can see that the middle two spaces in the bottom row of the 4-layer pyramid contribute triple their value to the spot at the top, while the leftmost and rightmost spot contribute their value just once.

Put 1 and 2 in the middle spots, and you know you’ll be contributing 9 to the total at the top. That means the spots on the outside must add up to eleven in the second puzzle. And indeed, we can find a solution that works.
Solution to puzzle 2.
There is at least one other solution to this puzzle. Can you find it?

If we want to find out how much each spot on the bottom row contributes to the value at the top of the pyramid, there’s a mathematical object that can tell us, without us having to do the algebra or colour tracking like we did earlier. That object is Pascal’s Triangle. Pascal’s Triangle is a kind of Pyramid in reverse: each number is the sum of the two spots above it.

It turns out that these numbers keep track of exactly how much each spot contributes to the total at the top of our pyramid. In other words, the middle spot in the layer five pyramid contributes 6 times its value to the top spot. The next two spaces contribute 4 times their value to the top spot. The outside spaces contribute 1 times their value.
This means that we’ll get the smallest outcome if we use the smallest possible numbers in the centre spots. If we didn’t have to worry about repeating numbers in the higher layers, we might make the bottom row 5, 3, 1, 2, 4, which would give us
5 + (4 x 3) + (6 x 1) + (4 x 2) + 4 = 5 + 12 + 6 + 8 + 4 = 35 as the maximum. Avoiding repetitions will force us to be a bit larger.
Solution to puzzle 3.
It’s possible to make 44 appear nicely at the top of a pyramid this size as well.

There’s a natural research question here: continue finding the smallest possible top of the nice pyramids with 6 layers, 7 layers, and so on. Is there some pattern to these numbers?
Happy puzzling!