Ages: 11โ14 ยท Duration: 90 minutes ยท Topics: Combinatorics, Recurrence Relations, Geometric Series, Symmetry
Source: FSJM โ 38th Competition, Challenge 14 (2024)
"Imagine stacking paper cups in a triangle: 1 cup on top, 2 cups below, 3 cups on the bottom row. You pour water into the top cup. When it overflows, the excess spills equally into the 2 cups directly below. What happens?"
๐ฃ๏ธ "Turn to your neighbour โ how much water do you need to pour into the top cup to fill all 6 cups?"
Wait โ let's start even simpler!
Stack 3 cups in a single column: cup A on top, cup B in the middle, cup C at the bottom. Each cup holds exactly 1 litre. When a cup overflows, all the excess flows down into the next cup.
| Pour into A | A keeps | B receives | B keeps | C receives | C keeps | Wasted? |
|---|---|---|---|---|---|---|
| 1 L | 1 | 0 | 0 | 0 | 0 | No |
| 2 L | 1 | 1 | 1 | 0 | 0 | No |
| 3 L | 1 | 1 | 1 | 1 | 1 | No |
| 4 L | 1 | 1 | 1 | 1 | 1 | 1 L wasted! |
โ "Notice: in a single column, there's no waste until you overshoot. You need exactly 3 litres. But what happens when cups branch โ when one cup feeds multiple cups below?"
Now let's try 3 rows: 1 cup on top, 2 in the middle, 3 on the bottom. When a cup overflows, excess splits equally between the 2 cups directly below it.
[A] Row 1: 1 cup
[B][C] Row 2: 2 cups
[D][E][F] Row 3: 3 cups
โ๏ธ "Work independently for 2 minutes: if we pour $C$ litres into cup A, how much does each bottom cup receive?"
Tracing the flow:
So the bottom row receives:
| Cup | Sources | Amount Received |
|---|---|---|
| D (corner) | B only | $\frac{C-3}{4}$ |
| E (centre) | B and C | $\frac{C-3}{4} + \frac{C-3}{4} = \frac{C-3}{2}$ |
| F (corner) | C only | $\frac{C-3}{4}$ |
For all cups to be full, the corners must get at least 1:
$$\frac{C-3}{4} \ge 1 \quad\Longrightarrow\quad C \ge 7$$At $C = 7$: corners get exactly 1, centre E gets 2 (overflows 1, which is wasted).
$$\text{Waste} = C - 6 = 7 - 6 = \boxed{1 \text{ litre}}$$Now let's switch from triangles to squares. A sommelier stacks champagne flutes in a square pyramid:
Each flute holds exactly 1 unit of champagne. When a flute overflows, the excess splits equally among the 4 flutes directly below it. On the bottom level, any overflow is wasted.
Question: For a 3-storey square pyramid ($1 + 4 + 9 = 14$ flutes), how much champagne is wasted by the time all flutes are full?
Let's start even smaller โ a 2-storey pyramid: 1 flute on top, $2 \times 2 = 4$ flutes below (5 total).
Flute T overflows โ excess splits 4 ways to A, B, C, D. By symmetry, each bottom flute gets $\frac{C-1}{4}$.
For all to be full: $\frac{C-1}{4} \ge 1 \implies C \ge 5$.
At $C = 5$: each bottom flute gets exactly 1. Waste = 0! ๐
Now the interesting case: $1 + 4 + 9 = 14$ flutes.
Level 1 (top): 1 flute. Receives $C$. Overflow: $C - 1$.
Level 2: $2 \times 2 = 4$ flutes. By symmetry, each gets $\frac{C-1}{4}$. Overflow from each: $\frac{C-1}{4} - 1 = \frac{C-5}{4}$.
Level 3: $3 \times 3 = 9$ flutes. Each level-2 flute at position $(i, j)$ sends overflow to four level-3 positions: $(i, j)$, $(i+1, j)$, $(i, j+1)$, $(i+1, j+1)$. So each bottom flute receives $\frac{1}{4}$ of the overflow from every level-2 flute sitting above it.
Let's count how many sources feed each level-3 position:
| Position(s) | Type | Sources from Level 2 | Count |
|---|---|---|---|
| $(1,1), (1,3), (3,1), (3,3)$ | Corner | 1 level-2 flute | 1 |
| $(1,2), (2,1), (2,3), (3,2)$ | Edge | 2 level-2 flutes | 2 |
| $(2,2)$ | Centre | 4 level-2 flutes | 4 |
Each source provides $\frac{1}{4}$ of its overflow $\frac{C-5}{4}$, which is $\frac{C-5}{16}$ per contribution.
| Type | Count | Champagne Received | At $C = 21$ |
|---|---|---|---|
| Corner | 4 | $1 \times \frac{C-5}{16} = \frac{C-5}{16}$ | $1$ |
| Edge | 4 | $2 \times \frac{C-5}{16} = \frac{C-5}{8}$ | $2$ |
| Centre | 1 | $4 \times \frac{C-5}{16} = \frac{C-5}{4}$ | $4$ |
The corners receive the least. Setting $\frac{C-5}{16} = 1$ gives $C = 21$.
Verification: At $C = 21$, bottom-level flutes receive:
FSJM Competition โ Challenge 14: Clumsy Sommelier
A sommelier prepares a champagne fountain. He places 25 flutes in a square, then places 16 flutes in a square on top, then 9, then 4, then 1 to obtain a 5-storey pyramid.
He then pours champagne into the top flute until all are full. When one flute overflows, the excess flows evenly into the four flutes below. But for the flutes at the very bottom that overflow, the excess is wasted.
How much champagne will have been wasted by the time all the flutes are filled?
Give the answer in number of flutes (whole number or irreducible fraction).
Total flutes in the pyramid:
$$1^2 + 2^2 + 3^2 + 4^2 + 5^2 = 1 + 4 + 9 + 16 + 25 = 55$$โ "Does anyone recall the formula for the sum of the first $n$ squares?"
$$\sum_{k=1}^{n} k^2 = \frac{n(n+1)(2n+1)}{6}$$Check: $\frac{5 \times 6 \times 11}{6} = 55$. โ
๐ฃ๏ธ "From Part 1, which position on the bottom layer fills last? Turn to your neighbour and discuss!"
The corner of each level is the bottleneck. Let's trace the corner chain โ the sequence of corner flutes from top to bottom.
The corner at level $k$ receives overflow from only one flute above: the corner at level $k - 1$. The overflow splits 4 ways, and the corner below gets exactly $\frac{1}{4}$ of it.
If $T_k$ = total champagne flowing into the corner of level $k$:
$$T_1 = C \qquad\text{(total poured into the top)}$$ $$T_{k+1} = \frac{T_k - 1}{4} \qquad\text{(corner below gets }\tfrac{1}{4}\text{ of overflow)}$$๐งฉ "Challenge: try this before I show the answer!"
For ALL flutes to be full, the bottom corner must receive at least 1 unit: $T_5 \ge 1$.
The absolute minimum is $T_5 = 1$ (just barely full). Working backwards:
| Level $k$ | Required $T_k$ | Computation |
|---|---|---|
| 5 (bottom) | $1$ | Given: just full |
| 4 | $5$ | $T_4 = 4 \times 1 + 1 = 5$ |
| 3 | $21$ | $T_3 = 4 \times 5 + 1 = 21$ |
| 2 | $85$ | $T_2 = 4 \times 21 + 1 = 85$ |
| 1 (top) | $341$ | $T_1 = 4 \times 85 + 1 = 341$ |
So we must pour $C = 341$ flutes' worth of champagne into the top!
Every flute in the pyramid holds exactly 1 unit. There are 55 flutes total. All champagne that isn't held by a flute is wasted:
Let's verify by adding up the waste from each bottom-layer position. At $C = 341$, the 6 distinct position types on the $5 \times 5$ bottom layer:
| Type | Positions | Count | Received | Waste each |
|---|---|---|---|---|
| Corner | $(1,1)$, $(1,5)$, $(5,1)$, $(5,5)$ | 4 | $1$ | $0$ |
| Near-corner edge | $(1,2)$, $(2,1)$, etc. | 8 | $\frac{73}{16}$ | $\frac{57}{16}$ |
| Mid-edge | $(1,3)$, $(3,1)$, $(3,5)$, $(5,3)$ | 4 | $\frac{57}{8}$ | $\frac{49}{8}$ |
| Inner corner | $(2,2)$, $(2,4)$, $(4,2)$, $(4,4)$ | 4 | $\frac{311}{16}$ | $\frac{295}{16}$ |
| Inner edge | $(2,3)$, $(3,2)$, $(3,4)$, $(4,3)$ | 4 | $\frac{119}{4}$ | $\frac{115}{4}$ |
| Centre | $(3,3)$ | 1 | $\frac{181}{4}$ | $\frac{177}{4}$ |
Total waste:
$$4(0) + 8\!\left(\frac{57}{16}\right) + 4\!\left(\frac{49}{8}\right) + 4\!\left(\frac{295}{16}\right) + 4\!\left(\frac{115}{4}\right) + 1\!\left(\frac{177}{4}\right) = \frac{4576}{16} = 286 \quad\checkmark$$We discovered that the "corner chain" satisfies:
$$T_{k+1} = \frac{T_k - 1}{4}$$or equivalently, reading bottom-to-top:
$$T_k = 4 \, T_{k+1} + 1$$This is a linear recurrence relation โ a rule that tells you each term from the previous one. It appears everywhere in mathematics and computer science: population growth, compound interest, fractal dimensions, algorithm analysis.
Let's solve it to find a closed-form formula (a direct expression without recursion).
We want to solve $f(n) = 4\,f(n-1) + 1$ with $f(1) = 1$.
Define $g(n) = f(n) + \frac{1}{3}$. Then:
$$g(n) = f(n) + \frac{1}{3} = 4\,f(n-1) + 1 + \frac{1}{3} = 4\left(f(n-1) + \frac{1}{3}\right) = 4\,g(n-1)$$So $g(n)$ is a geometric sequence with ratio 4!
$$g(n) = g(1) \times 4^{n-1} = \left(1 + \frac{1}{3}\right) \times 4^{n-1} = \frac{4}{3} \times 4^{n-1} = \frac{4^n}{3}$$Therefore:
$$f(n) = g(n) - \frac{1}{3} = \frac{4^n}{3} - \frac{1}{3} = \frac{4^n - 1}{3}$$| $n$ | $f(n) = \frac{4^n - 1}{3}$ | Check: $4\,f(n-1) + 1$ |
|---|---|---|
| 1 | $\frac{4-1}{3} = 1$ | base case โ |
| 2 | $\frac{16-1}{3} = 5$ | $4(1)+1 = 5$ โ |
| 3 | $\frac{64-1}{3} = 21$ | $4(5)+1 = 21$ โ |
| 4 | $\frac{256-1}{3} = 85$ | $4(21)+1 = 85$ โ |
| 5 | $\frac{1024-1}{3} = 341$ | $4(85)+1 = 341$ โ |
For an $n$-storey pyramid, the total number of flutes is $\sum_{k=1}^{n} k^2 = \frac{n(n+1)(2n+1)}{6}$.
The total champagne poured is $C(n) = \frac{4^n - 1}{3}$.
The waste is:
$$W(n) = \frac{4^n - 1}{3} - \frac{n(n+1)(2n+1)}{6}$$| $n$ | Pour $C(n)$ | Flutes | Waste $W(n)$ |
|---|---|---|---|
| 1 | 1 | 1 | 0 |
| 2 | 5 | 5 | 0 |
| 3 | 21 | 14 | 7 |
| 4 | 85 | 30 | 55 |
| 5 | 341 | 55 | 286 |
| 6 | 1365 | 91 | 1274 |
โ "Notice how the waste grows explosively! For just 6 storeys, you waste 1274 flutes' worth โ 14 times the capacity of the pyramid! The exponential $4^n$ dominates the polynomial $n^3/3$."
| Problem | Answer |
|---|---|
| Compute $C(7)$ | $(4^7 - 1)/3 = 16383/3 = 5461$ |
| How many flutes in a 7-storey pyramid? | $7 \times 8 \times 15 / 6 = 140$ |
| Waste for 7 storeys? | $5461 - 140 = 5321$ |
| What fraction of champagne is wasted for $n = 5$? | $286/341 \approx 83.9\%$ |
Prerequisites: Arithmetic, tables
The most direct approach: compute how much champagne every single flute receives, layer by layer. Each flute either sits in a corner (1 source above), on an edge (2 sources), or in the interior (4 sources).
We pour $C$ into the top and track everything:
Level 1: 1 flute. Receives $C$. Overflow: $C - 1$.
Level 2: 4 flutes, all identical by symmetry.
Level 3: 9 flutes in 3 types.
| Type | Count | Received | Overflow |
|---|---|---|---|
| Corner | 4 | $\frac{C-5}{16}$ | $\frac{C-21}{16}$ |
| Edge | 4 | $\frac{C-5}{8}$ | $\frac{C-13}{8}$ |
| Centre | 1 | $\frac{C-5}{4}$ | $\frac{C-9}{4}$ |
Level 4: 16 flutes in 3 types.
| Type | Count | Received | Overflow |
|---|---|---|---|
| Corner | 4 | $\frac{C-21}{64}$ | $\frac{C-85}{64}$ |
| Edge | 8 | $\frac{3C-47}{64}$ | $\frac{3C-111}{64}$ |
| Interior | 4 | $\frac{9C-109}{64}$ | $\frac{9C-173}{64}$ |
Level 5 (bottom): 25 flutes in 6 types.
| Type | Example | Count | Received | At $C = 341$ |
|---|---|---|---|---|
| Corner | $(1,1)$ | 4 | $\frac{C-85}{256}$ | $1$ |
| Near-corner edge | $(1,2)$ | 8 | $\frac{C-49}{64}$ | $\frac{73}{16}$ |
| Mid-edge | $(1,3)$ | 4 | $\frac{3C-111}{128}$ | $\frac{57}{8}$ |
| Inner corner | $(2,2)$ | 4 | $\frac{C-30}{16}$ | $\frac{311}{16}$ |
| Inner edge | $(2,3)$ | 4 | $\frac{3C-71}{32}$ | $\frac{119}{4}$ |
| Centre | $(3,3)$ | 1 | $\frac{9C-173}{64}$ | $\frac{181}{4}$ |
Setting the minimum (corners) to 1: $\frac{C-85}{256} = 1 \implies C = 341$.
Sum of all waste from bottom layer:
$$4(0) + 8\!\left(\frac{57}{16}\right) + 4\!\left(\frac{49}{8}\right) + 4\!\left(\frac{295}{16}\right) + 4\!\left(\frac{115}{4}\right) + 1\!\left(\frac{177}{4}\right) = \frac{4576}{16} = 286 \quad\checkmark$$Prerequisites: Basic fractions
Forget about 55 flutes โ we only need to track one: the corner.
At each level, the corner flute sits at position $(1,1)$. It receives overflow from only the corner of the level above. This creates a chain: the corner of level 1 feeds the corner of level 2, which feeds the corner of level 3, and so on. Each step divides the overflow by 4.
Let $T_k$ = champagne flowing into the corner of level $k$.
$$T_1 = C, \qquad T_{k+1} = \frac{T_k - 1}{4}$$For all flutes to be full, we need $T_5 \ge 1$ at a minimum. Setting $T_5 = 1$ and working backwards:
$$T_5 = 1$$ $$T_4 = 4(1) + 1 = 5$$ $$T_3 = 4(5) + 1 = 21$$ $$T_2 = 4(21) + 1 = 85$$ $$T_1 = 4(85) + 1 = 341 = C$$Every other position on a given level receives from more sources:
Meanwhile the corner gets from 1 flute โ only $\frac{1}{4}$ share. So corners always receive the least, and the bottom corner fills last.
Prerequisites: Geometric series, exponents
From Solution 2, the minimum pour for an $n$-storey pyramid satisfies:
$$f(n) = 4\,f(n-1) + 1, \qquad f(1) = 1$$Recognise the pattern:
| $n$ | $f(n)$ | In another form |
|---|---|---|
| 1 | 1 | $4^0$ |
| 2 | 5 | $4^1 + 4^0$ |
| 3 | 21 | $4^2 + 4^1 + 4^0$ |
| 4 | 85 | $4^3 + 4^2 + 4^1 + 4^0$ |
| 5 | 341 | $4^4 + 4^3 + 4^2 + 4^1 + 4^0$ |
This is a geometric series with first term 1 and common ratio 4:
$$f(n) = \sum_{k=0}^{n-1} 4^k = \frac{4^n - 1}{4 - 1} = \frac{4^n - 1}{3}$$For $n = 5$:
$$C = \frac{4^5 - 1}{3} = \frac{1024 - 1}{3} = \frac{1023}{3} = 341$$The formula $f(n) = \frac{4^n-1}{3}$ satisfies the recurrence:
$$4 \cdot f(n-1) + 1 = 4 \cdot \frac{4^{n-1}-1}{3} + 1 = \frac{4^n - 4}{3} + \frac{3}{3} = \frac{4^n - 1}{3} = f(n) \quad\checkmark$$Prerequisites: Geometric series, dimensional reasoning
What if the overflow split weren't 4-way? In general, with split factor $s$, the corner-chain recurrence is:
$$f(n) = s \cdot f(n-1) + 1, \qquad f(1) = 1$$The solution is:
$$f(n) = \frac{s^n - 1}{s - 1}$$| Split $s$ | $f(5)$ | Flutes | Waste | Waste % |
|---|---|---|---|---|
| 1 (column) | 5 | 5 | 0 | 0% |
| 2 (binary) | 31 | 15 | 16 | 52% |
| 3 (triangular) | 121 | 35 | 86 | 71% |
| 4 (square) | 341 | 55 | 286 | 84% |
| 8 (cubical) | 37449 | 55 | 37394 | 99.9% |
Watch champagne cascade through the pyramid! Click Pour to start, or adjust the slider to control how much champagne is poured.
๐พ Open 3D Isometric View (Three.js)
| Quantity | Exact Value | Approximate |
|---|---|---|
| Total champagne poured | $\frac{4^5 - 1}{3} = 341$ flutes | โ |
| Total pyramid capacity | $55$ flutes | โ |
| Champagne wasted | $\boldsymbol{341 - 55 = 286}$ flutes | โ |
| Waste as fraction of pour | $\frac{286}{341} = \frac{26}{31}$ | $\approx 83.9\%$ |
| Method | Key Idea | Prerequisites |
|---|---|---|
| Solution 1 โ Simulation ๐ฅ | Track all 55 flutes, layer by layer | Fractions, tables |
| Solution 2 โ Corner Chain ๐ฅ | Only track the corner: $T_{k+1} = (T_k - 1)/4$ | Fractions |
| Solution 3 โ Closed Form ๐ฅ | Solve the recurrence: $C = (4^n - 1)/3$ | Geometric series |
| Solution 4 โ Generalisation ๐ | Replace 4 with any split factor $s$ | Series, dimensional reasoning |
1. 4-storey waste: $C(4) = (4^4-1)/3 = 85$. Flutes: $1+4+9+16=30$. Waste: $85 - 30 = 55$.
2. Centre of bottom: $\frac{9(341) - 173}{64} = \frac{2896}{64} = \frac{181}{4} = 45.25$.
3. Triangular 4-storey: $C = (3^4-1)/2 = 40$. Flutes: $1+3+6+10 = 20$. Waste: $20$.
4. Waste fraction = $1 - \frac{n(n+1)(2n+1)/6}{(4^n-1)/3} = 1 - \frac{n(n+1)(2n+1)}{2(4^n - 1)}$. Since $4^n$ grows exponentially and $n^3$ polynomially, the fraction $\to 1$ as $n \to \infty$.
5. Only $n = 1$ (1 flute) and $n = 2$ (5 flutes) have zero waste. For $n \ge 3$, corners and centres fill at different rates.
6. Triangular 5-storey: $C = (3^5-1)/2 = 121$. Flutes: $1+3+6+10+15 = 35$. Waste: $121 - 35 = 86$.
7. See the full layer-by-layer computation in Solution 1 above.
8. The 2D distribution follows the convolution of discrete uniform distributions โ creating a "tent" shape that peaks dramatically at the centre.
9. $(4^n - 1)/3 \le 500 \implies 4^n \le 1501 \implies n \le 5$ (since $4^5 = 1024$). He can fill a 5-storey pyramid with 159 units to spare.
10. Yes โ the distribution converges to a 2D Gaussian by the CLT, since each layer's distribution is a convolution with a discrete uniform kernel.
11. With fan-out 6: $C(n) = (6^n - 1)/5$.
12. Minimising the split factor $s$ minimises waste. Triangular ($s = 3$) beats square ($s = 4$) beats hexagonal ($s = 6$).