Zach won the part 2 rules competition.

I don’t know, whether that saves rules, but I do notice, that this solution does the horizontal bit first, and then the vertical.
Code
.
Zach won the part 2 rules competition.

I don’t know, whether that saves rules, but I do notice, that this solution does the horizontal bit first, and then the vertical.
Code
.
For et par dage siden anbefalede Zach Wissner-Gross fra Fiddler on the Proof langnovellen “Understudies” af #GregEgan, og nu har jeg fået den læst. Wow! For fans af fiddler-opgaver og den slags, så er det her en gave. Og lad mig med det samme indrømme, jeg løste altså ikke alle opgaverne i teksten, mens jeg læste. De er svære!

Fiddler on the Proof
“Understudies” ![]()
Specielt en af opgaverne fangede mig, fordi jeg ikke helt kunne forstå løsningen. Så i det her indlæg vil jeg prøve at læse opgave og løsning, indtil jeg forstår det.
“A few years before the fall of the Berlin Wall,” she said, “an English journalist was imprisoned in East Germany. She was able to exchange letters with her husband, but they knew their mail was being read by authorities. Among the first things her husband sent her was a computer printout of a poem, written by their twelve-year-old daughter, which the journalist kept pinned to the wall of her prison cell. It read:
“Evening light fades / Quiet descends / The joking boy relaxed / Sweetly amazed / Night promises peaceful dreams / Until morning.
“Historians studying the correspondence between the couple found that the words of this poem showed up in their letters far more often than would have been expected, and so might have played a part in a code they used.
“Once, in response to a letter where her husband used ‘joking,’ ‘descends,’ ‘quiet,’ ‘fades,’ and ‘light,’ in that order, the journalist responded by using ‘evening,’ ‘amazed,’ ‘boy’ three times, ‘amazed,’ ‘evening,’ ‘joking’ twice, ‘relaxed,’ ‘sweetly,’ ‘amazed,’ ‘sweetly,’ then ‘relaxed.’
“What was she communicating?”
Og den korrekte løsning:
“The husband wasn’t saying anything in his letter,” she explained. “He was providing a key that the journalist could use to help encode her own message. She took his numbers—five, four, three, two, one, by their position in the poem, with ‘evening’ as zero and ‘the’ omitted—then used the dot matrix printout of the poem, with each letter of the alphabet forming a grid five dots wide, to transform them into a number for each row, adding up those with a matching dot, leaving out the rest. The lowercase letters ‘o’ and ‘k’ provided her response. She was saying ‘okay.’ ”
Lad os tage den igen, langsomt.
Digtet kan også skrives således:
| 0 | Evening | 4 | descends | 8 | Sweetly | 12 | peaceful |
| 1 | light | 5 | joking | 9 | amazed | 13 | dreams |
| 2 | fades | 6 | boy | 10 | Night | 14 | Until |
| 3 | Quiet | 7 | relaxed | 11 | promises | 15 | morning |
Det første brev:
“a letter where her husband used ‘joking,’ ‘descends,’ ‘quiet,’ ‘fades,’ and ‘light,’ in that order, …’ ”
Det bliver altså til 5, 4, 3, 2 og 1.
Og det andet brev:
“… the journalist responded by using ‘evening,’ ‘amazed,’ ‘boy’ three times, ‘amazed,’ ‘evening,’ ‘joking’ twice, ‘relaxed,’ ‘sweetly,’ ‘amazed,’ ‘sweetly,’ then ‘relaxed.’ ”
Dette svarer til 0, 9, 6, 6, 6, 9, 0, 5, 5, 7, 8, 9, 8, 7.
Jeg kan se, at der er noget struktur her, der passer med o og k. I første omgang med et tilfældigt bud på en font.
x
xx x
x x x x
x x x x
x x xx
xx x x
x x
Eller:
0 5 x
9 xx 5 x
6 x x 7 x x
6 x x 8 x x
6 x x 9 xx
9 xx 8 x x
0 7 x x
Ja, noget her fungerer. Samme linje af pixler i det samme bogstav giver det samme tal.
Men jeg har ikke brugt 5, 4, 3, 2, 1 til det her? Hov, jeg prøver lige igen, med en bedre font.
0 5 x
9 xxx 5 x
6 x x 7 x x
6 x x 8 x x
6 x x 9 xx
9 xxx 8 x x
0 7 x x
Ja, nu virker det.
“_xxx_” bliver parret sammen med “54321”. Det giver “04320”. Og tværsummen af det er 9. Og således bliver toppen af o’et til 9. “x___x” bliver til “50001”, bliver til 6. Osv.
Jeg tror, jeg forstår den!
Zach won the rules competitions for part 2 and 3. For part 2 there are 4 heads. In phase 1 the red head looks at the nails, and the yellow head looks for the top and bottom nails. When a nail head is detected and we go into phase 2, the green and yellow heads come running and fix the wrong nails.


