Sunday, November 29, 2026

Strawberry Rhubarb Sauce

For “Friendsgiving,” I have a glass jar of a very thin strawberry rhubarb sauce. However, this jar is a conical frustum rather than a cylinder. Its larger base has twice the radius of the smaller base.

This time, when I tilt the jar a certain amount, the sauce surface is just high enough to cover the entirety of the larger circular base, while it’s just low enough to not cover any of the smaller circular base. What percentage full of sauce is the jar?

Again, we will set our axes so that the origin is at the center of the larger circular bases, with the positive $z$-axis pointing towards the smaller circular top. Let's assume that the radius of the larger circular bases has a radius of $r=2$ units, while the smaller base has radius $r=1,$ and that the frustrum has a height of $h$ units. In this case, we only have two points on the plane that denotes the extent of the strawberry rhubard sauce, say $a = (-2, 0, 0)$ and $b = (1, 0, h),$ so let's instead perturb the point $(1,0,h)$ to be $b_\varepsilon = (1-\varepsilon, \varepsilon, h)$ and $c_\varepsilon = (1-\varepsilon, -\varepsilon, h).$ In this case, the normal vector would $$n_\varepsilon = (b_\varepsilon - a) \times (c_\varepsilon - a) = \begin{vmatrix} i & j & k \\ 3 - \varepsilon & \varepsilon & h \\ 3 - \varepsilon & -\varepsilon & h \end{vmatrix} = (2 \varepsilon h, 0, - 2 \varepsilon (3 - \varepsilon) ).$$ Since the plane casn be defined by $\frac{1}{2\varepsilon} n_\varepsilon$ as well, we see that the perturbed plane would $hx - (3-\varepsilon) z = -2h,$ or equivalently $$z = \frac{h}{3-\varepsilon}(x + 2),$$ therefore as \varepsilon \downarrow 0, we see that the plane that represents the extent of the strawberry rhubarb sauce is given by $$z = \frac{h}{3} (x + 2).$$

In this case, the cross-section of the conical frustrum will be a circle with radius of $r(z) = 2 - \frac{z}{h},$ and the portion that is not covered by strawberry rhubarb sauce will be bounded by the vertical line $x = \frac{3z}{h} - 2.$ The area of the cross-section that is not covered by strawberry rhubarb sauce is given by \begin{align*}A_2(z) &= \int_{-r(z)}^{3z/h - 2} 2\sqrt{ r(z)^2 - x^2 } \,dx \\ &= r(z)^2 \left( \pi - \cos^{-1} \left( \frac{\frac{3z}{h} - 2}{ r(z) } \right) \right) + \left(\frac{3z}{h} - 2\right) \sqrt{ r(z)^2 - \left( \frac{3z}{h} - 2 \right)^2 } \\ &= \left( 2 - \frac{z}{h} \right)^2 \left( \pi - \cos^{-1} \left( \frac{3z - 2h}{ 2h - z} \right) \right) + 2\left( \frac{3z - 2h}{h^2} \right) \sqrt{ 2hz - 2z^2 } .\end{align*} Therefore, we can arrive at the volume that does not contain strawberry rhubarb sauce is $V = \int_0^h A_2(z) \,dz,$ while the total volume of the frustum is $$F = \int_0^h \pi r(z)^2 \,dz = \pi \int_0^h \left( 2 - \frac{z}{h} \right)^2 \,dz = \pi \int_2^1 r^2 (-h \,dr) = \left.\frac{\pi h r^3}{3} \right|_{r=1}^{r=2} = \frac{7\pi h}{3}.$$

All that remains is to figure out how to calculate $V,$ which we can do numerically by substituting $r = 1 - z/h$, with \begin{align*}V &= V(h) = \int_0^h A_2(z) \,dz \\ &= h \int_1^2 \left( r^2 \left( \pi - \cos^{-1} \left( \frac{4}{r} - 3 \right) \right) + 2 ( 4 - 3r ) \sqrt{6r - 2r^2 - 4 } \right) \, dr \\ &\approx 1.91472440758\dots h.\end{align*} Therefore, the percentage of the jar that is filled with strawberry rhubarb sauce is $$100 \frac{F - V}{F} = 100 \frac{ \frac{7\pi h}{3} - 1.91472440758 \dots h }{ \frac{7 \pi h}{3} } \approx 73.8796125036\dots \%.$$

