Monday, March 16, 2026

Average Cantor Distance

It’s possible to pick a random point in the Cantor set in the following way: Start with the entire number line from 0 to 1. Then, every time you remove a middle third, you give yourself a 50 percent chance of being on the left remaining third and a 50 percent chance of being on the right remaining third. Then, when you remove the middle third of that segment, you again give yourself a 50 percent chance of being on the left vs. the right, and so on.

Suppose I independently pick two random points in the Cantor set. On average, how far apart can I expect them to be?

Let's define $\Delta$ as the average distance between two different randomly chosen points in the Cantor set, say $a$ and $b \in \mathcal{C}.$ Based on the self-similarity of the Cantor set $\mathcal{C},$ we see that $\mathcal{C} = \frac{1}{3} \mathcal{C} \cup \left( \frac{2}{3} + \frac{1}{3} \mathcal{C} \right).$ Then from the law of total expectation and the fact that the probability of being in either the left or right half of the Cantor set is independently $\frac{1}{2}$ for each of $a$ and $b$, we get \begin{align*} \Delta &= \mathbb{E} \left[ |a-b| \mid a, b \in \frac{1}{3} \mathcal{C} \right] \mathbb{P} \left\{ a, b \in \frac{1}{3} \mathcal{C} \right\} \\ &\quad + \mathbb{E} \left[ |a-b| \mid a, b \in \frac{2}{3} + \frac{1}{3} \mathcal{C} \right] \mathbb{P} \left\{ a, b \in \frac{2}{3} + \frac{1}{3} \mathcal{C} \right\} \\ & \quad\quad + \mathbb{E} \left[ |a-b| \mid a \in \frac{1}{3} \mathcal{C}, b \in \frac{2}{3} + \frac{1}{3} \mathcal{C} \right] \mathbb{P} \left\{ a \in \frac{1}{3} \mathcal{C}, b \in \frac{2}{3} + \frac{1}{3} \mathcal{C} \right\} \\ &\quad\quad\quad + \mathbb{E} \left[ |a-b| \mid a \in \frac{2}{3} + \frac{1}{3} \mathcal{C}, b \in \frac{1}{3} \mathcal{C} \right] \mathbb{P} \left\{ a \in \frac{2}{3} + \frac{1}{3} \mathcal{C}, b \in \frac{1}{3} \mathcal{C} \right\} \\ &= \frac{ \Delta_1 + \Delta_2 + \Delta_3 + \Delta_4}{4}.\end{align*}

Since they are simply scaled copies of the original problem, we see that $\Delta_1 = \Delta_2 = \frac{1}{3} \Delta.$ However, let's take a look at $\Delta_3$ and $\Delta_4.$ For any $a \in \frac{2}{3} + \frac{1}{3} \mathcal{C},$ there is some $a^\prime \in \mathcal{C}$ such that $a = \frac{2}{3} + \frac{1}{3} a^\prime.$ So if $b \in \frac{1}{3} \mathcal{C}$ then there is some $b^\prime \in \mathcal{C}$ with $b=\frac{1}{3} b^\prime$. Therefore, we then have $|a-b| = \frac{2}{3} + \frac{1}{3}(a^\prime - b^\prime) \geq \frac{1}{3} \geq 0.$ So taking the expectation over all values of $a^\prime, b^\prime \in \mathcal{C}$ we get $$\Delta_3 = \Delta_4 = \mathbb{E} \left[ |a-b| \mid a \in \frac{2}{3} + \frac{1}{3} \mathcal{C}, b \in \frac{1}{3} \mathcal{C} \right] = \frac{2}{3} + \frac{1}{3} \mathbb{E} \left[ a^\prime - b^\prime \right] = \frac{2}{3}.$$

Thus putting everything together we get $$\Delta = \frac{1}{4} \sum_{i=1}^4 \Delta_i = \frac{ \frac{2}{3} \Delta + \frac{4}{3} }{4} = \frac{1}{6} \Delta + \frac{1}{3},$$ which means that $\frac{5}{6} \Delta = \frac{1}{3}$ or finally that the average distance between two randomly chosen points in the Cantor set is $$\Delta = \frac{6}{5}\cdot \frac{1}{3} = \frac{2}{5}.$$

Sunday, March 8, 2026

Team Centroid is slacking

Two teams of shovelers plan to remove all the snow from a parking lot that’s shaped like a regular hexagon. Team Vertex initially places each of its six shovelers at the six corners of the lot. Meanwhile, Team Centroid initially places all its shovelers at the very center of the lot.

Each team is responsible for shoveling the snow that is initially closer to someone on their own team than anyone on the other team. What fraction of the lot’s snow is Team Centroid responsible for shoveling?

We can draw a straight line from Team Centroid's central spot to each of the vertices. Drawing a perpendicular bisector of each of these lines we obtain a new smaller, rotated hexagon, shown in blue in the figure below. We note that the apothem of the smaller hexagon is one half of the circumradius of the larger hexagon. Since the area of a regular $n$-gon is given by $$A_n = na^2 \tan \frac{\pi}{n} = \frac{1}{2} nR^2 \sin \frac{2\pi}{n},$$ we see that the apothem and circumradius are related by $a = R \cos \frac{\pi}{n},$ so in this case we have $a = R \cos \frac{\pi}{6} = \frac{R \sqrt{3}}{2},$ or equivalently $R = \frac{2a}{\sqrt{3}}.$

