This week the #puzzle is still unknown to me, as I write this. Because I am busy. But here’s some other content for you.

This week the #puzzle is still unknown to me, as I write this. Because I am busy. But here’s some other content for you.

If you want to compare 2 large numbers, and remember to carry the one(s), this is how you do it.
First row in the table below: Our units. In the middle, there’s a familiar system: 1, 10, 100. This is how our own numbers are constructed. There’s a position for 1s, a position for 10s, etc. To the left and to the right, the units are not the familiar ones, but hopefully we can understand this anyway.
Second row: A sum of a lot of other numbers. The sum hasn’t been normalized to its shortest from yet. We want to normalize and then compare with the last row, another number from the same source.
Normalization example: In the second row, 15 and 15 are bolded. The jump from the first to the second column is to multiply by 2. (1/120 * 2 = 1/60.) So to normalize, we look at the first 15 and divide by 2.
So in the next row, instead of 15 and 15, we have 1 and 22.
Move to the next pair of columns and repeat.
| 1/120 | 1/60 | 1/30 | 1/10 | 1/5 | 1 | 10 | 100 | 300 | 3000 | 18000 |
| 15 | 15 | 24 | 14 | 19 | 26 | 39 | 11 | 7 | 8 | 5 |
| 1 | 22 | 24 | 14 | 19 | 26 | 39 | 11 | 7 | 8 | 5 |
| 1 | 0 | 35 | 14 | 19 | 26 | 39 | 11 | 7 | 8 | 5 |
| 1 | 0 | 2 | 25 | 19 | 26 | 39 | 11 | 7 | 8 | 5 |
| 1 | 0 | 2 | 1 | 31 | 26 | 39 | 11 | 7 | 8 | 5 |
| 1 | 0 | 2 | 1 | 1 | 32 | 39 | 11 | 7 | 8 | 5 |
| 1 | 0 | 2 | 1 | 1 | 2 | 42 | 11 | 7 | 8 | 5 |
| 1 | 0 | 2 | 1 | 1 | 2 | 2 | 15 | 7 | 8 | 5 |
| 1 | 0 | 2 | 1 | 1 | 2 | 2 | 0 | 12 | 8 | 5 |
| 1 | 0 | 2 | 1 | 1 | 2 | 2 | 0 | 2 | 9 | 5 |
| 1 | 0 | 2 | 1 | 1 | 2 | 2 | 0 | 2 | 3 | 6 |
| 1 | 0 | 2 | 1 | 1 | 2 | 2 | 1 | 1 | 3 | 6 |
And yes, the end result is, that the 2 numbers aren’t quite the same.
Background: Recently I read this, in From One to Zero, Georges Ifrah
:





I ask every episode: Why do I love trek? Most episodes demonstrate some of the reasons.

| Number / Name | Why I liked it |
| 201 / 2:1 “Brother” |
Hey, I know that guy! And that ship! And that guy, they talk about! |
| 202 / 2:2 “New Eden” |
Religion. Imaginary friend? |
| 203 / 2:3 “Point of Light” |
Action mommy? |
| 204 / 2:4 “An Obol for Charon” |
Hey, I know that gal! Communication! |
| 205 / 2:5 “Saints of Imperfection” |
Evil or defensive? Cool image of a spaceship in “water”. Marriage restored. |
| 206 / 2:6 “The Sound of Thunder” |
Oppression. Justified? |
| 207 / 2:7 “Light and Shadows” |
Hey, I know that guy! A civilized argument. |
| 208 / 2:8 “If Memory Serves” |
Visual telepathy. Trying to resume life after a big change. |
| 209 / 2:9 “Project Daedalus” |
Cool hacking. Sacrifice. |
| 210 / 2:10 “The Red Angel” |
Top level flirting, papi. Therapy. Fun with time. Family this and family that. |
| 211 / 2:11 “Perpetual Infinity” |
A prison cell with walls of little lights; nowhere to hide. |
| 212 / 2:12 “Through the Valley of Shadows” |
Complicated weddings; bonding. |
| 213 / 2:13 “Such Sweet Sorrow” |
Those evacuation corridors. |
| 214 / 2:14 “Such Sweet Sorrow, Part 2” |
Friends help friends. Fun with time. Friendship is important. |
I have made a lot of lists. I try to write down why I love each and every Star Trek episode. Let’s see how many I’ve made.
| Original Series | S1, S2, S3 |
| Animated Series | S1, S2 |
| The Next Generation | S1, S2, S3, S4, S5, S6, S7 |
| Deep Space Nine | S1, S2, S3, S4, S5, S6, S7 |
| Voyager | S1, S2, S3, S4, S5, S6, S7 |
| Enterprise | S1, S2, S3, S4 |
| Movies | TOS, TNG, Kelvin, Section 31 |
| Discovery | S1, S2 |
| Short Treks | S1 |
| Very Short Treks | S1 |
| Picard | S1, S2, S3 |
| Lower Decks | S1, S2, S3, S4, S5 |
| Prodigy | S1, S2 |
| Strange New Worlds | S1, S2, S3, … |
| Scouts | S1 |
| Star Fleet Academy | S1 |
![]() | ![]() |
“The Discovery of the Future”
, Robert A. Heinlein.
“Phrases like “There’ll always be an England” are pleasant and inspiring at the present time, but we know better. There won’t always be an England, nor a Germany, nor a United States, a Baptist Church, nor monogamy, nor the Democratic Party, nor the modesty taboo, nor the superiority of the white race, nor airplanes. Nor automobiles. They will go. They will be gone-we’ll see them go. Any custom, institution, belief, or social structure that we see around us today will change, will pass, and most of those we will see change and pass.
In science fiction, we try to envision what those changes might be. Our guesses are usually wrong; they are almost certain to be wrong. Some men, with a greater grasp on data than others, can do remarkably well. H. G. Wells, who probably knows more (on the order of ten times as much, or perhaps higher) than most science fiction writers, has been remarkably successful in some of his predictions. Most of us aren’t that lucky;
I do not expect my so-called History of the Future to come to pass. I think some of the trends in it may show up, but I do not think that my factual predictions as such are going to come to pass, even in their broad outlines.”
“I have never been able to understand quite why it is that the historical novel is the most approved, the most sacred form of literature. The contemporary novel is next so; but the historical novel, if you write an historical novel, that’s literature.
I think that the corniest tripe published in a science fiction magazine (and some of it isn’t too hot, we know that; some of my stuff isn’t so hot) beats all of the Anthony Adverses and Gone With the Winds that were ever published, because at least it does include that one distinctly human-like attempt to predict the future.”

