Monday, 23 November 2026

Triple Prime Convergence

I'm getting a little ahead of myself. I'm currently only 77 years old so the above is a projected future that I may or may not experience. I have a reasonable chance of getting there. According to Wolfram Alpha, I have a 50% chance of reaching 88.53 years of age:

Let's begin at the beginning. I was born in a prime year, 1949, and this prime together with 1951 forms a twin prime pair. Likewise the upcoming years 2027 and 2029 form a twin prime pair. On Tuesday, January 2nd 2029, I'll turn a prime number of days old: 29129. I will be 79 years old. In summary then, I'll be:
  • a prime number of days old (29129)
  • a prime numbers of years old (79)
  • living in a prime year (2029)
Actually all the dates below satisfy the above triple prime convergence.

NumberDays Added
(n−29129)
Gap from
Previous
Calendar DateDay of Week
291290—January 2, 2029Tuesday
2913122January 4, 2029Thursday
2913786January 10, 2029Wednesday
291471810January 20, 2029Saturday
29153246January 26, 2029Friday
291673814February 9, 2029Friday
29173446February 15, 2029Thursday
29179506February 21, 2029Wednesday
291916212March 5, 2029Monday
292017210March 15, 2029Thursday
29207786March 21, 2029Wednesday
29209802March 23, 2029Friday
Gemini adds the following observations:
  • Symmetric Bookends: Just as the table opens with the prime triple $(29129, 29131, 29137)$ of the form $(p, p + 2, p + 8)$, it closes with the mirror-image prime triple $(29201, 29207, 29209)$ of the form $(p, p + 6, p + 8)$, ending on the twin prime pair $29207$ and $29209$.

  • Nearest Prime to April 3, 2029: While April 3, 2029 ($29220$) falls during an $11$-day composite stretch after March 23, the very next day—April 4, 2029 (Wednesday)—corresponds to $29221$, which is prime.

A similar table can be constructed for 2039 when I'll be 89 in first three months of the year:
NumberDays Added
(n−32780)
Gap from PreviousCalendar DateDay of Week
327833—January 4, 2039Tuesday
3278996January 10, 2039Monday
32797178January 18, 2039Tuesday
32801214January 22, 2039Saturday
32803232January 24, 2039Monday
328315128February 21, 2039Monday
32833532February 23, 2039Wednesday
32839596March 1, 2039Tuesday
32843634March 5, 2039Saturday
328698926March 31, 2039Thursday
So in the year 2039, if I'm still alive, I'll experience being on the dates listed above:
  • a prime number of days old e.g. 32783
  • a prime numbers of years old (89)
  • living in a prime year (2039)
Gemini makes the following observations:
  • Two Wide Prime Gaps: Unlike the relatively even spread in early 2029, this window contains two long composite droughts—a $28$-day gap from January 24 ($32803$) to February 21 ($32831$), followed shortly after by a $26$-day gap from March 5 ($32843$) to March 31 ($32869$).

  • Tight Clusters and Twin Primes: The primes bunch into two compact groups separated by that February drought: a late-January triple $(32797, 32801, 32803)$ ending in a twin prime pair, and a four-prime cluster $(32831, 32833, 32839, 32843)$ of the form $(p, p + 2, p + 8, p + 12)$ bridging late February into early March.

  • Four Repeating Calendar Dates from 2029: Exactly four calendar dates—January 4, January 10, February 21, and March 5—land on prime day-counts in both 2029 and 2039, since shifting each of those four 2029 primes forward by $3652$ days (ten calendar years including the leap years 2032 and 2036) produces another prime.

  • Nearest Primes Outside the Window: The day immediately before the start of the year, December 31, 2038 (Friday), corresponds to the prime $32779$. On the far end, April 3, 2039 ($32872$) sits inside an $18$-day gap whose next prime does not arrive until April 18, 2039 (Monday) at $32887$.

Saturday, 21 November 2026

Antoni Gaudi

When I was training to become a Mathematics teacher in 1984, I chose as my major project "Mathematics and Art". Reading about the architectural accomplishments of Antoni Gaudí made me aware of the extent to which he used mathematics in his architectural structures. Here is what Gemini had to say about it: 