Cranberry Sauce

For this year’s Thanksgiving feast, my family was firmly against the use of canned cranberry sauce. Instead, we made our own, and it was very, very thin, to the point it almost had the consistency of water. Anyway, it was a big hit, and now we want to jar it up and ship it out to distant relatives.

I have a cylindrical glass jar of the sauce, as shown above. I’m trying to figure out how full it is by tilting it in various ways and looking at the sauce inside. In particular, when I tilt the jar a certain amount, the surface of the sauce is just high enough to cover the entirety of one circular base, while precisely simultaneously covering half of the other circular base. What percentage full of sauce is the jar?

Though obviously gravity wouldn't particularly comply, let's assume that we draw our axes such that the origin is in the center of the fully covered circular base and the positive $z$-axis is pointing at the half-covered circular base. Let's assume that the jar has a height of $h$ and a radius of $r=1.$ Since any three points in $\mathbb{R}^3$ define a plane, we can choose, without loss of generality, $a = (-1,0,0)$ on the lower base, and the two points $b = (0,1,h)$ and $c = (0,-1, h),$ on the plane that defines the extent of where the cranberry sauce gets to. Then the normal vector of this plane is given by $$n = (b-a) \times (c- a) = \begin{vmatrix} i & j & k \\ 1 & 1 & h \\ 1 & -1 & h \end{vmatrix} = ( 2h, 0, -2 ).$$ Therefore, we see that in our coordinate system, the plane that marks the extent of the cranberry sauce is given by $$z = h (x+1).$$

The portion of the cylinder that is not covered by cranberry sauce can be given by $$V = \int_{-1}^0 \int_{-\sqrt{1-x^2}}^{\sqrt{1-x^2}} \int_{h(x+1)}^h \,dz \,dy \,dx = \int_{-1}^0 -2hx \sqrt{1-x^2} \,dx = \left.\frac{2h}{3}(1 - x^2)^{3/2} \right|_{x=-1}^{x=0} = \frac{2h}{3}.$$ The volume of the entire cylindrical jar is given by $J = \pi h.$ Therefore, the percentage of the jar that is filled with cranberry sauce is $$p = 100 \frac{ J - V}{J} = 100 \frac{ \pi h - \frac{2h}{3} }{ \pi h} = 100 \left(1 - \frac{2}{3\pi} \right) \approx 78.77934092\dots \%.$$

Now, as we shall see in the Extra Credit solution, we could also take cross sections perpendicular to the $z$-axis. Since the cross sections of the jar that are perpendicular to the z-axis will be unit circles, the portion of that is not taken up by cranberry sauce will be region bounded by the unit circle and the vertical line $x = z/h - 1,$ which was obtained by solving for $x$ in the plane $z = h(x+1).$ Since $$\int 2 \sqrt{ 1- t^2 } \,dt = -\cos^{-1} t + t \sqrt{1-t^2} + C,$$ the area that is uncovered by cranberry sauce in the cross section at $z$ is given by \begin{align*}A_1(z) &= 2 \int_{-1}^{z/h-1} \sqrt{1-x^2} \,dx \\ &= \pi - \cos^{-1} \left( \frac{z}{h} - 1 \right) + \left( \frac{z}{h} - 1 \right) \sqrt{ 1 - \left( \frac{z}{h} - 1 \right)^2 }.\end{align*} Since $\int \cos^{-1} t \,dt = t \cos^{-1} t - \sqrt{1-t^2} + C,$ we again retrieve the fact that \begin{align*} V = \int_0^h A_1(z) \,dz &= \int_0^h \left( \pi - \cos^{-1} \left( \frac{z}{h} - 1\right) + \left( \frac{z}{h} - 1 \right) \sqrt{ 1 - \left( \frac{z}{h} - 1 \right)^2 } \right)\,dz \\ &= h \int_{-1}^0 \left( \pi - \cos^{-1} u + u \sqrt{1 - u^2} \right) \,du \\ &= h \left[ (\pi - \cos^{-1} u) u + \sqrt{1 - u^2} - \frac{1}{3} (1 - u^2)^{3/2} \right]_{u=-1}^{u=0} \\ &= h \left[ \left( \left( \pi - \frac{\pi}{2} \right) 0 + 1 - \frac{1}{3} \right) - \left( ( \pi - \pi ) \cdot -1 + 0 - \frac{1}{3} \cdot 0 \right) \right]\\ &= \frac{2h}{3}.\end{align*}

