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 Πi=1nFi1=111121…Fn1 where Fi is the i-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 - sort the lengths li from shortest to longest. The vector of sorted lengths can be shown to be a linear combination of a certain basis. Once we get this basis, we use it express the longest length ln in terms of it. Finally we use the condition that longest length≤1 to get a simplex.
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, we have that l2=l1+ε2. Note that l3 has to be bigger than l1+l2=2l1+ε2. We can assume that l3=2l1+ε2+ε3. Using the same argument, the next three lengths can be written down as:
This case is much simpler. As before, start with l1=ε1. Then since l2≥l1, we have that l2=l1+ε2 and so on. For sake of completion, the remaining lengths look something like:
In this case, the largest length is ∑i=1nFiyi for positive coefficients yi.
2.2 Second case
In this case, the largest length is ∑i=1nxi for positive coefficients xi.
3. Step 4 - obtain simplexes for each case
Since these lengths are sampled from the interval [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=1nFiyi≤1: the points that satisfy this condition form a volume V1. This is the volume of the simplex formed by origin and vectors standard basis vector scaled by1/FiFi1ei for i from 1 to n.
ii) ∑i=1nxi≤1: this is the standard simplex and has a volume V2 of n!1. The exact volume is not needed for the proof though.
4. Final step
The probability is given by V2V1. How do we find V1 in terms of V2? By defining a map yi=xi/Fi. It is easy to see that the determinant of Jacobian of this map is ∣J∣=ΠiFi1. Thus the volume V1=∣J∣V2. This gives us the probability to be: