Another proof of Fibonacci sequence in classic probability puzzle

Recently Scientific American reported that Fibonacci sequence makes an unexpected appearance in the solution to the following problem:

If I have n sticks with random lengths between 0 and 1, what is the probability that no three of those sticks can form a triangle?

The answer to this puzzle is

P(n)=∏i=1n1Fi=11⋅11⋅12⋅13⋯1Fn\begin{aligned} P(n) &= \prod_{i=1}^{n} \frac{1}{\textcolor{#b45309}{F_i}} \\ &= \frac{1}{\textcolor{#b45309}{1}} \cdot \frac{1}{\textcolor{#b45309}{1}} \cdot \frac{1}{\textcolor{#b45309}{2}} \cdot \frac{1}{\textcolor{#b45309}{3}} \cdots \frac{1}{\textcolor{#b45309}{F_n}} \end{aligned}

where Fi\textcolor{#b45309}{F_i} is the ii-th Fibonacci number. This is the arxiv link for the paper which contains a proof of it. Someone posted a novel proof of this puzzle which is more linear algebraic in nature. I made a small modification on top of this proof which is what I present here. Most of the credit to this proof goes to the Reddit user.


0. Outline of the proof

Here is the overall idea:

These steps are implemented below:


1. Steps 1 and 2 - Expressing sorted stick lengths as a matrix-vector product

We do this for two cases - the case where the lengths can not form a triangle and the general case (the lengths may or may not form a triangle).

1.1 Lengths which cannot form a triangle

Given the shortest length is l1=ε1\textcolor{#1d4ed8}{l_1} = \textcolor{#0b6b73}{\varepsilon_1}, we have that l2=l1+ε2l_2 = \textcolor{#1d4ed8}{l_1} + \textcolor{#0b6b73}{\varepsilon_2}. Note that l3l_3 has to be bigger than l1+l2=2l1+ε2l_1 + l_2 = 2\textcolor{#1d4ed8}{l_1} + \textcolor{#0b6b73}{\varepsilon_2}. We can assume that l3=2l1+ε2+ε3l_3 = 2\textcolor{#1d4ed8}{l_1} + \textcolor{#0b6b73}{\varepsilon_2} + \textcolor{#0b6b73}{\varepsilon_3}. Using the same argument, the next three lengths can be written down as:

l4=3l1+2ε2+1ε3+1ε4l5=5l1+3ε2+2ε3+1ε4+1ε5l6=8l1+5ε2+3ε3+2ε4+1ε5+1ε6    ⋮ln=Fnl1+Fn−1ε2+Fn−2ε3+⋯+F1εn⏟Fibonacci coefficients on the gaps\begin{aligned} l_4 &= \textcolor{#b45309}{3}\textcolor{#1d4ed8}{l_1} + \textcolor{#b45309}{2}\textcolor{#0b6b73}{\varepsilon_2} + \textcolor{#b45309}{1}\textcolor{#0b6b73}{\varepsilon_3} + \textcolor{#b45309}{1}\textcolor{#0b6b73}{\varepsilon_4} \\ \\ l_5 &= \textcolor{#b45309}{5}\textcolor{#1d4ed8}{l_1} + \textcolor{#b45309}{3}\textcolor{#0b6b73}{\varepsilon_2} + \textcolor{#b45309}{2}\textcolor{#0b6b73}{\varepsilon_3} + \textcolor{#b45309}{1}\textcolor{#0b6b73}{\varepsilon_4} + \textcolor{#b45309}{1}\textcolor{#0b6b73}{\varepsilon_5} \\ \\ l_6 &= \textcolor{#b45309}{8}\textcolor{#1d4ed8}{l_1} + \textcolor{#b45309}{5}\textcolor{#0b6b73}{\varepsilon_2} + \textcolor{#b45309}{3}\textcolor{#0b6b73}{\varepsilon_3} + \textcolor{#b45309}{2}\textcolor{#0b6b73}{\varepsilon_4} + \textcolor{#b45309}{1}\textcolor{#0b6b73}{\varepsilon_5} + \textcolor{#b45309}{1}\textcolor{#0b6b73}{\varepsilon_6} \\ \\ &\;\;\vdots \\ \\ l_n &= \underbrace{\textcolor{#b45309}{F_n}\textcolor{#1d4ed8}{l_1} + \textcolor{#b45309}{F_{n-1}}\textcolor{#0b6b73}{\varepsilon_2} + \textcolor{#b45309}{F_{n-2}}\textcolor{#0b6b73}{\varepsilon_3} + \cdots + \textcolor{#b45309}{F_1}\textcolor{#0b6b73}{\varepsilon_n}}_{\text{\textcolor{#b45309}{Fibonacci}} \text{ coefficients on the } \text{\textcolor{#0b6b73}{gaps}}} \end{aligned}

Thus the vector of sorted lengths can be written down as:

Written out for n=6n = 6, with one color per Fibonacci number (1\textcolor{#4d7c0f}{1}, 2\textcolor{#be185d}{2}, 3\textcolor{#047857}{3}, 5\textcolor{#c2410c}{5}, 8\textcolor{#6d28d9}{8}), every entry is visible at once:

[l1l2l3l4l5l6]=[100000110000211000321100532110853211]⏟each color runs down a diagonal:the same F moves one row downas it moves one column right[ε1ε2ε3ε4ε5ε6]⏟gaps ≥0\begin{bmatrix} l_1 \\ l_2 \\ l_3 \\ l_4 \\ l_5 \\ l_6 \end{bmatrix} = \underbrace{\begin{bmatrix} \textcolor{#4d7c0f}{1} & \textcolor{#6b6357}{0} & \textcolor{#6b6357}{0} & \textcolor{#6b6357}{0} & \textcolor{#6b6357}{0} & \textcolor{#6b6357}{0} \\ \textcolor{#4d7c0f}{1} & \textcolor{#4d7c0f}{1} & \textcolor{#6b6357}{0} & \textcolor{#6b6357}{0} & \textcolor{#6b6357}{0} & \textcolor{#6b6357}{0} \\ \textcolor{#be185d}{2} & \textcolor{#4d7c0f}{1} & \textcolor{#4d7c0f}{1} & \textcolor{#6b6357}{0} & \textcolor{#6b6357}{0} & \textcolor{#6b6357}{0} \\ \textcolor{#047857}{3} & \textcolor{#be185d}{2} & \textcolor{#4d7c0f}{1} & \textcolor{#4d7c0f}{1} & \textcolor{#6b6357}{0} & \textcolor{#6b6357}{0} \\ \textcolor{#c2410c}{5} & \textcolor{#047857}{3} & \textcolor{#be185d}{2} & \textcolor{#4d7c0f}{1} & \textcolor{#4d7c0f}{1} & \textcolor{#6b6357}{0} \\ \textcolor{#6d28d9}{8} & \textcolor{#c2410c}{5} & \textcolor{#047857}{3} & \textcolor{#be185d}{2} & \textcolor{#4d7c0f}{1} & \textcolor{#4d7c0f}{1} \end{bmatrix}}_{\substack{\text{each color runs down a diagonal:} \\ \text{the same } F \text{ moves one row down} \\ \text{as it moves one column right}}} \underbrace{\begin{bmatrix} \textcolor{#0b6b73}{\varepsilon_1} \\ \textcolor{#0b6b73}{\varepsilon_2} \\ \textcolor{#0b6b73}{\varepsilon_3} \\ \textcolor{#0b6b73}{\varepsilon_4} \\ \textcolor{#0b6b73}{\varepsilon_5} \\ \textcolor{#0b6b73}{\varepsilon_6} \end{bmatrix}}_{\text{\textcolor{#0b6b73}{gaps}} \ \ge 0}

The general entry is

Mij={F i−j+1j≤i0j>iM_{ij} = \begin{cases} F_{\,i-j+1} & j \le i \\ \\ \textcolor{#6b6357}{0} & j > i \end{cases}

1.2 Any arbitrary vector of lengths

This case is much simpler. As before, start with l1=ε1\textcolor{#1d4ed8}{l_1} = \textcolor{#0b6b73}{\varepsilon_1}. Then since l2≥l1l_2 \ge \textcolor{#1d4ed8}{l_1}, we have that l2=l1+ε2l_2 = \textcolor{#1d4ed8}{l_1} + \textcolor{#0b6b73}{\varepsilon_2} and so on. For sake of completion, the remaining lengths look something like:

l3=l1+ε2+ε3l4=l1+ε2+ε3+ε4    ⋮ln=l1+ε2+ε3+⋯+εn⏟every coefficient is now 1\begin{aligned} l_3 &= \textcolor{#1d4ed8}{l_1} + \textcolor{#0b6b73}{\varepsilon_2} + \textcolor{#0b6b73}{\varepsilon_3} \\ l_4 &= \textcolor{#1d4ed8}{l_1} + \textcolor{#0b6b73}{\varepsilon_2} + \textcolor{#0b6b73}{\varepsilon_3} + \textcolor{#0b6b73}{\varepsilon_4} \\ &\;\;\vdots \\ l_n &= \underbrace{\textcolor{#1d4ed8}{l_1} + \textcolor{#0b6b73}{\varepsilon_2} + \textcolor{#0b6b73}{\varepsilon_3} + \cdots + \textcolor{#0b6b73}{\varepsilon_n}}_{\text{every coefficient is now } 1} \end{aligned}

In this case, the vector of sorted lengths can be written down as:

[l1l2l3l4l5l6]=[100000110000111000111100111110111111]⏟every Fibonacci coefficientis replaced by 1[ε1ε2ε3ε4ε5ε6]⏟gaps ≥0\begin{bmatrix} l_1 \\ l_2 \\ l_3 \\ l_4 \\ l_5 \\ l_6 \end{bmatrix} = \underbrace{\begin{bmatrix} 1 & 0 & 0 & 0 & 0 & 0 \\ 1 & 1 & 0 & 0 & 0 & 0 \\ 1 & 1 & 1 & 0 & 0 & 0 \\ 1 & 1 & 1 & 1 & 0 & 0 \\ 1 & 1 & 1 & 1 & 1 & 0 \\ 1 & 1 & 1 & 1 & 1 & 1 \end{bmatrix}}_{\substack{\text{every Fibonacci coefficient} \\ \text{is replaced by } 1}} \underbrace{\begin{bmatrix} \textcolor{#0b6b73}{\varepsilon_1} \\ \textcolor{#0b6b73}{\varepsilon_2} \\ \textcolor{#0b6b73}{\varepsilon_3} \\ \textcolor{#0b6b73}{\varepsilon_4} \\ \textcolor{#0b6b73}{\varepsilon_5} \\ \textcolor{#0b6b73}{\varepsilon_6} \end{bmatrix}}_{\text{\textcolor{#0b6b73}{gaps}} \ \ge 0}

The general entry is

Mij={1j≤i0j>iM_{ij} = \begin{cases} 1 & j \le i \\ \\ 0 & j > i \end{cases}

2. Step 3 - largest length in each case

2.1 First case

In this case, the largest length is

ln=∑i=1nFi yil_n = \sum_{i=1}^{n} \textcolor{#b45309}{F_i} \, y_i

for positive coefficients yiy_i.

2.2 Second case

In this case, the largest length is

ln=∑i=1nxil_n = \sum_{i=1}^{n} x_i

for positive coefficients xix_i: the same sum with every Fi\textcolor{#b45309}{F_i} replaced by 11.


3. Step 4 - obtain simplexes for each case

Since these lengths are sampled from the interval [0,1][0,1], they have to be less than or equal to one. Applying this condition to each of the largest lengths above we get:

i) ∑i=1nFi yi≤1\sum_{i=1}^{n} \textcolor{#b45309}{F_i} \, y_i \le 1: the points that satisfy this condition form a volume V1\textcolor{#b45309}{V_1}. This is the volume of the simplex spanned by the origin and the vectors

1Fi ei⏟standard basis vector ei shrunk by Fi\underbrace{\frac{1}{\textcolor{#b45309}{F_i}} \, e_i}_{\text{standard basis vector } e_i \text{ shrunk by } \textcolor{#b45309}{F_i}}

for ii from 11 to nn.

ii) ∑i=1nxi≤1\sum_{i=1}^{n} x_i \le 1: this is the standard simplex and has a volume V2\textcolor{#1d4ed8}{V_2} of 1/n!1/n!. The exact volume is not needed for the proof though.


4. Final step

The probability is given by V1V2\dfrac{\textcolor{#b45309}{V_1}}{\textcolor{#1d4ed8}{V_2}}. How do we find V1\textcolor{#b45309}{V_1} in terms of V2\textcolor{#1d4ed8}{V_2}? By defining a map yi=xi/Fiy_i = x_i / \textcolor{#b45309}{F_i}. It is easy to see that the determinant of the Jacobian of this map is

∣J∣=det⁡[1F11F2⋱1Fn]=∏i=1n1Fi\begin{aligned} |J| &= \det \begin{bmatrix} \frac{1}{\textcolor{#b45309}{F_1}} & & & \\ & \frac{1}{\textcolor{#b45309}{F_2}} & & \\ & & \ddots & \\ & & & \frac{1}{\textcolor{#b45309}{F_n}} \end{bmatrix} \\ \\ &= \prod_{i=1}^{n} \frac{1}{\textcolor{#b45309}{F_i}} \end{aligned}

since the map only rescales each axis. Thus the volume V1=∣J∣ V2\textcolor{#b45309}{V_1} = |J| \, \textcolor{#1d4ed8}{V_2}, and this gives us the probability to be:

V1V2=∏i=1n1Fi\frac{\textcolor{#b45309}{V_1}}{\textcolor{#1d4ed8}{V_2}} = \prod_{i=1}^{n} \frac{1}{\textcolor{#b45309}{F_i}}