# Square on a Three String

222 A.D. was the year in which the Emperor Heliogabalus was assassinated by his own soldiers. Exactly 1666 years later, the Anglo-Dutch classicist Sir Lawrence Alma-Tadema exhibited his painting The Roses of Heliogabalus (1888). I suggested in “Roses Are Golden” that Alma-Tadema must have chosen the year as deliberately as he chose the dimensions of his canvas, which, at 52″ x 84 1/8“, is an excellent approximation to the golden ratio.

But did Alma-Tadema know that lines at 0º and 222º divide a circle in the golden ratio? He could easily have done, just as he could easily have known that 222 precedes the 48th prime, 223. But it is highly unlikely that he knew that 223 yields a magic square whose columns, rows and diagonals all sum to 222. To create the square, simply list the 222 multiples of the reciprocal 1/223 in base 3, or ternary. The digits of the reciprocal repeat after exactly 222 digits and its multiples begin and end like this:

001/223 = 0.00001002102101021212111012022211122022... in base 3
002/223 = 0.00002011211202120201222101122200021121...
003/223 = 0.00010021021010212121110120222111220221...
004/223 = 0.00011100200112011110221210022100120020...
005/223 = 0.00012110002220110100102222122012012120...

[...]

218/223 = 0.22210112220002112122120000100210210102... in base 3
219/223 = 0.22211122022110211112001012200122102202...
220/223 = 0.22212201201212010101112102000111002001...
221/223 = 0.22220211011020102021000121100022201101...
222/223 = 0.22221220120121201010111210200011100200...

Each column, row and diagonal of ternary digits sums to 222. Here is the full n/223 square represented with 0s in grey, 1s in white and 2s in red:

(Click for larger)

It isn’t difficult to see that the white squares are mirror-symmetrical on a horizontal axis. Here is the symmetrical pattern rotated by 90º:

(Click for larger)

But why should the 1s be symmetrical? This isn’t something special to 1/223, because it happens with prime reciprocals like 1/7 too:

1/7 = 0.010212... in base 3
2/7 = 0.021201...
3/7 = 0.102120...
4/7 = 0.120102...
5/7 = 0.201021...
6/7 = 0.212010...

And you can notice something else: 0s mirror 2s and 2s mirror 0s. A related pattern appears in base 10:

1/7 = 0.142857...
2/7 = 0.285714...
3/7 = 0.428571...
4/7 = 0.571428...
5/7 = 0.714285...
6/7 = 0.857142...

The digit 1 in the decimal digits of n/7 corresponds to the digit 8 in the decimal digits of (7-n)/7; 4 corresponds to 5; 2 corresponds to 7; 8 corresponds to 1; 5 corresponds to 4; and 7 corresponds to 2. In short, if you’re given the digits d1 of n/7, you know the digits d2 of (n-7)/7 by the rule d2 = 9-d1.

Why does that happen? Examine these sums:

1/7 = 0.142857142857142857142857142857142857142857...
+6/7 = 0.857142857142857142857142857142857142857142...
7/7 = 0.999999999999999999999999999999999999999999... = 1.0

2/7 = 0.285714285714285714285714285714285714285714...
+5/7 = 0.714285714285714285714285714285714285714285...
7/7 = 0.999999999999999999999999999999999999999999... = 1.0

3/7 = 0.428571428571428571428571428571428571428571...
+4/7 = 0.571428571428571428571428571428571428571428...
7/7 = 0.999999999999999999999999999999999999999999... = 1.0

And here are the same sums in ternary (where the first seven integers are 1, 2, 10, 11, 12, 20, 21):

1/21 = 0.010212010212010212010212010212010212010212...
+20/21 = 0.212010212010212010212010212010212010212010...
21/21 = 0.222222222222222222222222222222222222222222... = 1.0

2/21 = 0.021201021201021201021201021201021201021201...
+12/21 = 0.201021201021201021201021201021201021201021...
21/21 = 0.222222222222222222222222222222222222222222... = 1.0

10/21 = 0.102120102120102120102120102120102120102120...
+11/21 = 0.120102120102120102120102120102120102120102...
21/21 = 0.222222222222222222222222222222222222222222... = 1.0

Accordingly, in base b with the prime p, the digits d1 of n/p correspond to the digits (p-n)/p by the rule d2 = (b-1)-d1. This explains why the 1s mirror themselves in ternary: 1 = 2-1 = (3-1)-1. In base 5, the 2s mirror themselves by the rule 2 = 4-2 = (5-1) – 2. In all odd bases, some digit will mirror itself; in all even bases, no digit will. The mirror-digit will be equal to (b-1)/2, which is always an integer when b is odd, but never an integer when b is even.

Here are some more examples of the symmetrical patterns found in odd bases:

Patterns of 1s in 1/19 in base 3

Patterns of 6s in 1/19 in base 13

Patterns of 7s in 1/19 in base 15

Elsewhere other-posted:

Roses Are Golden — more on The Roses of Heliogabalus (1888)
Three Is The Key — more on the 1/223 square

# Breeding Bunnies

The Golden Ratio: The Story of Phi, the Extraordinary Number of Nature, Art and Beauty, Mario Livio (Headline Review 2003)

A good short popular guide to perhaps the most interesting, and certainly the most irrational, of all numbers: the golden ratio or phi (φ), which is approximately equal to 1·6180339887498948482… Prominent in mathematics since at least the ancient Greeks and Euclid, phi is found in many places in nature too, from pineapples and sunflowers to the flight of hawks. Livio catalogues its appearances in both maths and nature, looking closely at the Fibonacci sequence and rabbit-breeding, before going on to debunk mistaken claims that phi also appears a lot in art, music and poetry. Dalí certainly used it, but da Vinci, Debussy and Virgil almost certainly didn’t. Nor, almost certainly, did the builders of the Parthenon and pyramids. Finally, he examines what has famously been called (by the physicist Eugene Wiegner) the unreasonable effectiveness of mathematics: why is this human invention so good at describing the behaviour of the Universe? Livio quotes one of the best short answers I’ve seen:

Human logic was forced on us by the physical world and is therefore consistent with it. Mathematics derives from logic. That is why mathematics is consistent with the physical world. (ch. 9, “Is God a mathematician?”, pg. 252)

It’s not hard to recommend a book that quotes everyone from Johannes Kepler and William Blake to Lewis Carroll, Christopher Marlowe and Jef Raskin, “the creator of the Macintosh computer”, whose answer is given above. Recreational mathematicians should also find lots of ideas for further investigation, from fractal strings to the fascinating number patterns governed by Benford’s law. It isn’t just human beings who look after number one: as a leading figure, 1 turns up much more often in data from the real world, and in mathematical constructs like the Fibonacci sequence, than intuition would lead you to expect. If you’d like to learn more about that and about many other aspects of mathematics, hunt down a copy of this book.

Elsewhere other-posted:

Roses Are Golden – φ and floral homicide

# Roses Are Golden

Sir Lawrence Alma-Tadema’s painting The Roses of Heliogabalus (1888) is based on an apocryphal episode in the sybaritic life of the Roman Emperor Elagabalus (204-222 A.D.), who is said to have suffocated guests with flowers at one of his feasts. The painting is in a private collection, but I saw it for real in an Alma-Tadema exhibition at the Walker Art Gallery in Liverpool sometime during the late 1990s. I wasn’t disappointed: it was a memorable meeting with a painting I’d been interested in for years. Roses is impressively large and impressively skilful. Close-up, the brush-strokes are obvious, obtrusive and hard to interpret as people and objects. It isn’t till you step back, far beyond the distance at which Alma-Tadema was painting, that the almost photographic realism becomes apparent. But you get more of the many details at close range, like the Latin inscription on a bowl below and slightly to the right of that scowling water-mask. Alas, I forgot to take a note of what the inscription was, though perhaps the memory is still locked away somewhere in my subconscious.

The Roses of Heliogabalus (1888)

Whatever it is, I feel sure it is significant, because Roses is rich with meaning. That’s a large part of why I’m interested in it. Yes, I like it a lot as art, but the women would have to be more attractive for it to be higher in the list of my favourite paintings. As it is, I think there are only four reasonably good-looking people in it: the man with the beard on the right; the flautist striding past the marble pillar on the left; the red-headed girl with a crown of white flowers; and Heliogabalus himself, crowned in roses and clutching a handful of grapes beside the overweight man who’s wearing a wreath and sardonically saluting one of the rose-pelted guests in the foreground. When I first wrote about Roses in a pub-zine whose name escapes me, I misidentified the overweight man as Heliogabalus himself, even though I noted that he seemed many years old than Heliogabalus, toppled as a teen tyrant, should have been. It was a bad mistake, but one that, with less knowledge and more excuse, many people must make when they look at Roses, because the overweight man and his sardonic salute are a natural focus for the eye. Once your eye has settled on and noted him, you naturally follow the direction of his gaze down to the man in the foreground, who’s gazing right back.

Something Like the Sun

And by following that gaze, you’ve performed a little ratio-ritual, just as Alma-Tadema intended you to do. Yes, Roses is full of meaning and much of that meaning is mathematical. I think the angle of the gaze is one of many references in Roses to the golden ratio, or φ (phi), a number that is supposed to have special aesthetic importance and has certainly been used by many artists and musicians to guide their work. A rectangle with sides in the proportions 8:13, for example, approximates the golden ratio pretty closely, but φ itself is impossible to represent physically, because it’s an irrational number with infinitely many decimal digits, like π or √2, the square root of two. π represents the ratio of a circle’s circumference to its diameter and √2 the ratio of a square’s diagonal to its side, but no earthly circle and no earthly square can ever capture these numbers with infinite precision. Similarly, no earthly rectangle can capture φ, but the rectangle of Roses is a good attempt, because it measures 52″ x 84 1/8". That extra eighth of an inch was my first clue to the painting’s mathematical meaningfulness. And sure enough, 52/84·125 = 416/673 = 0·61812…, which is a good approximation to φ’s never-ending 0·6180339887498948482045868343656…*

That deliberate choice of dimensions for the canvas led me to look for more instances of φ in the painting, though one of the most important and obvious might be called a meta-presence. The Roses of Heliogabalus is dated 1888, or 1666 years after the death of Heliogabalus in 222 AD. A radius at 222º divides a circle in the golden ratio, because 222/360 = 0·616… It’s very hard to believe Alma-Tadema didn’t intend this reference and I also think there’s something significant in 1888 itself, which equals 2 x 2 x 2 x 2 x 2 x 59 = 25 x 59. Recall that 416 is the expanded short side of Roses. This equals 25 x 13, while 673, the expanded long side, is the first prime number after 666. As one of the most technically skilled painters who ever lived, Alma-Tadema was certainly an exceptional implicit mathematician. But he clearly had explicit mathematical knowledge too and this painting is a phi-pie cooked by a master matho-chef. In short, when Roses is read, Roses turns out to be golden.

*φ is more usually represented as 1·6180339887498948482045868343656…, but it has the pecularity that 1/φ = φ-1, so the decimal digits don’t change and 0·6180339887498948482045868343656… is also legitimate.

Appendix I

I’ve looked at more of Alma-Tadema’s paintings to see if their dimensions approximate φ, √2, √3 or π, or their reciprocals. These were the results (ε = error, i.e. the difference between the constant and the ratio of the dimensions).

