4 min read

Can You Survive Squid Game?

Table of Contents

Riddler Express

I have a spherical pumpkin. I carefully calculate its volume in cubic inches, as well as its surface area in square inches.

But when I came back to my calculations, I saw that my units β€” the square inches and the cubic inches β€” had mysteriously disappeared from my calculations. But it didn’t matter, because both numerical values were the same!

What is the radius of my spherical pumpkin?

Extra credit: Let’s dispense with 3D thinking. Instead, suppose I have an nn-hyperspherical pumpkin. Once again, I calculate its volume (with units innin^n) and surface area (with units innβˆ’1in^{nβˆ’1}). Miraculously, the numerical values are once again the same! What is the radius of my nn-hyperspherical pumpkin?

Solution

Let rr be the radius of the spherical pumpkin. We have

43Ο€r3=4Ο€r2β€…β€ŠβŸΉβ€…β€Šr=3in\frac{4}{3}\pi r^3 = 4\pi r^2 \implies r = 3 in

The recurrence relation for the surface area of an nn-ball Vn(R)V_n(R) is given by

An(R)=ddRVn(R)=nRVn(R)A_n(R) = \frac{d}{dR}V_{n}(R) = \frac{n}{R}V_{n}(R)

If An(R)=Vn(R)A_n(R) = V_n(R), we have R=nR = n.

Riddler Classic

Congratulations, you’ve made it to the fifth round of The Squiddler β€” a competition that takes place on a remote island. In this round, you are one of the 1616 remaining competitors who must cross a bridge made up of 1818 pairs of separated glass squares. Here is what the bridge looks like from above:

To cross the bridge, you must jump from one pair of squares to the next. However, you must choose one of the two squares in a pair to land on. Within each pair, one square is made of tempered glass, while the other is made of normal glass. If you jump onto tempered glass, all is well, and you can continue on to the next pair of squares. But if you jump onto normal glass, it will break, and you will be eliminated from the competition.

You and your competitors have no knowledge of which square within each pair is made of tempered glass. The only way to figure it out is to take a leap of faith and jump onto a square. Once a pair is revealed β€” either when someone lands on a tempered square or a normal square β€” all remaining competitors take notice and will choose the tempered glass when they arrive at that pair.

On average, how many of the 1616 competitors will survive and make it to the next round of the competition?

Computational Solution

Let S(n,m)S(n, m) be the expected number of survivors when there are nn competitors and mm pairs of glasses. We have the recurrence relation

S(n,m)=12S(n,mβˆ’1)+12S(nβˆ’1,mβˆ’1)S(n,0)=nS(0,m)=0S(n, m) = \frac{1}{2}S(n, m-1) + \frac{1}{2}S(n-1, m-1) \\\\ S(n, 0) = n \\\\ S(0, m) = 0

The Python code to compute S(n,m)S(n, m) is given below:

def S(n , m):
    if n == 0:
        return 0
    if m == 0:
        return n
    return 0.5*S(n, m-1) + 0.5*S(n-1, m-1) 

On average, if there are 1616 competitors and 1818 pairs of glasses, we will have 7\textbf{7} survivors.