Antoni Gaudí solved two distinct architectural problems with mathematics: how forces travel through stone (solved with hanging-chain models) and how masons can build fluid, organic surfaces out of rigid materials (solved with ruled-surface geometry). Together, they allowed him to design buildings that look wildly sculptural while behaving like pure structural machines.

Hanging-Chain Models: Computing Gravity in Reverse

Traditional masonry—stone and brick—is enormously strong in compression (being pushed together) and notoriously weak in tension (being pulled apart) or bending. When medieval cathedral builders used semicircular or pointed arches, the weight of the roof pushed the walls outward, forcing them to build massive external flying buttresses to keep the nave from collapsing.

Gaudí bypassed flying buttresses entirely by applying a mechanical principle first published in 1675 by English physicist Robert Hooke as a Latin anagram:

Ut pendet continuum flexile, sic stabit contiguum rigidum inversum. 

("As hangs the flexible line, so, inverted, will stand the rigid arch.")

A freely hanging flexible cord cannot resist bending or compression—it can only carry pure tension. Gravity therefore forces the cord to settle automatically into the exact curve where every internal force is tangent to the line. For a uniform chain hanging solely under its own weight, that curve is the catenary:$$y(x) = a \cosh\left(\frac{x}{a}\right) = \frac{a}{2}\left(e^{x/a} + e^{-x/a}\right)$$where \(a\) is the ratio of horizontal tension to weight per unit length. Flip that curve upside down, and every tensile force becomes a compressive force of identical magnitude and direction. The resulting masonry arch carries its load straight down its centerline with zero bending stress.

From Simple Catenary to Polyfunicular Computer

A real church, however, does not have uniform weight; towers, vaults, and clerestory walls concentrate heavy loads at specific points. When you hang discrete weights along a network of interconnected strings, the shape ceases to be a smooth catenary and becomes a funicular polygon (or, in three dimensions, a polyfunicular network).

Between 1898 and 1908, Gaudí turned this principle into a giant analog computer in a shed beside the construction site of the Church of Colònia Güell:

  1. The Ceiling Plan: Gaudí mounted a 1:10 scale wooden floor plan of the church upside down on the ceiling of his workshop, spanning roughly 4 meters high and 6 meters wide.

  2. Strings and Birdshot: From every column base and wall point on that ceiling plan, he suspended loops of string representing arches and ribs. To simulate the loads of roofs, walls, and bell towers, he tied hundreds of tiny cloth sacks filled with lead birdshot onto the strings at a weight scale of 1:10,000. Because static equilibrium geometry depends only on the relative ratios of forces, scaling every weight down by the same factor preserved the exact angles of every thrust line while keeping the cords light enough to adjust by hand.

  3. Live Recalculation: Whenever Gaudí moved a string or added birdshot to simulate a heavier tower, the entire three-dimensional web shifted instantaneously to a new equilibrium. Every leaning cord revealed the precise inclination a stone pillar needed to absorb lateral thrust without external buttresses.

  4. Inverting the Design: Gaudí draped thin paper and cloth across the strings to model the vaults and walls, then photographed the hanging structure from multiple angles (and also checked it via mirrors placed below). Flipping the photographs upside down gave him an upright silhouette of the church, over which he painted directly in gouache and pastel to refine the stonework and windows.

The original Colònia Güell model was destroyed in July 1936 during the Spanish Civil War, though a full reconstruction built in 1982 by Frei Otto and Jos Tomlow now hangs in the Sagrada Família museum. Even though only the lower crypt of Colònia Güell was ever built, its famously leaning basalt columns sit at the exact angles dictated by those weighted strings.

Ruled-Surface Geometry: Curved Space Built from Straight Lines

Finding the right skeleton of forces was only half the challenge. Gaudí also needed a way to turn complex, organic envelopes into instructions that everyday bricklayers and stonemasons could execute reliably on site—decades before computers or CNC milling existed.

His answer was ruled surfaces: three-dimensional curved surfaces generated by moving a straight line (the generatrix) continuously along one or more guide curves (the directrices). Even more powerful are doubly ruled surfaces, where two distinct families of straight lines pass through every single point on the curved surface.

