Fiddler on the Proof: Jan 24, 2025

David Ding

Jan 24, 2025

Can You Hop to the Lily Pad?

Fiddler answer: 35=0.6

Extra Credit: e1e0.63

Explanation:

It is more efficient to analyze both puzzles at once by analyzing the general problem: instead of 4 lily pads, what if there are N lily pads? For the original puzzle, N=4, and for the extra credit, N.

Let pk represent the probability that the frog eventually jumps to lily pad 1 starting on lily pad k. In our general setup, p1=1 and pN=0. For 2kN1, we have the following relationship from the puzzle's given:

pk=1kpk1+k1kpk+1

Now, let us re-arrange the above equation to get a difference equation. This will give us opportunities to "telescope" series later on, which will greatly simply analysis.

pk=1kpk1+k1kpk+1kpk=pk1+(k1)pk+1(k1)pk+pk=pk1+(k1)pk+1pkpk1=(k1)(pk+1pk)pk+1pk=pkpk1k1

Bringing one of the boundary conditions, namely p1=1, into the above difference equation, and we have:

pk+1pk=pkpk1k1p3p2=p2p1k1=p211p4p3=p3p2k1=p3p22=p212×1p5p4=p4p3k1=p4p33=p213×2×1pkpk1=p21(k2)!pNpN1=p21(N2)!

Thanks to telescoping, we can arrive at any pk using our difference equation by expressing the following:

pkp1=(pkpk1)+(pk1pk2)++(p2p1)

For which we know that p1 = 1 and pkpk1=p21(k2)! for 2kN1. Now, to figure out a closed form expression for p2, we just need to bring in the other boundary condition, pN=0.

pNp1=i=2N(pipi1)01=i=2Np21(i2)!1=(p21)i=2N1(i2)!p21=1i=2N1(i2)!p2=11i=2N1(i2)!

So, the closed form expression for p2 is:

p2=11i=2N1(i2)!

For the original puzzle, N=4, and so:

p2=11i=2N1(i2)!=11i=241(i2)!=111/0!+1/1!+1/2!=115/2=125p2=35=0.6

For the extra credit, we let N:

p2=limN11i=2N1(i2)!=limN11k=0N21k!=11k=01k!=11e(Maclaurin series expansion of the exponential function)p2=e1e0.63

Below is a graph of Monte-Carlo simulation of 100,000 trials vs theory for p2 over different values of N (on a log scale).

Frog Monte-Carlo

So, it looks like our friend frog is not just happy sitting on lily pad #1, but rather on a natural log base!