← All 70 questions
Question 16·St John's College·2025·Openable by every candidate at the counting level, discriminating at the justification level — how many independent routes you can build, and where you notice the method breaks
Counting by building a recurrence — small cases first, a structural cut, and Fibonacci reached by three independent routes
8-12 minutes at interview pace
Live video, shared whiteboard. Everything under BOARD is written with the pen; everything under SAY is spoken over it, at the same time. Never write a line in silence, and never say a line you have not put on the board.
In how many ways can you tile a 2 x n grid with 1 x 2 dominoes? Can you find a general formula?
Answer: T(n)=Fn+1 (with F1=F2=1): T(n)=φn+1−ψn+15=∑k=0⌊n/2⌋(n−kk),φ=1+52, ψ=1−52

The whiteboard, beat by beat

1 · Orient · beat 1 of 8

Name the object and its invariant before counting anything

board 2×n,T(n)=#tilings
area: 2n cells, 2 per domino ⇒ n dominoes
Candidates: 2n? n+1? — settle on small boards
What you say, out loud

Before I count anything, let me say what the object is: a board two rows by n columns, tiled by one-by-two dominoes, and T of n is the number of tilings.

One cheap invariant: the board has 2n cells and each domino covers two, so every tiling uses exactly n dominoes. That does not count anything, but it stops me writing nonsense later.

I could guess two to the n, every column independent, or n plus one. I am not going to guess. I will enumerate the small boards first and let the count decide.

Why this beat exists: The examiner is listening for modelling before computation: define the quantity, note an invariant, and refuse to guess the answer cold.
2 · Small cases · beat 2 of 8

Enumerate n = 1..6 by hand — no formula allowed yet

n123456T(n) (enumerated)1235813
n=1: V; n=2: VV, HH; n=3: VVV, VH, HV
13≠26=64, 5≠24=16 at n=4: guess 2n dead
1,2,3,5,8,13: Fibonacci? six terms, no proof
2 x 4: all 5 tilings (V = vertical, H = horizontal pair)VVVVVVHVHVHVVHHsame backtracking count for n = 0..6: 1, 1, 2, 3, 5, 8, 132^4 = 16 is not 5, so columns are not independent
The five tilings of the 2 x 4 board, listed exhaustively by backtracking: the count is 5, not 2^4 = 16, so no per-column independence exists — and the sequence 1, 1, 2, 3, 5 already forces a coupling between neighbouring columns.
What you say, out loud

One by one. The one-by-one board has a single tiling: one vertical domino. The two-by-two board has two: both vertical, or the two horizontals stacked. Three columns: three tilings. Four columns: I drew all five above: VVVV, VVH, VHV, HVV, HH, and a backtracking count on the same board gives five, so the drawing is exhaustive.

Pushing on to five and six columns I get 8 and 13. So the sequence is 1, 2, 3, 5, 8, 13.

First casualty: two to the n. At n equals four that predicts sixteen against a true five, because a horizontal pair straddles two columns and they are not independent. Second observation: each term looks like the sum of the previous two, but six agreeing terms is a hint, not a proof. I need to see why.

Why this beat exists: The key-points page asks for exactly this move: enumerate n = 1, 2, 3, spot the pattern. Draw the n = 4 board fully so the list is checkable, and let the data kill the naive guess before proposing the real one.
3 · Set up · beat 3 of 8

Cut the right end: exactly two closures, disjoint and exhaustive

right end: V at n, or H at n−1
T(n)=T(n−1)+T(n−2)(n≥2)
disjoint; exhaustive; no third case
seed T(0)=1, not 0: place nothing
Else T(2)=T(1)+T(0) gives 1+0=1, enumeration gave 2
Case 1: last column closed by one vertical domino2 x (n-1)remainder: T(n-1) waysCase 2: last two columns closed by two horizontals2 x (n-2)remainder: T(n-2) ways.one lone horizontal: thecell below has no partner.disjoint: column n is covered by different pieces.exhaustive: the rightmost cell must be covered by one of them.
Every tiling of the 2 x n board ends in exactly one of these two shapes, and the two shapes leave smaller boards of the same type — which is what turns the picture into a recurrence rather than a slogan.
What you say, out loud

Here is the structural cut. Look at the right end of the board. The rightmost cell is covered either by a vertical domino standing in column n, or by a horizontal domino sticking back into column n minus one.

And notice horizontals never come singly: if the top-right cell is covered horizontally, the cell below it cannot take a vertical domino because the column is already half-occupied, so it must be horizontal as well. The only closures are: one vertical, leaving a two-by-n-minus-one board, or a stacked pair of horizontals, leaving a two-by-n-minus-two board.

So T of n equals T of n minus one plus T of n minus two. The two families are disjoint: column n is covered by different pieces in each. And they are exhaustive: the rightmost cell has to be covered somehow.

Now the convention people get wrong: T of zero is one, not zero. The empty board has exactly one tiling, the one that places nothing; and the two-horizontal closure at n equals two lands on the empty board, so if I recorded zero there, the recurrence would predict one tiling for the two-by-two board where I have already drawn two.

Why this beat exists: This is the beat the question is really testing: a cut whose cases are provably disjoint and exhaustive, plus an explicit defence of the boundary convention. Say the words disjoint and exhaustive out loud.
4 · Compute · beat 4 of 8

Run the recurrence, and fix the Fibonacci index convention

n0123456789101112T(n)1123581321345589144233
Convention: F1=1, F2=1, Fm=Fm−1+Fm−2
Then T(n)=Fn+1
Check: T(0)=1=F1, T(1)=1=F2, T(12)=233=F13
Table extended to n=14: T(13)=377, T(14)=610
Backtracking agrees: 377 and 610 on 2×13, 2×14
What you say, out loud

Running the recurrence from T of zero equals one, T of one equals one: at n equals twelve I get 233. The row is on the board.

So the answer is a Fibonacci number, but the index has to be stated, because there are two live conventions. I take F one and F two both equal to one. With that convention T of n is F sub n plus one: check the ends, T of nought is one is F one, and T of twelve is 233 is F thirteen. Off by one here is the classic slip, so I write the convention next to the claim.

And the recurrence table agrees with the brute-force enumerator term by term up to n equals fourteen, including 377 and 610 - the enumeration does not know about the recurrence, so that is real evidence, not a circular check.

Why this beat exists: State the index convention explicitly every time you identify a sequence as Fibonacci. Cross-against your own enumeration, which was computed without any formula.
5 · Cross-check 1 · beat 5 of 8

A second, recurrence-free route: classify by the number of horizontal pairs

k stacked H-pairs, n−2k single columns
k+(n−2k)=n−k blocks in a row
k wide of n−k slots: (n−kk) ways
T(n)=∑k=0⌊n/2⌋(n−kk)
n=6: (60)+(51)+(42)+(33)=1+5+6+1=13.
n=1..12: 1,2,3,5,8,13,21,34,55,89,144,233 matches
What you say, out loud

The recurrence is one story; let me count the same set without any recursion, straight from the classification. Suppose the tiling has k stacked horizontal pairs. Each pair is one block of width two; every remaining column is a vertical block of width one. That is k plus n minus 2k, so n minus k blocks in total, sitting in a row.

A tiling is now completely determined by saying which k of those n minus k slots are the wide blocks - the widths add up to n automatically - so for fixed k there are binom n minus k, k tilings. Sum over k, which can run from zero up to floor of n over two, since 2k wider blocks cannot exceed n columns.

This never mentioned T of n minus one. At n equals six it reads one plus five plus six plus one, which is thirteen, the same thirteen the recurrence gave. I ran it for every n up to twelve and all twelve values match the table. Two independent routes, same numbers.