This week the #puzzle is: Can You Rile and Grace the Polyhedron? #geometry
| An alien—more specifically, an Eridian—named “Rocky” needs to pass a solid xenonite crystal to his human friend in a neighboring spaceship. The crystal is shaped like a regular tetrahedron, as shown below, and all its edges have length 1. |
![]() |
| To safely transport the crystal, Rocky needs to create a long cylindrical tunnel between the spaceships, and then orient the tetrahedron so that it fits through the tunnel. It’s okay if the crystal fits snugly inside the tunnel—in this case, it can slide along without any friction. |
| What is the minimum possible radius for my tunnel so that the crystal will fit through it? |
And for extra credit:
| Next, Rocky wants to transport a solid crystal shaped like a regular dodecahedron to his human friend. As before, each edge has length 1. |
![]() |
| This time, the long tunnel between the space ships can be any right prismatic shape, not necessarily a cylinder. Once again, Rocky needs the crystal to fit through the tunnel, and it’s okay if that fit is snug. |
| What is the minimum possible cross-sectional area for the tunnel so that the crystal will fit through it? |

Can You Rile and Grace the Polyhedron? ![]()
| The results from Q1 are in, and the finest of Fiddlers, who each solved all 24 puzzles, are: 👑 Adnan Haque 👑 from New York 👑 David Kong 👑 from Toronto, Canada 👑 Josh Silverman 👑 from Glen Head, New York 👑 Lise Andreasen 👑 from Valby København Danmark 👑 Peter Ji 👑 from Madison, Wisconsin 👑 Seth Cohen 👑 from Concord, New Hampshire |
Woohoo!
My only option this week is to guess. I guess the circle shown on Desmos. Radius 0.5.
Given more time, I would have coded a tetrahedron, that could rotate, so that I could test different options.
I don’t even have a guess.
This week the #puzzle is: Can You Pile the Primes? #primes #coding #BruteForce #oeis #subsets
| Suppose you want to make two groups with equal sums using the first N2 prime numbers. What is the smallest value of N2 for which you can do this? |
| The answer is three! (Clearly, that wasn’t actually the puzzle.) |
| The first three primes are 2, 3, and 5, and you can split them up into two sets: {2, 3} and {5}. Sure enough, 2 + 3 = 5. |
| Your puzzle involves making three groups with equal sums using the first N3 prime numbers. What is the smallest value of N3 for which you can do this? |
And for extra credit:
| Now you want to make six groups with equal sums using the first N6 prime numbers. What is the smallest value of N6 for which you can do this? |