Ruled surfaces gave Gaudí three decisive advantages:

  • Effortless construction: Masons did not need intricate curved wooden formwork. By stretching taut strings between two guide rails or sliding a straight wooden batten across two edges, they could trace a smooth, double-curved stone or plaster vault directly in midair.

  • Structural stiffness: Saddle-shaped ruled surfaces have negative Gaussian curvature$$K = \kappa_1 \kappa_2 < 0$$meaning the surface curves upward along one principal axis and downward along the perpendicular axis. Like a corrugated sheet or a potato chip, this opposing curvature makes thin masonry shells dramatically stiffer against buckling than flat slabs or simple domes.

  • Acoustic and light diffusion: Unlike spherical domes that focus sound into distracting echoes or create harsh bright spots, doubly curved ruled surfaces scatter both daylight and music evenly across an interior space.

The Four Core Surfaces in Gaudí's Toolkit


I should find out more about the objects mentioned above (hyperbolic paraboloid, hyperboloid, helicoid and sinusoidal conoid).

Thursday, 19 November 2026

Multiplicative Digital Root as a Multiplicative Function

Let M be an operator that, when applied to an integer, returns its multiplicative digital root. Thus for 21345 we would have:$$M(12345) = 0$$I was interested in finding out what composite numbers have the property that their multiplicative digits roots are equal to the product of the multiplicative digital roots of their prime factors. In other words, for a number \(n= p_1  \times p_2 \times \dots \times p_n\) we have:$$ \begin{align} \text{M} (n) &= \text{M}(p_1 \times p_2 \times \dots \times p_n) \\ &= \text{M}(p_1) \times \text{M}(p_2) \times \dots \times \text{M}(p_n) \end{align}$$Any number containing a zero has a multiplicative digital root of 0 so I've excluded numbers of that type. 

I got Gemini to create a program in SageMath that determines all suitable numbers in the range between 2 and 40000. Here are the numbers that satisfy (permalink).

4, 6, 8, 9, 88, 292, 346, 481, 634, 726, 869, 968, 1147, 1346, 1397, 1468, 1969, 1991, 2249, 2321, 2743, 2787, 2893, 2993, 3817, 3946, 4181, 4246, 4247, 4341, 4741, 4873, 6626, 6662, 7179, 7381, 8173, 8222, 9691, 9922, 11164, 11283, 11377, 11769, 12286, 12617, 12779, 13948, 14223, 14242, 14422, 14666, 16148, 16181, 16861, 17116, 17947, 18146, 18622, 19983, 21281, 23243, 23962, 24692, 24916, 26323, 26441, 26626, 26662, 27443, 28193, 28327, 28787, 29111, 29293, 29623, 31261, 31894, 32329, 32663, 32923, 34243, 34334, 34341, 36238, 36382, 36619, 37921, 38362, 39981

There are 90 numbers comprising 0.2250% of the range. Take 28327 as an example:$$ \begin{align} \text{M}(28327) &= 6 \\\text{M}(28327) &=\text{M}(13 \times 2179) \\ &=\text{M}(13) \times \text{M}(2179) \\ &= 3 \times 2 \\ &=6 \end{align}$$if we don't exclude zero, then there are 8847 numbers that satisfy (permalink)! Gemini explains why there is such a dramatic difference.
Yes, the entire difference of 8,757 numbers comes from allowing $0 = 0$ matches. Here is why allowing zero causes the count to explode from 90 to 8,84. Zeros are the default for larger numbers. As integers grow, the overwhelming majority of them—both composite and prime—collapse to a multiplicative digital root of $0$. 
This happens if the number contains a 0, contains both an even digit and a 5, or simply hits a 0 at any intermediate multiplication step (for example, $58 \to 40 \to 0$ ). Zero has an "absorbing" effect. In the product $$M(p_1) \times M(p_2) \times \dots \times M(p_k)$$It only takes one prime factor with $M(p_i) = 0$ to force the entire right-hand side to $0$. Whenever that happens for a composite number that also has $M(n) = 0$, it registers as a match. 
Non-zero matches are tightly bottlenecked: When $M(n) \neq 0$, the product of the prime factors' MDRs cannot exceed $9$ (since $M(n)$ is a single digit). Because $11$ is the only prime under 40,000 with $M(p) = 1$, almost every prime factor contributes at least a factor of $2$ to the product, which quickly overshoots $9$ and makes non-zero solutions very rare.