A little extra work for part 3. When a nail head has been detected, there’s a marker written ($) for that nail, to keep track of it.


Code
.
No. 2 in part 1, rules section, is actually kind of familiar to me in structure.

Do the very elegant solution of hammering the log instead of the nails, and do it from both ends of the log. There’s an extra little dance with the heads, when a nail is all head, no shaft.
Code
.

Her er årets nominerede romaner, med samt link til mine anmeldelser:
| Death of the Author by Nnedi Okorafor | ##- | Forfatterens død |
| A Drop of Corruption by Robert Jackson Bennett | ### | Korruptionsdråben |
| The Everlasting by Alix E. Harrow | ##- | Den evige |
| The Incandescent by Emily Tesh | ### | Den strålende |
| The Raven Scholar by Antonia Hodgson | ##- | Ravnelærd |
| Shroud by Adrian Tchaikovsky | #– | Slør |
Det bliver dråben, der løber med sejren her. Det var bare så rart at tage en tur til i det her univers.
This week the #puzzle is: Can You Tile the Hexagon? #counting #hexagon #tiling #macmahon #coding #memoization
| I’m redoing my kitchen floor using rhombus-shaped tiles composed of two congruent equilateral triangles. One such tile is shown in blue below. How many distinct ways can I use these to tile the outlined region below, which consists of 24 equilateral triangles arranged in a regular hexagon? |
![]() |
And for extra credit:
| I’m also redoing my patio, using similar rhombus-shaped stones. How many distinct ways can I tile the outlined region below, which consists of 54 equilateral triangles? |
![]() |

Method 1: I quickly whip up a program. And I add memoization to it. And it arrives at a state, where it can find the answer in 3 minutes.
Result: 20.
I also produce a video, documenting all the possible tilings. (Beware: this post has a lot of videos and images.)
And just to go nuts, I produce screenshots from that video. Yes, I know, you don’t have to thank me.




















I go through my notes and end up producing small families of solutions, where each family is connected by rotations. Like this one, with 6 rotations of the same solution.






Or this one:






A smaller family.



And an even smaller.


Like this one:


And finally a singleton.

Mirrors just end of producing the same results as rotations.
I will get back to the fiddler again later.
Method 1: Run the program again. Ehm. That will take too long. Sigh.
Method 2: Search internet. Hey, what’s this?
“the total number of plane partitions that fit in the box :”

I think the box is if the hexagon tiling is viewed in a 3d way. The “box” has the same side lengths as the hexagon. The plane partitions correspond to the tilings. Yeah, this one confirms it:


And just to make sure, the fiddler has a 2x2x2 box.
Or, from the other formulation of the count:
Awesome! And the video already did the calculation we want. .
More extra credit later.
Studying the sources mentioned above, I find a different method to produce the same solutions, with slightly squinked rhombi:




