The Roman Wine Tasters (1861), 50" x 69 2/3": 150/209 = 0·717… ≈ 1/√2 (ε=0·02)
A Roman Scribe (1865), 21 1/2" x 15 1/2": 43/31 = 1·387… ≈ √2 (ε=0·027)
A Picture Gallery (1866), 16 1/8" x 23": 129/184 = 0·701… ≈ 1/√2 (ε=0·012)
A Roman Dance (1866), 16 1/8" x 22 1/8": 43/59 = 0·728… ≈ 1/√2 (ε=0·042)
In the Peristyle (1866), 23" x 16": 23/16 = 1·437… ≈ √2 (ε=0·023)
Proclaiming Emperor Claudius (1867), 18 1/2" x 26 1/3": 111/158 = 0·702… ≈ 1/√2 (ε=0·009)
Phidias and the Frieze of the Parthenon Athens (1868), 29 2/3" x 42 1/3": 89/127 = 0·7… ≈ 1/√2 (ε=0·012)
The Education of Children of Clovis (1868), 50" x 69 2/3": 150/209 = 0·717… ≈ 1/√2 (ε=0·02)
An Egyptian Juggler (1870), 31" x 19 1/4": 124/77 = 1·61… ≈ φ (ε=0·007)
A Roman Art Lover (1870), 29" x 40": 29/40 = 0·725… ≈ 1/√2 (ε=0·034)
Good Friends (1873), 4 1/2" x 7 1/4": 18/29 = 0·62… ≈ φ (ε=0·006)
Pleading (1876), 8 1/2" x 12 3/8": 68/99 = 0·686… ≈ 1/√2 (ε=0·041)
An Oleander (1882), 36 1/2" x 25 1/2": 73/51 = 1·431… ≈ √2 (ε=0·017)
Dolce Far Niente (1882), 9 1/4" x 6 1/2": 37/26 = 1·423… ≈ √2 (ε=0·008)
Anthony and Cleopatra (1884), 25 3/4" x 36 1/3": 309/436 = 0·708… ≈ 1/√2 (ε=0·003)
Rose of All Roses (1885), 15 1/4" x 9 1/4": 61/37 = 1·648… ≈ φ (ε=0·03)
The Roses of Heliogabalus (1888), 52" x 84 1/8": 416/673 = 0·618… ≈ φ (ε<0.001)
The Kiss (1891), 18" x 24 3/4": 8/11 = 0·727… ≈ 1/√2 (ε=0·039)
Unconscious Rivals (1893), 17 3/4" x 24 3/4": 71/99 = 0·717… ≈ 1/√2 (ε=0·019)
A Coign of Vantage (1895), 25 1/4" x 17 1/2": 101/70 = 1·442… ≈ √2 (ε=0·028)
A Difference of Opinion (1896), 15" x 9": 5/3 = 1·666… ≈ φ (ε=0·048)
Whispering Noon (1896), 22" x 15 1/2": 44/31 = 1·419… ≈ √2 (ε=0·005)
Her Eyes Are With Her Thoughts And Her Thoughts Are Far Away (1897), 9" x 15": 3/5 = 0·6… ≈ φ (ε=0·048)
The Baths of Caracalla (1899), 60" x 37 1/2": 8/5 = 1·6… ≈ φ (ε=0·018)
The Year’s at the Spring, All’s Right with the World (1902), 13 1/2" x 9 1/2": 27/19 = 1·421… ≈ √2 (ε=0·006)
Ask Me No More (1906), 31 1/2" x 45 1/2": 9/13 = 0·692… ≈ 1/√2 (ε=0·03)

Appendix II

The Roses of Heliogabalus is based on this section from Aelius Lampridius’ pseudonymous and largely apocryphal Vita Heliogabali, or Life of Heliogabalus, in the Historia Augusta (late fourth century):

XXI. 1 Canes iecineribus anserum pavit. Habuit leones et leopardos exarmatos in deliciis, quos edoctos per mansuetarios subito ad secundam et tertiam mensam iubebat accumbere ignorantibus cunctis, quod exarmati essent, ad pavorem ridiculum excitandum. 2 Misit et uvas Apamenas in praesepia equis suis et psittacis atque fasianis leones pavit et alia animalia. 3 Exhibuit et sumina apruna per dies decem tricena cottidie cum suis vulvis, pisum cum aureis, lentem cum cerauniis, fabam cum electris, orizam cum albis exhibens. 4 Albas praeterea in vicem piperis piscibus et tuberibus conspersit. 5 Oppressit in tricliniis versatilibus parasitos suos violis et floribus, sic ut animam aliqui efflaverint, cum erepere ad summum non possent. 6 Condito piscinas et solia temperavit et rosato atque absentato…

Historia Augusta: Vita Heliogabali

XXI. 1 He fed his dogs on goose-livers. He had pet lions and leopards, which had been rendered harmless and trained by tamers, and these he would suddenly order during the dessert and the after-dessert to get on the couches, thereby causing laughter and panic, for none knew that they were harmless. 2 He sent grapes from Apamea to his stables for the horses, and he fed parrots and pheasants to his lions and other beasts. 3 For ten days in a row, moreover, he served wild sows’ udders with the matrices, at a rate of thirty a day, serving, besides, peas with gold-pieces, lentils with onyx, beans with amber, and rice with pearls; 4 and he also sprinkled pearls on fish and used truffles instead of pepper. 5 In a banqueting-room with a reversible ceiling he once buried his parasites in violets and other flowers, so that some were actually smothered to death, being unable to crawl out to the top. 6 He flavoured his swimming-pools and bath-tubs with essence of spices or of roses or wormwood…

Augustan History: Life of Heliogabalus