Since we have that the apothem of the Team Centroid hexagon is one half of the circumradius of the Team Vertex hexagon, we have $$R_C = \frac{2}{\sqrt{3}} a_C = \frac{1}{\sqrt{3}} R_V.$$ Since areas scale with the square of the circumradius, we have that the area shoveled by Team Centroid is $\left( \frac{1}{\sqrt{3}} \right)^2 = \frac{1}{3}$ of the entire hexagonal parking lot.

Sunday, March 1, 2026

Fewest Firsts

As we just noted, in 2026, all seven days of the week appear as the first of the month at least once. But you know, I decided that I don’t like that at all. Instead, I want as few days of the week as possible to appear as the first of the month in a given year.

To accomplish this, I have been granted the authority to change the number of days in each of that year’s 12 months, provided that there are still 365 or 366 days in the year and each month has at least 28 days and at most 31 days.

What are the fewest days of the week that can appear as the first of the month in such a calendar year? (And for fun, rather than for credit: How many such calendars can you design with this property?)

Let $N^*$ be the minimal number of days of the week that can appear as the first of the month of any calendar year. First from the Classic problem we see that the furthest away that two consecutive months can start is 3 days of the week apart, so this means that the smallest that we could possibly hope for is to have a calendar with only three possible days of the week for firsts of the month. That is, $N^* \gt 2,$ or equivalently that $N^* \geq 3.$

Therefore, all we have to do is provide some calendar year where $N=3$ is attained. For instance, take the following setup where March, June, and September have 29 days and all other months have 31 days. This would give $3 \cdot 29 + 9 \cdot 31 = 87 + 279 = 366$ days in the year. Similarly, if January 1 occurs on $x \in \mathcal{D},$ then February 1 occurs on $x+3,$ March 1 occurs on $x+6,$ April 1 occurs on $x+7 \equiv x,$ May 1 occurs on $x+3,$ June 1 occurs on $x+6,$ July 1 occurs on $x+7\equiv x,$ August 1 occurs on $x+3,$ September 1 occurs on $x+6,$ October 1 occurs on $x+7 \equiv x,$ November 1 occurs on $x + 3$ and finally, December 1 occurs on $x+6.$ Putting these altogther gives a subset $\mathcal{N} = \{ x, x + 3, x + 6 \} \subsetneq \mathcal{D},$ with $N= |\mathcal{N}| = 3.$ Therefore, we have that $N^* \leq N = 3$ and hence the fewest days of the week that can appear as the first of the month is $N^*=3.$

Can every day be the first?

In 2026, every day of the week is the first day of the month at least once:

  • Monday is June 1.
  • Tuesday is September 1 and December 1.
  • Wednesday is April 1 and July 1.
  • Thursday is January 1 and October 1.
  • Friday is May 1.
  • Saturday is August 1.
  • Sunday is February 1, March 1, and November 1.

Is 2026 special in this regard? If so, when is the next year when one of the days of the week is not represented among the firsts of the month? Otherwise, if 2026 is not special in this regard, then why not?

First let's note that if a month has $28$ days, looking at you February, then the next month will start on the same day of the week that it starts. If a month has $29$ days, again looking less frequently at you February, then then next month will start on the next day of the week. If a month has $30$ days then the next month will start two days after it, and finally for all of those $31$ day months, the following month will start three days of the week after it.

Let's further represent the days of the week as numerals, $\mathcal{D} = \mathbb{Z} / 7\mathbb{Z}.$ If January 1 occurs on some $x \in \mathcal{D}$ then February 1 occurs on $x+3.$ If the year is not a leap year then we have March 1 also on $x+3,$ followed by April 1 on $x+6,$ May 1 on $x+8 \equiv x+1,$ June 1 on $x+4$, July 1 on $x+6,$ August 1 on $x+9 \equiv x+2$, September 1 on $x+5,$ October 1 on $x+7 \equiv x,$ November 1 on $x+3$ and finally December 1 on $x+5.$ Gropuing these all together we see that we have all the days of the week covered $\{ x, x+1, x+2, x+3, x+4, x+5, x+6\} = \mathcal{D}.$

If on the other hand, this is a leap year, then we have January 1 and February 1 on $x$ and $x+3$ as before, but then March 1 on $x+4,$ April 1 on $x+7 \equiv x,$ May 1 on $x+2,$ June 1 on $x+5,$ July 1 on $x+7 \equiv x$, August 1 on $x+3,$ September 1 on $x+6,$ October 1 on $x+8 \equiv x+1,$ November 1 on $x+4,$ and finally December 1 on $x+6.$ Again, grouping these all togehter, we see that we have all the days of the week covered $\{ x, x+1, x+2, x+3, x+4, x+5, x+6 \} = \mathcal{D}.$

Therefore, there is nothing special about 2026. Each and every year under the Gregorian system has this property where each day of the week is represented among the firsts of the month.