I am very excited, because this is the last fiddler of Q1, and I still have maximum points. Wish me luck.
Method 1: Write a brute force program. This actually finds a solution rather quickly. N2 is confirmed, among other things.
Testing N1 = 1. Testing these primes: 2
................. Group 1: 2
................. Sum of groups: 2
................. N1 = 1
Testing N2 = 2. Sum of primes 5 isn't a multiple of 2, rejected.
Testing N2 = 3. Testing these primes: 5,3,2
................. Group 1: 5
................. Group 2: 3,2
................. Sum of groups: 5
................. N2 = 3
Testing N3 = 3. Sum of primes 10 isn't a multiple of 3, rejected.
Testing N3 = 4. Sum of primes 17 isn't a multiple of 3, rejected.
Testing N3 = 5. Sum of primes 28 isn't a multiple of 3, rejected.
Testing N3 = 6. Sum of primes 41 isn't a multiple of 3, rejected.
Testing N3 = 7. Sum of primes 58 isn't a multiple of 3, rejected.
Testing N3 = 8. Sum of primes 77 isn't a multiple of 3, rejected.
Testing N3 = 9. Sum of primes 100 isn't a multiple of 3, rejected.
Testing N3 = 10. Testing these primes: 29,23,19,17,13,11,7,5,3,2
................. Group 1: 29,7,5,2
................. Group 2: 23,17,3
................. Group 3: 19,13,11
................. Sum of groups: 43
................. N3 = 10
Result: N3 = 10.
Method 1: The same program.
N6 has to be at least 57. But then my program gives up. Heat death of the universe kind of thing.
Testing N6 = 57.
Testing these primes:
269,263,257,251,241,239,233,229,227,223,
211,199,197,193,191,181,179,173,167,163,
157,151,149,139,137,131,127,113,109,107,
103,101,97,89,83,79,73,71,67,61,59,53,
47,43,41,37,31,29,23,19,17,13,11,7,5,3,2
Or rather, test left as an exercise for the reader.
Method 2: Try to find a solution with the first 57 primes. And I do!
N6 = 57.
Method 3: Look for an OEIS sequence. Found. Results confirmed.
This week the #puzzle is: Can You Trace the Locus? #geometry #area #coding
| I have a loop of string whose total length is 10. I place it around a unit disk (i.e., with radius 1) and pull a point on the string away from the disk until the string is taut, as shown below. |
![]() |
| I drag this point around the disk in all directions, always keeping the string taut, tracing out a loop. What is the area inside this resulting loop? |
And for extra credit:
| Now I have a loop of string whose total length is 14, and I place it around two adjacent unit disks. As before, I pull a point on the string away from the disks until the string is taut, as shown below. |
![]() |
| I drag this point around the disks in all directions, always keeping the string taut, tracing out a loop. What is the area inside this resulting loop? |

Let the center of the circle be at (0, 0). Choose a random point p2 (x2, 0) (0 < x2) and fudge around, until the string has length s = 10. This involves some math first. Let p1 (x1, y1) (0 < x1) be the point, where the string switches between straight and round. This point is on the tangent to the circle going through p2. p1 also represents an angle a. I change a, until s = 10.
(I had some nicer equations planned, but WordPress won’t play along.)
(x1, y1) = (cos(a), sin(a))
Round stretch of string:
s1 = 2 π – 2a = 2 (π – a)
Line through p1:
m = y1 / x1
y = m x
Tangent through p1:
m = – x1 / y1
y – y1 = m (x – x1)
y – y1 = – x1 / y1 * x + x1 / y1 * x1
y = – x1 / y1 * x + x1 / y1 * x1 + y1
y = – x1 / y1 * x + (x12 + y12) / y1
y = – x1 / y1 * x + 1 / y1
Point where tangent hits x axis:
0 = – x1 / y1 * x2 + 1 / y1
0 = -x1 * x2 + 1
x1 * x2 = 1
x2 = 1 / x1
Length of 1 straight bit of string:
s2 / 2 = √ (y12 + (x2 – x1)2)
= 2 √ (sin2(a) + (1/cos(a) – cos(a))2)
Full length of string:
s = 10 = s1 + s2 = 2 (π – a) + 2 √ (sin2(a) + (1/cos(a) – cos(a))2)
As I said, I fudge around in Desmos, until I find a = 1.260529. (Wolfram Alpha confirms this solution.) This means x2 = 3.27532.
This also means, the loop is a circle with radius 3.27532. This circle has area about 33.70.
Desmos
Program
Formula for tangent lines through point ![]()
This puzzle resembles the fiddler. Except the loop isn’t just a nice circle. I have to calculate a new y, every time I change x. (That’s what I ended up doing anyway.) I write a program to do it for me and estimate the area. (Geometry and integrals will be the death of me.) Below I show a quarter of the loop.
When -1 < y < 1, the calculation is the same. This part of the loop will be the same as the circle from the fiddler.
In that situation we have 2 straight bits of length 2, going between the circle, half a circle on the left and then the same situation as the fiddler on the right.
But outside of that band, the 2 straight bits between circles and point go to different circles.
Anyway. Result: area about 52.36.
This week the #puzzle is: Can You or “Cantor” You Find the Distance? #probabilities #infinity #coding #montecarlo #permutations #distance
| I start with a number line from 0 to 1, and then I remove the middle third. Then I take each of my remaining pieces (the segment from 0 to 1/3 and the segment from 2/3 to 1) and remove their middle thirds. Now I have four segments (from 0 to 1/9, 2/9 to 1/3, 2/3 to 7/9, and 8/9 to 1) and remove their middle thirds. I do this over and over again, infinitely many times. |
| The points I’m left with are collectively known as the Cantor set. The Cantor set is not empty; in fact, it contains infinitely many points on the number line, such as 0, 1, 1/3, and even 1/4. |
| 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? |
And for extra credit:
| Suppose I independently pick three random points in the Cantor set. Each point has some value between 0 and 1. |
| What is the probability that these three values can be the side lengths of a triangle? |