Why this beat exists: This is the examiner's wanted second route: a direct binomial count whose agreement with the recurrence is checked term by term, not merely restated.
6 · Cross-check 2 · beat 6 of 8

A third route: sweep by column with overhang states — the transfer matrix

Masks: 00,01,10,11
From flush: only 00 and 11 reachable
Single overhang 01,10: unreachable from flush
01 to 10 and back, never flush
M=(1110),T(n)=(Mn)00
(M12)00=233, (M14)00=610: exact
Eigenvalues: λ2=λ+1
 φ=1+52
 ψ=1−52: closed-form constants
00flush11both overhangone vertical: stay flushtwo horizontalsforced: finish both overhangsstartstates 01 and 10 (one overhang) are unreachable from flushT(n) = (M^n)00 with M = [[1,1],[1,0]]
The column sweep has only two live states for height 2 — flush, or both cells overhanging — and the single-overhang states are unreachable from flush and never return to it. The resulting transition matrix is the Fibonacci Q-matrix, which is why the same sequence must reappear.
What you say, out loud

One more route, and it is the dynamic-programming framing the question is hinting at. Sweep the board column by column and record which cells of the next column are already overhung, as a two-bit mask.

I built the transition counts for all four masks. From flush you have two moves: place a vertical domino and stay flush, or start two horizontals and go to both-overhang. From both-overhang the next column is forced. And the mixed states, exactly one overhang, are unreachable rather than illegal: the lone free cell can start a horizontal into the next column, which just hands the overhang across to the other row, so 01 and 10 chase each other and never return to flush. The 4-by-4 matrix collapses to the two-state one on the board.

That matrix is the Fibonacci Q-matrix. Raising it to integer powers, all exact arithmetic, gives 233 at n equals twelve and 610 at n equals fourteen - the third production of the same table. Its eigenvalues solve lambda squared equals lambda plus one, so phi and psi walk in on their own; I will need them in a moment anyway.

Why this beat exists: The bitmask sweep is the general method behind the clever cut; showing it collapses to the 2-state matrix proves the cut was not luck and feeds the closed form.
7 · Closed form and numerics · beat 7 of 8

Binet's formula, exact-integer check, rounding, and the growth rate

T(n)=φn+1−ψn+15
60-digit: formula minus table <10−40, all n=0..14
irrational parts cancel: an integer
T(n) = nearest integer to φn+1/5
error =|ψ|n+1/5: at n=0, 0.2764<12
rounding exact, n=0..40: 0 failures
deviation shrinks by |ψ|=0.6180339887… per column
n=4: 0.0403, n=8: 0.00588, n=12: 0.000858
233144, 377233, 610377→φ
ratios grow like φ=1.6180339887… per column
What you say, out loud

Diagonalising the matrix, or solving the recurrence directly, gives T of n equals phi to the n plus one minus psi to the n plus one, over root five. But a formula with irrationals in it owes me one check: why is it an integer?

So I evaluated it in sixty-digit arithmetic and subtracted my integer table: the gap is below ten to the minus forty for every n up to fourteen. It is not an approximation: the psi power is what kills the irrational part, and what is left is exactly the integer.

The practical corollary: T of n is the nearest integer to phi to the n plus one over root five. The error of that one-term version is psi to the n plus one over root five in size - at n equals zero that is zero point two seven six, already below a half, and it shrinks by a factor of absolute psi, zero point six one eight oh three three nine eight eight seven, each column. So the rounding is exact from n equals zero onward - I checked all the way to forty and it never fails.

And the ratios of consecutive counts, 233 over 144, 377 over 233, 610 over 377, squeeze phi from alternating sides: 1.6180555, 1.6180257, 1.6180371 against phi equals 1.6180339887. So the number of tilings grows like phi to the n: that is the honest growth rate, not two to the n.

Why this beat exists: Never let an irrational-looking closed form stand as a counting answer without an exact-integer check; and quote the rounding threshold and the error ratio from computed digits, not from memory.
8 · Conclude and generalise · beat 8 of 8