This set is numbered like xy: x cubes, the yth way.
The 2 sets of solutions correspond. To make me (and probably nobody else) happy, here’s the full correspondence description.
| 01 | 1 | 11 | 2 | 21 | 7 | 22 | 4 |
| 23 | 3 | 31 | 9 | 32 | 8 | 33 | 5 |
| 41 | 15 | 42 | 10 | 43 | 12 | 44 | 6 |
| 51 | 16 | 52 | 13 | 53 | 11 | 61 | 18 |
| 62 | 17 | 63 | 14 | 71 | 19 | 81 | 20 |
And just to show that these are the same solutions, here’s a comparison of 2 versions of the same, 9 and 31:


Or maybe it’s easier to compare these 2 prettier versions of the same solution:


I then proceed to create a new program, to make really pretty versions of these tilings. Here’s you go, fiddler:
And extra credit:
The top “few rules” solution in part 1:

Like other solutions doing well in this category, there’s an element of “write a lot, possibly delete it later”. Elegant. (Zach’s solution to this one is almost identical.) If the (yellow) reading head sees a =, write a wave below and in front. If it sees a #, delete behind, as too much was written.
Code
.
In quest 2, Zach won all 3 rules competitions. Let’s first look at part 1. In this gif, I’ve actually added a rule and changed 2 others to keep everything nice and horizontal. Originally the @’s went up and down.

Features:
Part 2 is similar. There’s an extra rule to go back to the beginning of a line.

For part 3, again there are new features. Going down and up a column are very different. There are different mechanisms for the horizontal and vertical pairs.

Truth be told, I haven’t quite wrapped my head around part 2 and 3 here. But I see the general features.
Code
.
No. 1 in quest 1, part 3, rules, is Zach. Let’s take a look.


Several interesting features:
Code
.
Anmeldelse af Shroud, af #AdrianTchaikovsky. Roman. 2025. Hugo-finalist.

Nebula nominees
. Hugo finalists
.
Skitse: Et stort firma bedriver udforskning af rummet ved at sende frossent personale ud til lovende exoplaneter. Efter behov bliver de tøet op. Således bliver det her lille hold vækket, fordi en måne i det her solsystem sender usædvanligt mange radiosignaler. Undersøg det, måske er der liv her.
Er det science fiction? Jeps.
Temaer: Alting handler om penge. Hver eneste handling bliver målt på, om den nu også er pengene (til mad, husly, udstyr osv.) værd, og hvis ikke, så har vi en fryser klar til dig. Argh. Argumentet er, at firmaer i sin tid reddede Jorden fra klimakatastroferne, og at de derfor må være gode til at lede og fordele.
Månen er ikke meget for at fortælle, hvad der foregår. Det tager mange forsøg at få ganske få sekunders video tilbage til holdet. Det er svært, når ens udstyr er baseret på radio, og der allerede er så mange radiobølger i luften. Desuden er der stor tyngdekraft og stort tryk ved overfladen. Der muligvis er flydende. Bøvl. Ved et uheld havner hovedpersonen nede på månen, og ja, der er lokalt liv, og ja, det giver yderligere problemer. Her har vi i øvrigt små bidder, der viser mødet med de fremmede fra de fremmedes synspunkt. De fremmede er mærkelige.
Missionen til det her solsystem er del af en større plan. Gode planeter og måner skal laves om til tankstationer, så senere missioner kan komme endnu længere væk. Så det er lidt i vejen, hvis en stor bunke ressourcer ikke kan bruges, fordi her er lokalt liv.
“Devilment in an engineer is a terrible thing.”
“My thoughts measure its exterior…”
“I reach within myself and tap the encrypted energy, the inflammatory well of stored fats, and I am quick. My segments blaze, and the swift thrash of the tubeworm slows for me until it is leisurely while I am like the wind.”
Er det godt? Hm. Mødet med de fremmede og deres omgivelser er klassisk udforskning og ikke ret meget andet. Og det er ikke lige min stil. #–