# The mathematics of the STACK logo

The STACK logo is based on the following problem.

If you stack identical blocks one on top of the other, how far can it lean before it falls over? You have a potentially unlimited supply of blocks.

The answer is that there is no limit to how far it can lean! A physical model is shown below.

This model was made by Dr John Bryant.

## The mathematics of this problem

To see why the STACK of blocks doesn't fall over assume that the width of each domino is $2$ "units". Our strategy is this: at each stage we consider an existing balancing stack of $n$ dominoes which has its centre of mass a distance $c_n$ from its left-hand edge.

Obviously $c_n\leq 2$ for all $n$ as the centre of mass is to be above the bottom domino! We then place this stack on top of a new domino a distance $\delta_n$ from the left of the domino. There will clearly be no toppling if

That is to say we maintain balance if we don't displace the top stack so far that the displacement plus the distance of the centre of mass from the left pushes the centre of mass over the edge of the bottom domino - which has width $2$. The new centre of mass of the whole stack of $n+1$ dominoes will be $c_{n+1}$ from the left of the bottom domino where

Using the first inequality the maximum displacement without toppling is $\delta_n=s-c_n$. Combining this with the formula for $c_{n+1}$ and solving for $\delta_n$ gives

So that for all $n$, $\delta_n = \frac{1}{n}$.

## How big does the displacement become?

The question becomes, what is the value of

for large N? If $N\rightarrow \infty$, this is a particularly famous infinite series - the harmonic series. Actually, this diverges. That is to say it is possible to make the sum as large as one would wish. To see this, we group the terms as follows,

which shows that the series keeps getting larger as we continue to add terms. That is to say it does not converge.

In terms of the domino problem: we can choose displacements $\delta_n$ so that (i) the stack does not topple over, and (ii) we can produce an arbitrarily large horizontal displacement. Bizarre indeed!