The answer, then push the method to its breaking point: 3 x n

T(n)=Fn+1=φn+1−ψn+15=∑k=0⌊n/2⌋(n−kk)
3×n: cut fails — overhang of 1 or 2
001, 011, 100, 110, 111 reachable: 6 live of 8, not 2
leftovers: notched boards, not 3×m
Area parity: 3n odd ⇒ impossible
Brute force: 0 tilings at n=1,3,5,7,9
Parity proves impossibility, never a count
Even n: enumeration = 8×8 transfer matrix
3,11,41,153,571 at n=2,4,6,8,10
b(n)=4b(n−2)−b(n−4) holds at n=4..10
Ratios per two columns: 113,4111,15341,571153
=3.667,3.727,3.732,3.732→2+3=3.73205…
Transplant check: naive b(n)=b(n−1)+b(n−2), b(2)=3, b(3)=0
predicts b(4)=3, true 11: 2×n-specific
What you say, out loud

So the answer to the question as asked: the number of tilings is F sub n plus one, with all three faces on the board: recurrence value, Binet closed form, binomial sum, and the seeds T of zero equals one, T of one equals one.

Where does the method stop working? Take the same cut on a three-by-n board. The right end no longer closes in two ways: horizontals can overhang a single row, and the leftover shapes are not smaller three-by-m boards; they are boards with notches. I ran the same bitmask reachability: six of the eight masks are live states here, namely 001, 011, 100, 110, 111 plus flush, against two out of four for height two. My disjoint-exhaustive two-case picture is gone.

One thing is free: parity. Three times n cells with n odd is an odd number, two cells per domino, so tiling is impossible, and my enumerator indeed returns zero at n equals one, three, five, seven, nine. But note what parity does and does not do: it certifies impossibility, it never counts the possible cases.

For even n I counted by brute force up to n equals eight and by the eight-state matrix up to ten: three, eleven, forty-one, one hundred fifty-three, five hundred seventy-one. These satisfy b of n equals four b of n minus two minus b of n minus four, checked through n equals ten, and the ratios march to two plus root three, three point seven three two oh five, per two columns.

And the honest summary: transplanting the two-case recurrence blindly predicts three tilings of the three-by-four board where there are actually eleven. The elegance of the two-row argument is precisely the specialness of the two-row board.

Why this beat exists: Close by generalising and then marking the boundary of the argument, with computed numbers on both sides of the boundary. That is the move that turns a correct answer into a strong interview.

Where the interviewer pushes next

“Why must the empty board count as one tiling rather than zero?”
What you say, out loud

Three reasons stacked. Combinatorially: there is exactly one way to tile nothing - the way that places no dominoes; zero would mean the task cannot be done, but it can, uniquely. Structurally: the two-horizontal closure at n equals two leaves the empty board, and I have already enumerated two tilings of the two-by-two board, so the recurrence forces T of zero equals two minus one equals one. And algebraically: the generating function only starts correctly with that constant term.

The same convention is what makes the binomial sum behave: at k equals zero the all-vertical tiling is binom n zero equals one, counted by the same rule that counts everything else.

T(2)=T(1)+T(0) with T(2)=2, T(1)=1 ⟹ T(0)=1
∑k=0⌊n/2⌋(n−kk) at n=0: (00)=1
“Can you package the whole recurrence into one algebraic object?”
What you say, out loud

Yes, the ordinary generating function. Multiply the recurrence by x to the n and sum from n equals two: everything rearranges to G times one minus x minus x squared equals one, so G is one over one minus x minus x squared. The recurrence and the rational function are the same information in two clothes.

Factoring the denominator as one minus phi x times one minus psi x and splitting into partial fractions is exactly Binet's formula again, which is also why phi and psi appeared as the matrix eigenvalues: same roots, same roles.

And I did not just derive it: expanding one over one minus x minus x squared as a power series in exact rational arithmetic reproduces 1, 1, 2, 3, 5, all the way to 233 through the x to the twelve term, matching the table.

G(x)=∑n≥0T(n)xn,G(x)(1−x−x2)=1 ⟹ G(x)=1(1−φx)(1−ψx)
series check (exact fractions): G=1+x+2x2+3x3+⋯+233x12+⋯
“Prove the binomial sum equals the Fibonacci numbers without assuming the recurrence.”
What you say, out loud

Pascal's rule on the summand: binom n minus k, k splits as binom n minus k minus one, k plus binom n minus k minus one, k minus one. Summing over k, the first pieces re-index into the sum for n minus one and the second into the sum for n minus two; the boundary terms land exactly where they should, on the empty choices.

So the binomial sum S of n satisfies S of n equals S of n minus one plus S of n minus two with S of zero equals one, S of one equals one: the same recurrence and the same seeds, hence the same sequence. That is a proof the two routes agree for every n, not just the twelve I tested.

Equivalently: this is the classical statement that Fibonacci numbers are shallow diagonal sums in Pascal's triangle.

(n−kk)=(n−k−1k)+(n−k−1k−1) ⟹ S(n)=S(n−1)+S(n−2),S(0)=S(1)=1
“Does any other familiar counting problem have this exact answer?”
What you say, out loud

Yes, and the cleanest is the one-dimensional twin: tile a one-by-n strip with unit squares and dominoes. The same cut at the right end gives the same recurrence and seeds, so the count is F sub n plus one, and better than equal counts: there is an explicit bijection with my domino tilings.

Read a 2-by-n tiling column by column and write a square for each vertical-column block and a domino for each stacked horizontal pair. Widths add up, so I get a square-and-domino tiling of the one-by-n strip, and the construction reverses. Two problems, one set.

That is also the dynamic-programming reading the question hints at: same state machine, different picture drawn on top of it.

V column↔square
H pair↔domino: 1×n strip

Traps on this question

  • Recording the empty board as T(0) = 0 ways. Then T(2) = T(1) + T(0) = 1, but the 2x2 board enumerates to 2 tilings; the whole table is corrupted from the seed up. There is exactly one tiling of nothing.
  • Dropping the stacked-horizontal closure and counting only 'add a vertical column to a shorter board', i.e. T(n) = T(n-1) + 1: that gives 1, 2, 3, 4, 5, 6 for n = 1..6 against the true 1, 2, 3, 5, 8, 13 — wrong already at n = 4 (4 vs 5).
  • Guessing 2^n from 'each column is a choice': 2^4 = 16 against the true 5 at n = 4. Columns are not independent — a horizontal pair straddles two of them, which is exactly the coupling the recurrence captures.
  • Writing the binomial sum with the wrong shape or limits: sum of C(n-k+1, k) gives 1, 3, 4, 8, 12, 21 for n = 1..6 — a different sequence, already wrong at n = 2; and k must stop at floor(n/2), since k blocks of width 2 cannot exceed n columns.
  • Transplanting the two-closure argument to 3xn: with b(2) = 3, b(3) = 0 the guess b(n) = b(n-1) + b(n-2) predicts b(4) = 3, but brute force gives 11. The 3-row board has mixed one-cell overhangs the 2-row argument never had to face.

What gets written on the assessor’s form

  • Enumerated n = 1..6 before proposing any formula, drew all five tilings of the 2x4 board, and used the data to kill the 2^n guess.
  • Made the recurrence structural rather than pattern-matched: named the two closures and argued they are disjoint and exhaustive.
  • Defended the T(0) = 1 convention explicitly and showed the concrete breakage without it (T(2) would come out 1 instead of 2).
  • Counted the same sequence by three independent routes — recurrence, binomial classification, transfer matrix — and checked all twelve terms agree, plus an enumeration to n = 14.
  • Located the method's failure boundary: said why the cut does not transfer to 3xn and backed it with computed values (3 predicted vs 11 true).