Monday, November 16, 2026

Bouncing Billiards

In the fictional game of “bouncing billiards,” a cue ball that has a radius of $1$ is centered at the coordinates (0, 0) on a billiard table. There is also a red ball with radius $1$, centered at $(0, 5).$ The table has a top wall at $y = 10$ and two side walls at $x = 5$ and $x = −5$ that extend infinitely downward. The diagram below illustrates the setup.

The goal of the game is to strike the cue ball with a stick and have the cue ball hit the red ball. The table and its walls are frictionless, so the balls don’t slow down as they roll.

Now it’s your turn to play a round of bouncing billiards. Let’s say, since you’re new to the game, you have equal chances of hitting the cue ball in any direction.

Your friend challenges you to make the cue ball hit the red ball before the cue ball makes contact with the walls twice. In other words, the cue ball can hit the red ball directly, or it can bounce off a wall exactly once before hitting the red ball. What’s the probability that you’ll succeed in your friend’s challenge?

Let's first tackle the case of what is the probability of hitting the red ball directly. We see that if the cue ball is sent off in a direction that forms an angle $\theta$ with the vertical line, then the center of the ball will travel along the ray $y = x \tan \theta.$ The shortest distance from the point (0,5) to the line $y= x \tan \theta$ occurs exactly when the line from $(0,5)$ to the point $(\hat{x}, \hat{y})$ is perpendicular to the line $y = x \tan \theta.$ Therefore, the triangle formed by the ray $y = x \tan \theta,$ the vertical line and the line from $(0,5)$ to the point $(\hat{x}, \hat{y})$ is a right triangle with hypotenuse of $5.$ Thus, the minimum distance from $(0,5)$ to the ray $y = x \tan \theta$ is $5 \sin \theta.$ Since in order for the cue ball to hit the red ball this minimum distance would need to be less than or equal to $2$ (the sum of their radii), so we would need $5\sin \theta \leq 2.$ Since it doesn't really matter the trajectory is to the right or the left of the vertical line, we have the probability of hitting the red ball directly is $$p_0 = \frac{1}{2\pi} \cdot 2 \cdot \sin^{-1} \frac{2}{5} = \frac{1}{\pi} \sin^{-1} \frac{2}{5}.$$

Next we see that if the ball does hit the side wall then its center can only ever get to either $x=4$ or $x=-4,$ since the cue's radius is $1.$ If you strike the cue ball in such a way that it leaves at an angle of $\phi$ above the positive $x$-axis and it hits the right wall when the center is at $(4, 4\tan \phi)$ and then bounces back to the left. Since its collisions are elastic, the path of the cue ball from the point $(4, 4 \tan \phi)$ will trace out the line $y = (8-x) \tan \phi.$ Again, we see that the minimal distance between $(0,5)$ and the line $y = (8-x) \tan \phi$ will occur when there is a right triangle with hypotenuse $|5 - 8 \tan \phi|,$ where the side that is measured by this minimal distance is adjacent to the angle $\phi.$ Therefore, the distance minimal distance between the centers of the cue ball and the red ball after a single bounce is $$d = | 5 - 8 \tan \phi | \cos \phi = | 5 \cos \theta - 8 \sin \theta |.$$ In order for the cue ball to actually hit the red ball on this trajectory after its first bounce we need $$| 5 \cos \theta - 8 \sin \theta | \leq 2,$$ which after some algebra and trig substitutions is equivalent to $$\frac{ 8 \sqrt{85} - 10 }{ 89} \leq \cos \theta \leq \frac{ 8 \sqrt{85} + 10}{89}.$$ Since it was arbitrary that we sent the cue ball off to hit off the right wall first, we see that the probability of hitting the red ball after exacly one bounce is $$p_1 = \frac{1}{2\pi} \cdot 2 \cdot \left( \cos^{-1} \left( \frac{8\sqrt{85}-10}{89} \right) - \cos^{-1} \left( \frac{8 \sqrt{85} + 10}{89} \right) \right).$$