Can You or “Cantor” You Find the Distance? ![]()
Method 1:
Method 2:
Method 3:
| Distance | 003 | 023 | 203 | 223 |
| 003 = 0 | 0 | 2/9 | 6/9 | 8/9 |
| 023 = 2/9 | 2/9 | 0 | 4/9 | 6/9 |
| 203 = 6/9 | 6/9 | 4/9 | 0 | 2/9 |
| 223 = 8/9 | 8/9 | 6/9 | 2/9 | 0 |
| Distance | 003-013 | 023-103 | 203-213 | 223-1003 |
| 003-013 or 0/9-1/9 | 0/9-1/9 | 1/9-3/9 | 5/9-7/9 | 7/9-9/9 |
| 023-103 or 2/9-3/9 | 1/9-3/9 | 0/9-1/9 | 3/9-5/9 | 5/9-7/9 |
| 203-213 or 6/9-7/9 | 5/9-7/9 | 3/9-5/9 | 0/9-1/9 | 1/9-3/9 |
| 223-1003 or 8/9-9/9 | 7/9-9/9 | 5/9-7/9 | 1/9-3/9 | 0/9-1/9 |
| Distance interval | Distance max | Frequency | Acc. freq. |
| 0/9-1/9 | 1/9 | 4/16 | 4/16 |
| 1/9-3/9 | 3/9 | 4/16 | 8/16 |
| 3/9-5/9 | 5/9 | 2/16 | 10/16 |
| 5/9-7/9 | 7/9 | 4/16 | 14/16 |
| 7/9-9/9 | 9/9 | 2/16 | 16/16 |
I trust my results. The average is 0.40.
Same program, same logic etc. Some of the same bafflement.
The ratio is 0.40.
I actually got curious and conducted the same experiments without the cantor set limitation. Then my average would have been 1/3 and my ratio would have been 1/5. So it does make a difference.
This week the #puzzle is: Can You Shovel the Snow? #geometry #area #equidistant #probabilities #coding #montecarlo
| 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? |
And for extra credit:
| Having completed the shoveling of the hexagonal lot, the two teams move on to a circular lot. This time, Team Vertex initially places all their shovelers at one random point inside the circle, while Team Centroid initially places all their shovelers at one other, independently chosen random point inside the circle. (To be clear, by “random point” in the circle, I mean that the probability of being in any given region of the circle is proportional to that region’s area.) |
| As before, each team is responsible for shoveling the snow that is initially closer to someone on their own team than anyone on the other team. |
| Inevitably, one team is responsible for shoveling a greater fraction of the lot than the other. On average, what would you expect this greater fraction to be? |

This image nicely captures my thoughts (click to enlarge):
The purple triangle is between these 3 points:
The area of the slice is:
The area of the triangle is:
The fraction of the points closest to the center:
The result is 1/3.
This could of course be solved using integrals. But I don’t know how… So I monte carlo.
In part my program is based on what this image shows:
Given 2 random points (red and blue — the red one was trying to leave the circle there, sigh), find the midpoint between them (green). Translate the midpoint so that it’s on a line going through the center. Then rotate that new midpoint around the center, so that it lands on the x axis. Then draw the perpendicular through that point (black). Calculate the area of the circular segment on the left and calculate the fraction. (I actually calculate the smaller fraction, so it’s then subtracted from 1.)
Do this a lot of times and calculate the average.
Some of the calculations. Find the midpoint between the 2 random points:
Translate that midpoint onto the line going through the center. First find the slant of the line through the 2 random points:
Then find the translated midpoint:
Distance from translated midpoint to center:
Find angle:
Find area:
The area of the whole circle:
The fraction, remember we need the largest one:
The result, from the program, about 0.64.
I plotted the distribution in Desmos too: