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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.