Therefore, the probability of winning your friend's challenge is \begin{align*}p &= p_0 + p_1 \\ &= \frac{1}{\pi} \left( \cos^{-1} \left( \frac{8\sqrt{85} -10}{89} \right) - \cos^{-1} \left( \frac{8 \sqrt{85} + 10}{89} \right) + \sin^{-1} \frac{2}{5} \right) \\ &\approx 0.266984972632\dots.\end{align*}

Monday, October 26, 2026

Locus Pocus

While picking random points inside the equilateral triangle with side length 1, you and your colleague notice that some points are “special.” When one of these special points is connected with the triangle’s three vertices, it creates three smaller triangles whose areas form an arithmetic sequence.

After further investigation, you realize these special points all belong to a locus, the total length of which is $L$. What is this length $L$?

As we saw before, given choice of any point $x$ in the triangle, we have three sub-triangles with areas $A_1(x),$ $A_2(x),$ and $A_3(x),$ that are mutually non-overlapping and tile the entirety of the area of the unit equilateral triangle with area $A = \frac{\sqrt{3}}{4}$ square units. If we have chosen our point x in a special way then $A_1$, $A_2$, and $A_3$ are in arithmetic progression and so, without loss of generality we have $A_2(x) = \frac{1}{2} (A_2(x) + A_3(x)),$ or $$2A_2(x) = A_1(x) + A_3(x).$$ Adding $A_2(x)$ to both sides we get $$3A_2(x) = A_1(x)+A_2(x)+A_3(x) = A,$$ so we conclude that $$A_2(x) = \frac{1}{3} A = \frac{\sqrt{3}}{12}.$$

So the locus of special points are those for which at least one of the subtriangles has area $\frac{\sqrt{3}}{12}.$ Without loss of generality, let's assume that the original unit equilateral triangle is located such that its vertices are at $P(-1/2, -\sqrt{3}/6),$ $Q(1/2, -\sqrt{3}/6)$ and $R(0,\sqrt{3}/3).$ Then for instance, for any point $X_t(t,0)$ for $-1/3 \leq t \leq 1/3,$ the area of the triangle $PQX_t$ will be $\sqrt{3}/12.$ So the line segment from $(-1/3,0)$ to $(1/3,0)$ is in the locus of special points and has a length of $2/3.$

However, since the equilateral triangle has trifold rotational symmetry, there will also be a similar sub-locus of length $2/3$ running parallel to the side $PR$ and the side $QR.$ So the locus of special points where the areas of three smaller triangles form an arithmetic sequences has total length of $2$ units.

Sunday, October 25, 2026

Random Quadrilaterals

Inspired by Delta Airlines, you and a graphic designer colleague are crafting a new logo for Fiddler Airlines. Your colleague starts with an equilateral triangle with a side length of $1$ unit. Next, you pick a random point inside the triangle, giving you four points: the three corners of the triangle and this fourth point inside. There are several (simple) quadrilaterals that can be drawn whose four vertices are these four points. Your colleague picks one of these quadrilaterals at random, with each having an equal probability. This quadrilateral will be the new logo.

On average, what can you expect the area of the quadrilateral to be?

Since you start with an equilateral triangle with unit side lengths, the total aread of the triangle is $A = \frac{\sqrt{3}}{4}$ square units. For any random chosen point, say $x,$ within this equilateral triangle, there are $\binom{3}{2} = 3$ possible choices of triangles to remove from the larger equilateral triangle to form our simple quadrilateral logo. Let's assume that we enumerate the areas of these three resulting, nonoverlapping triangles as $A_1(x),$ $A_2(x)$ and $A_3(x),$ then by design we have $$A_1(x) + A_2(x) + A_3(x) = A.$$ In order to obtain a quadrilateral, your colleague will uniformly randomly select one of these three triangles to remove from the initial unit equilateral triangle. Let's denote the area of the resulting random quadrilateral, conditioned on your initial choice of the point $x,$ as $Q \mid x,$ then we have \begin{align*} \mathbb{E} \left[ Q \mid x \right] &= \frac{1}{3} ( A - A_1(x) ) + \frac{1}{3} (A - A_2(x)) + \frac{1}{3} (A - A_3(x)) \\ &= A - \frac{A_1(x)+A_2(x)+A_3(x)}{3} \\ &= \frac{2}{3} A = \frac{\sqrt{3}}{6}.\end{align*} Since this equation holds regardless of your choice of $x,$ the expected area of the quadrilateral obtained is $$\mathbb{E}[Q] = \frac{\sqrt{3}}{6}.$$

Sunday, October 18, 2026

Dummymandering for Dummies

In the next election cycle you’re back at it, gerrymandering on behalf of the Moon party once more. This time, you can draw a map that results in any set of probabilities $p_1$, $p_2$, $p_3$, $p_3$, $p_5$, $p_6$, and $p_7$ that you’ll win each of the corresponding districts—subject to the constraint that the average of the probabilities is $1/2.$ In other words, $$p_1 + p_2 + p_3 + p_4 + p_5 + p_6 + p_7 = 7/2.$$

The bosses of the Moon party want to go big. More specifically, they want to maximize the party’s chances of winning at least five of the seven districts. However, you are concerned that such a greedy attempt at gerrymandering may backfire, a phenomenon that has become known as dummymandering. When you draw a map that maximizes your chances of winning at least five districts, the probability the Moon party blows it and winds up losing most of the districts is $L_A.$

Your personal preference is to simply maximize the party’s chances of winning at least four of the seven districts—a simple majority of them. When you draw that maximizes these chances, the probability the Moon party loses most of the districts is $L_B.$ How much greater than $L_B$ is $L_A$?

Again, we will assume that $p_1 \leq p_2 \leq p_3 \leq \cdots \leq p_7.$ We have $X_i \sim B(p_i)$ is a Bernoulli distribution with probability of success $p_i.$ Then the Moons want $\sum_{i=1}^7 X_i \geq 5,$ so we should determine $$f_5(p) = \mathbb{P} \left\{ \sum_{i=1}^7 X_i \geq 5 \right\}.$$ In particular, we could have $$g(p) = \mathbb{P} \left\{ \sum_{i=1}^7 X_i = 7 \right\} = p_1 p_2 \cdots p_7.$$ We have $$h(p)=\mathbb{P} \left\{ \sum_{i=1}^7 X_i = 6 \right\} = (1-p_1) p_2 \cdots p_7 + p_1 (1-p_2) p_3 \cdots p_7 + \cdots + p_1 \cdots p_6 (1-p_7).$$ Finally, we have \begin{align*} k(p) = \mathbb{P} \left\{ \sum_{i=1}^7 X_i = 5 \right\} &= (1-p_1)(1-p_2) p_3 \cdots p_7 + (1-p_1)p_2(1-p_3)p_4 \cdots p_7 + \cdots + (1-p_1)p_2 \cdots p_6 (1-p_7) \\ & \quad + p_1 (1-p_2) (1-p_3) p_4 \cdots p_7 + \cdots + p_1 (1-p_2) p_3 \cdots p_6 (1-p_7) \\ & \quad\quad + \cdots + p_1 p_2 \cdots p_5 (1-p_6)(1-p_7)\end{align*} Putting this altogether we get f_5(p) = g(p) + h(p) + k(p), and for instance, we see that \begin{align*}f_5(p) &= p_1 \Biggl( p_2 \cdots p_7 + (1-p_2) p_3 \cdots p_7 + p_2 (1-p_3) p_4 \cdots p_7 + \cdots + p_2 \cdots p_6 (1-p_7) \Biggr. \\ & \quad\quad\quad\quad \Biggl.+ (1-p_2) (1 - p_3) p_4 \cdots p_7 + \cdots + p_2 \cdots p_5 (1-p_6) (1 - p_7) \Biggr) + \\ & \quad + (1 - p_1) \Biggl( p_2 \cdots p_7 + (1 - p_2) p_3 \cdots p_7 + p_2 (1-p_3) p_4 \cdots p_7 + \cdots + p_2 \cdots p_6 (1 -p_7 ) \Biggr) \\ & \quad\quad\quad + \text{ other terms not involving $p_1$ } \\ &= p_1 \Biggl( (1-p_2)(1-p_3) p_4 \cdots p_7 + (1-p_2) p_3 (1-p_4) p_5 p_6 p_7 + \cdots + p_2 \cdots p_5 (1-p_6) (1-p_7) \Biggr) \\ &\quad + \text{ other terms not involving $p_1$}.\end{align*} Therefore, we see that $\frac{\partial}{\partial p_1} f_5(p) \geq 0$ for all $0 \leq p \leq 1.$ Since the choice of $p_1$ was arbitrary, this holds for all $p_i, i = 1, \dots, 7.$ So it is clear that there will not be some $p^*$ such that $\nabla f_5(p^*) = 0.$ Therefore, we need to look at the boundary $\sum_{i=1}^7 p_i = 7/2,$ along with the other boundaries $0 \leq p_1 \leq p_2 \leq \cdots \leq p_6 \leq p_7 \leq 1.$

In particular, we need to look at potential solutions of the form $$q^{i,j} = \bigl( \overbrace{0, \dots, 0}^{i}, \overbrace{\lambda_{ij}, \dots, \lambda_{ij}}^{7-i-j}, \overbrace{1, \dots, 1}^j \bigr),$$ where $\lambda_{ij} = \frac{7 - 2j}{2(7- i - j)}.$ We see that for each $i, j,$ $$0 \leq q^{i,j}_1 \leq q^{i,j}_2 \leq \cdots \leq q^{i,j}_7 \leq 1,$$ and we have $$\sum_{k=1}^7 q^{i,j}_k = i \cdot 0 + (7-i-j) \cdot \lambda_{ij} + j \cdot 1 = \frac{7}{2}.$$ Plugging $q^{i,j}$ into $f_5(p),$ we see that, since the Moons will automatically lose $i$ districts and win $j$ districts, that $$f_5(q^{i,j}) = \sum_{k=5}^{7-i} \binom{7-i-j}{k-j} (1 - \lambda_{ij})^{7-i-k} \lambda_{ij}^{k-j},$$ which is just the upper tail of a binomial distribution with probability $\lambda_{ij}.$

Since we are already at it, and without the need to rigorously reprove anything, we can also define $$f_4(p) = \mathbb{P} \left\{ \sum_{i=1}^7 X_i \geq 4 \right\}.$$ We can reassert that when maximizing for $f_4$ that there will be no feasible solutions p^* with \nabla f_4(p^*) = 0, so we will also look for $f_4(q^{i,j})$ as previously define, where we additionally have $$f_4(q^{i,j}) = \sum_{k=4}^{7-i} \binom{7-i-j}{k-j} (1 - \lambda_{ik})^{7-i-k} \lambda_{ij}^{k-j}.$$

We obviously cannot have $j \gt 3,$ since there is only $7/2$ total probability to go around. Similarly, we see that $f_5(q^{5,j}) = 0,$ for each $j,$ since you have already allowed the Suns to win 3 districts and hence can only win a maximum of 4. Additionally, whenever So for $i, j \in \{0,1,2, 3\},$ we can calculate the values of $f_5$ and $f_4$ using some handy-dandy calculators, whether Excel or numpy or whatever you fancy, to obtain the following table:

$i$$j$$\lambda_{ij}$$f_5(q^{i,j})$$f_4(q^{i,j})$
$0$$0$$1/2$ $0.2265625$$0.5000000$
$1$$0$$7/12$$0.2082593$$0.5097931$
$2$$0$$7/10$$0.1680700$$0.5282200$
$3$$0$$7/8$ $0.0000000$$0.5861864$
$0$$1$$5/12$$0.2030319$$0.4902069$
$1$$1$$1/2$ $0.1875000$$0.5000000$
$2$$1$$5/8$ $0.1525878$$0.5187988$
$3$$1$$5/8$ $0.0000000$$0.5787037$
$0$$2$$3/10$$0.1630800$$0.4717800$
$1$$2$$3/8$ $0.1680700$$0.4812012$
$2$$2$$1/2$ $0.1516113$$0.5000000$
$3$$2$$3/4$ $0.1516113$$0.5625000$
$0$$3$$1/8$ $0.1630800$$0.4138184$
$1$$3$$1/6$ $0.0740741$$0.4212963$
$2$$3$$1/4$ $0.0625000$$0.4375000$
$3$$3$$1/2$ $0.0000000$$0.5000000$

We further note that the probability of losing the election is $L(p) = 1 - f_4(p).$ Therefore, we see that if the Moons want to greedily maximize the probability of winning at least 5 districts, then they need to pick $$p^A = (1/2, 1/2, 1/2, 1/2, 1/2, 1/2, 1/2),$$ which will give probability of losing the election of $$L_A = 1 - f_4(p^A) = \frac{1}{2}.$$ However, we see that $p^B = (0, 0, 0, 7/8, 7/8, 7/8, 7/8)$ is the maximizer of $f_4,$ which means that $$L_B = 1 - f_4(p^B) = 1- \frac{2401}{4096} = \frac{1695}{4096} = 0.4138184\dots.$$ Therefore, we see that the Moons' greedy decision to maximize the probability of winning 5 or more districts cost them $$L_A - L_B = \frac{353}{4096} = 8.61816\dots \%$$ in winning percentage.

Non-representative Democracy

Fiddler Nation has an upcoming election between its two major political parties: the Suns and the Moons. You are drawing a new electoral map, and you have been tasked with gerrymandering on behalf of your party, the Moons. Fortunately, you know exactly how every citizen will vote in the election.

Fiddler Nation has seven districts, each with an equal population. For simplicity, assume that the Moons win any district in which they receive at least half of the vote.

What is the smallest total fraction of Fiddler Nation’s population needed to vote Moon such that it’s possible for the Moons to win a majority of the seven districts?

Let's let $p_i \in [0,1]$ be the proportion of voters in district $i$ that vote for the Moons. We see that the Moons will win district $i$ if and only if $p_i \geq 0.5.$ So without loss of generality, we assume that $p_1 \leq p_2 \leq \dots \leq p_6 \leq p_7,$ so if the Moons are only going to win 4 districts, then they would win districts 4 through 7, that is we would need $p_i \geq 0.5, i = 4, \dots, 7.$ Since each district has the same population, say $1/7$ of the total, we have that the total number of votes for the Moons would be $\frac{1}{7} \sum_{i=1}^7 p_i.$ For the classic problem, we want \begin{align*} \min \,\, & \frac{1}{7} \sum_{i=1}^7 p_i \\ \text{suct that} \,\, & 0 \leq p_1 \leq p_2 \leq \dots \leq p_6 \leq p_7 \leq 1 \\ & p_i \geq \frac{1}{2}, \, i = 4, 5, 6, 7\end{align*} We see that the minimizer is $$p^*_1 = p_2^* = p_3^* = 0, p^*_4 = p^*_5 = p^*_6 = p_7^* = 1/2,$$ so the smallest total proportion of the entire voting population to vote for the Moons that could result in a Moon victory is $$p^* = \frac{1}{7} \left( 3 \cdot 0 + 4 \cdot \frac{1}{2} \right) = \frac{2}{7}$$ of the population, which is indeed a pitifully low portion of the populace.