← Abakcus

A collection

Mathematical Curiosities

Short, surprising truths from the world of numbers — each one tagged, so you can wander by whatever you love most.

Ongoing53 facts
01

An Exact Formula for the n-th Prime

Prime NumbersNumber TheoryFormulas

In 1964 C. P. Willans wrote down a single closed-form expression that returns the n-th prime number exactly. It leans on Wilson's theorem to spot primes and stacks floor functions and a cosine to count them. The formula is perfectly exact — and gloriously useless to compute — but it settles a quiet question: yes, such a formula exists.

Pn=1+∑i=12n⌊(n∑j=1i⌊(cos⁡π(j−1)!+1j)2⌋)1/n⌋P_n = 1 + \sum_{i=1}^{2^n} \left\lfloor \left( \frac{n}{\displaystyle\sum_{j=1}^{i} \left\lfloor \left( \cos \pi \frac{(j-1)! + 1}{j} \right)^2 \right\rfloor} \right)^{1/n} \right\rfloor
For any n, Pₙ is the n-th prime.
Willans' formula
02

The Feynman Point

PiCuriositiesNumber Theory

Deep in the decimal expansion of π, at the 762nd place, six nines appear in a row: 999999. The run is named after Richard Feynman, who joked that he would love to memorize π all the way to that spot — so he could rattle off the digits and finish with "…nine, nine, nine, nine, nine, nine, and so on," cheekily hinting that π might just be rational after all.

3.14159265358979323846264338327950288419716939937510582097494459230781640628620899862803482534211706798214808651328230664709384460955058223172535940812848111745028410270193852110555964462294895493038196442881097566593344612847564823378678316527120190914564856692346034861045432664821339360726024914127372458700660631558817488152092096282925409171536436789259036001133053054882046652138414695194151160943305727036575959195309218611738193261179310511854807446237996274956735188575272489122793818301194912983367336244065664308602139494639522473719070217986094370277053921717629317675238467481846766940513200056812714526356082778577134275778960917363717872146844090122495343014654958537105079227968925892354201995611212902196086403441815981362977477130996051870721134999999837297804…
Six 9s in a row, starting at the 762nd decimal place of π.
The full story
03

The First 38 Digits of π Are Prime

PiPrime NumbersCuriosities

Write down the first 38 digits of π — starting with the 3 and continuing through the decimals — and you get a 38-digit integer. Remarkably, that integer is prime. It looks like the opening of π, yet it stands on its own as a prime number, divisible by nothing but 1 and itself.

3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117067982148086513282306647093844609550582231725359408128481117450284102701938521105559644622948954930381964428810975665933446128475648233786783165271201909145648566923460348610454326648213393607260249141273…
The yellow opening — 38 digits — forms a prime number.
04

144 Is the Largest Square in the Fibonacci Sequence

FibonacciNumber TheorySquares

Walk along the Fibonacci numbers as far as you like and you will never again land on a perfect square once you pass 144. Beyond the trivial 1, it is the only large Fibonacci number that is also a square — a fact proven by John H. E. Cohn in 1964. Fittingly, 144 sits at position twelve and equals twelve squared.

144=122=F12144 = 12^2 = F_{12}
The last square humans will ever find in the sequence.
Square Fibonacci numbers
05

e Hiding Inside Pascal's Triangle

Pascal's TriangleNumber TheoryLimits

Add up the numbers in the n-th row of Pascal's triangle and you get 2ⁿ — a familiar sight. But take the product of those same numbers, call it tₙ, and something stranger appears. Harlan Brothers found that a simple ratio of consecutive row products converges to e, the base of the natural logarithm, quietly tucked inside a triangle of binomial coefficients.

tn=∏k=0n(nk)t_n = \prod_{k=0}^{n} \binom{n}{k}
The product of every number in row n.
lim⁡n→∞tn tn+2tn+1 2=e\lim_{n \to \infty} \frac{t_n\, t_{n+2}}{t_{n+1}^{\,2}} = e
Euler's number, hiding in plain sight.
06

Every Square Root as a Continued Fraction

Continued FractionsSquare RootsIdentities

A square root can describe itself. The identity below contains √x on both sides, so substituting it back into its own denominator over and over unfolds into a generalized continued fraction. The recursion converges to √x for any x — a tidy, self-referential way to compute roots by hand.

x=1+x−11+x\sqrt{x} = 1 + \frac{x - 1}{1 + \sqrt{x}}
The identity it all starts from.
x=1+x−12+x−12+x−12+⋯\sqrt{x} = 1 + \cfrac{x-1}{2 + \cfrac{x-1}{2 + \cfrac{x-1}{2 + \cdots}}}
Unfolded by recursion, for any square root.
Generalized continued fraction
07

One, Three, Five …

WordplayCuriositiesLanguage

Here is a quirk that lives in language rather than arithmetic: in English, the name of every single odd number contains the letter e. One, three, five, seven, nine — keep going as far as you like and the e never disappears. Even numbers make no such promise; two, four, and six get by just fine without it.

onethreefivesevennineeleventhirteenfifteenseventeennineteentwenty-one…
08

Dudeney Numbers

Number TheoryCubesCuriosities

Only six positive integers share this curious property: each is a perfect cube whose digits, added up, bring you right back to the cube's root. They are 1, 8, 17, 18, 26, and 27 — and no seventh such number exists. They're named after Henry Dudeney, the celebrated English puzzle-maker who discovered them.

1=113=18=5+1+283=51217=4+9+1+3173=491318=5+8+3+2183=583226=1+7+5+7+6263=1757627=1+9+6+8+3273=19683\begin{aligned} 1 &= 1 & \hspace{3em} 1^3 &= 1 \\ 8 &= 5+1+2 & \hspace{3em} 8^3 &= 512 \\ 17 &= 4+9+1+3 & \hspace{3em} 17^3 &= 4913 \\ 18 &= 5+8+3+2 & \hspace{3em} 18^3 &= 5832 \\ 26 &= 1+7+5+7+6 & \hspace{3em} 26^3 &= 17576 \\ 27 &= 1+9+6+8+3 & \hspace{3em} 27^3 &= 19683 \end{aligned}
Each number equals the digit sum of its own cube.
09

A Pyramid of Palindromes

Number TheoryPalindromesCuriosities

Take a number made only of ones — a repunit — and square it. Out tumbles a perfect palindrome that climbs up to the count of ones and then walks right back down. The staircase holds beautifully up to nine ones; beyond that the digits begin to carry and the mirror finally cracks.

12=1112=1211112=1232111112=1234321111112=1234543211111112=1234565432111111112=1234567654321111111112=1234567876543211111111112=12345678987654321\begin{aligned} 1^2 &= 1 \\ 11^2 &= 121 \\ 111^2 &= 12321 \\ 1111^2 &= 1234321 \\ 11111^2 &= 123454321 \\ 111111^2 &= 12345654321 \\ 1111111^2 &= 1234567654321 \\ 11111111^2 &= 123456787654321 \\ 111111111^2 &= 12345678987654321 \end{aligned}
Each repunit squares into a number that reads the same both ways.
10

A Ladder of Ones

Number TheoryPatternsCuriosities

Line up the counting numbers in order, multiply by nine, then add the next number along — and the answer comes out as a string of pure ones. Each rung of the ladder stretches a digit longer than the one above it, marching neatly from 11 all the way to 111111111.

1×9+2=1112×9+3=111123×9+4=11111234×9+5=1111112345×9+6=111111123456×9+7=11111111234567×9+8=1111111112345678×9+9=111111111\begin{aligned} 1 \times 9 + 2 &= 11 \\ 12 \times 9 + 3 &= 111 \\ 123 \times 9 + 4 &= 1111 \\ 1234 \times 9 + 5 &= 11111 \\ 12345 \times 9 + 6 &= 111111 \\ 123456 \times 9 + 7 &= 1111111 \\ 1234567 \times 9 + 8 &= 11111111 \\ 12345678 \times 9 + 9 &= 111111111 \end{aligned}
Multiply by nine, add the next digit, and out come the ones.
11

Erdős Numbers

Graph TheoryMathematiciansCuriosities

Paul Erdős was so prolific — more than 1,500 papers with over 500 collaborators — that mathematicians measure their closeness to him with an Erdős number. Erdős himself is 0. Anyone who co-authored a paper with him is a 1. Co-author with one of them and you're a 2, and so on down the chain. Most working mathematicians land somewhere between 2 and 5, and even a few scientists outside mathematics can claim a finite number.

0Paul Erdős
1Co-authors
2Their co-authors
3…and onward
12

When Swapping Base and Exponent Changes Nothing

Number TheoryExponentsCuriosities

Raise one number to another and then swap their roles, and you'll almost always get two different answers. Almost. A rare few pairs are perfectly indifferent to the switch — the whole-number classic is 2 to the 4th equalling 4 squared. Hidden among the fractions lives a subtler partner, where two lopsided fractions trade places and the equation still balances to the last decimal.

24=42=162^4 = 4^2 = 16
The familiar whole-number case.
(278)9/4=(94)27/8\left(\tfrac{27}{8}\right)^{9/4} = \left(\tfrac{9}{4}\right)^{27/8}
And a rarer one, hiding among the fractions.
13

Narcissistic Numbers

Number TheoryCubesCuriosities

Raise each digit of a number to a fixed power and add them up — and sometimes you land right back on the number you started with. These self-admiring integers are called narcissistic numbers. Among three-digit numbers there are only four: 153, 370, 371, and 407. No fifth exists. The pattern continues at four, five, and seven digits — each digit raised to the matching power, summing back to the number itself.

13+53+33=15333+73+03=37033+73+13=37143+03+73=407\begin{aligned} 1^3 + 5^3 + 3^3 &= 153 \\[4pt] 3^3 + 7^3 + 0^3 &= 370 \\[4pt] 3^3 + 7^3 + 1^3 &= 371 \\[4pt] 4^3 + 0^3 + 7^3 &= 407 \end{aligned}
Each digit cubed, summed back to the number itself.
84+24+04+84=820814+64+34+44=163494+44+74+44=9474\begin{aligned} 8^4 + 2^4 + 0^4 + 8^4 &= 8208 \\[4pt] 1^4 + 6^4 + 3^4 + 4^4 &= 1634 \\[4pt] 9^4 + 4^4 + 7^4 + 4^4 &= 9474 \end{aligned}
Each digit raised to the fourth power — summed back to the number itself.
55+45+75+45+85=5474895+25+75+25+75=92727\begin{aligned} 5^5 + 4^5 + 7^5 + 4^5 + 8^5 &= 54748 \\[4pt] 9^5 + 2^5 + 7^5 + 2^5 + 7^5 &= 92727 \end{aligned}
Each digit raised to the fifth power, summed back to the number itself.
56+46+86+86+36+46=5488345^6 + 4^6 + 8^6 + 8^6 + 3^6 + 4^6 = 548834
Each digit raised to the sixth power, summed back to 548834.
17+77+47+17+77+27+57=174172597+97+27+67+37+17+57=9926315\begin{aligned} 1^7 + 7^7 + 4^7 + 1^7 + 7^7 + 2^7 + 5^7 &= 1741725 \\[4pt] 9^7 + 9^7 + 2^7 + 6^7 + 3^7 + 1^7 + 5^7 &= 9926315 \end{aligned}
Each digit raised to the seventh power, summed back to the number itself.
28+48+68+78+88+08+58+08=246780502^8 + 4^8 + 6^8 + 7^8 + 8^8 + 0^8 + 5^8 + 0^8 = 24678050
Each digit raised to the eighth power, summed back to 24678050.
99+19+29+99+89+59+19+59+39=9129851539^9 + 1^9 + 2^9 + 9^9 + 8^9 + 5^9 + 1^9 + 5^9 + 3^9 = 912985153
Each digit raised to the ninth power, summed back to 912985153.
410+610+710+910+310+010+710+710+710+410=46793077744^{10} + 6^{10} + 7^{10} + 9^{10} + 3^{10} + 0^{10} + 7^{10} + 7^{10} + 7^{10} + 4^{10} = 4679307774
Each digit raised to the tenth power, summed back to 4679307774.
14

A 39-Digit Narcissistic Number

Number TheoryDigitsCuriosities

Narcissistic numbers are not confined to three digits. Take 115132219018763992565095597973971522401 — a 39-digit integer — raise each of its digits to the 39th power, and add; the total returns the number you started with. The identity below is long, but every digit on the left reappears on the right, elevated to the same power.

115132219018763992565095597973971522401115132219018763992565095597973971522401
115132219018763992565095597973971522401 — thirty-nine digits; each raised to the 39th power, summed back to itself.
15

A Fourth-Power Digit Cycle

Number TheoryDigitsCuriosities

Raise each digit of 2178 to the fourth power and sum — you land on 6514. Raise each digit of 6514 to the fourth power and sum — you land back on 2178. The two numbers chase each other in an endless loop, each one hiding inside the other's digits.

24+14+74+84=651464+54+14+44=2178\begin{gathered} 2^4 + 1^4 + 7^4 + 8^4 = 6514 \\[4pt] 6^4 + 5^4 + 1^4 + 4^4 = 2178 \end{gathered}
2178 → 6514 → 2178 → ⋯ — a closed cycle under the fourth-power digit sum.
16

Disarium Numbers

Number TheoryDigitsCuriosities

In a narcissistic number, every digit is raised to the same power. Disarium numbers play a subtler game: the first digit is raised to the first power, the second to the second, the third to the third — and the sum rebuilds the original number. Among three-digit integers, only four qualify.

135=1+32+53175=1+72+53518=5+12+83598=5+92+83\begin{aligned} 135 &= 1 + 3^2 + 5^3 \\[4pt] 175 &= 1 + 7^2 + 5^3 \\[4pt] 518 &= 5 + 1^2 + 8^3 \\[4pt] 598 &= 5 + 9^2 + 8^3 \end{aligned}
The nth digit raised to the nth power — summed back to the number itself.
17

A Number That Spells Itself Out

Number TheoryDigitsCuriosities

Read the digits of 2592 straight across — 2, 5, 9, 2 — and they quietly spell out the very sum that builds the number: two to the fifth, times nine squared. Numbers that can be rebuilt from their own digits this way are called Friedman numbers, and 2592 is one of the tidiest of them all.

25×92=25922^5 \times 9^2 = 2592
The digits 2, 5, 9, 2 rebuild the number itself.
18

Euler's Prime-Generating Polynomial

Prime NumbersNumber TheoryFormulas

In 1772 Leonhard Euler noticed that a plain little quadratic spits out prime after prime. Feed it every integer from 0 up to 40 and each result is prime — forty-one primes marching in a row. But no simple formula can churn out primes forever: at n = 41 the expression collapses to 41 squared, and the streak finally breaks.

n2−n+41n^2 - n + 41
Prime for every n from 0 to 40 — then it fails at 41.
19

A Ladder of Threes — Then It Breaks

Prime NumbersNumber TheoryCuriosities

Stack the digit 3 on itself — 31, then 331, then 3331 — and something uncanny happens. The first seven numbers in the ladder are all prime. Keep going and the streak looks unstoppable. Then, on the eighth step, 333333331 quietly factors as 17 times 19,607,843, and the run is over.

3131
331331
33313331
3333133331
333331333331
33333313333331
3333333133333331
333333331333333331
1111111}\left. \begin{array}{r} \phantom{1} \\ \phantom{1} \\ \phantom{1} \\ \phantom{1} \\ \phantom{1} \\ \phantom{1} \\ \phantom{1} \end{array} \right\}
These are prime.
==
17×19607843\htmlClass{mf-caption-mark}{17 \times 19607843}
20

The Number That Only Rearranges Itself

Number TheoryCyclic NumbersCuriosities

The sixteen-digit number 0588235294117647 is the repeating block of the fraction 1/17, and it hides a startling habit. Multiply it by 2, by 3, by any number up to 16, and every single product is built from those exact same sixteen digits — merely rotated to a new starting point. Numbers with this property are called cyclic numbers.

0588235294117647×1=05882352941176470588235294117647×8=47058823529411760588235294117647×3=17647058823529410588235294117647×2=11764705882352940588235294117647×7=41176470588235290588235294117647×5=29411764705882350588235294117647×9=52941176470588230588235294117647×6=35294117647058820588235294117647×4=2352941176470588\small \begin{aligned} 0588235294117647 \times 1 &= 0588235294117647 \\ 0588235294117647 \times 8 &= 4705882352941176 \\ 0588235294117647 \times 3 &= 1764705882352941 \\ 0588235294117647 \times 2 &= 1176470588235294 \\ 0588235294117647 \times 7 &= 4117647058823529 \\ 0588235294117647 \times 5 &= 2941176470588235 \\ 0588235294117647 \times 9 &= 5294117647058823 \\ 0588235294117647 \times 6 &= 3529411764705882 \\ 0588235294117647 \times 4 &= 2352941176470588 \end{aligned}
Every multiple is the very same 16 digits, just rotated.
21

When Squares Stitch a Number Together

Number TheorySquaresCuriosities

Square 588 and square 2353, then add the results — and the answer reads as if the two numbers were simply glued end to end: 5882353. It is a rare coincidence, but a striking one: two separate squares, one sum, and out comes a single number built from both originals.

5882+23532=5882353588^2 + 2353^2 = 5882353
Two squares added, and the digits line up as one number.
22

37, Built from Its Own Digits

Number TheoryDigitsCuriosities

The number 37 is stitched together from the digits 3 and 7 in more ways than one. Square them, subtract their product, and you get 37. Cube them, add, divide by their sum — and 37 appears again. Two different recipes, one number.

37=32+72−3×7=33+733+737 = 3^2 + 7^2 - 3 \times 7 = \frac{3^3 + 7^3}{3 + 7}
Two ways to rebuild 37 from the digits 3 and 7.
23

Cubes That Loop Back on Themselves

Number TheoryCubesCuriosities

Add up the digits of 4913 and you get 17 — cube that, and you land right back on 4913. The very same trick works for 19683, whose digits sum to 27. Take the digits of the number, add them, cube the total, and the original number reappears as if by sleight of hand.

(4+9+1+3)3=4913(1+9+6+8+3)3=19683\begin{aligned} (4 + 9 + 1 + 3)^3 &= 4913 \\[4pt] (1 + 9 + 6 + 8 + 3)^3 &= 19683 \end{aligned}
Cube the sum of the digits and the number returns.
24

Two Numbers in a Cube Cycle

Number TheoryCubesCuriosities

Cube each digit and add — most numbers eventually settle down. But 919 and 1459 chase each other forever: cube the digits of 919 and you get 1459; cube the digits of 1459 and you land back on 919. Neither equals its own digit-cube sum, yet together they form a closed loop of length two.

93+13+93=145913+43+53+93=919\begin{aligned} 9^3 + 1^3 + 9^3 &= 1459 \\[4pt] 1^3 + 4^3 + 5^3 + 9^3 &= 919 \end{aligned}
Cube the digits of one — the total is the other.
25

When Consecutive Squares Balance

Number TheorySquaresCuriosities

Take a run of consecutive integers, split them in two, square every member on each side, and add — sometimes both totals match. With 10 through 14, three squares on the left equal two on the right, both summing to 365. Stretch the run to 21 through 27 and the pattern holds again: four consecutive squares balance three, landing on 2030.

102+112+122=132+14210^2 + 11^2 + 12^2 = 13^2 + 14^2
Three consecutive squares on the left, two on the right.
212+222+232+242=252+262+27221^2 + 22^2 + 23^2 + 24^2 = 25^2 + 26^2 + 27^2
Four consecutive squares on the left, three on the right.
26

Consecutive Numbers That Fit Together

Number TheorySquaresCuriosities

The most famous Pythagorean triple lines up three consecutive numbers: 3, 4, and 5. Climb one dimension higher and the pattern echoes with four consecutive numbers — 3, 4, 5, and 6 — this time as cubes. Two neat little coincidences sitting right next to each other on the number line.

32+42=523^2 + 4^2 = 5^2
Three consecutive numbers, as squares.
33+43+53=633^3 + 4^3 + 5^3 = 6^3
Four consecutive numbers, as cubes.
27

The Many Faces of 666

Number TheoryPrime NumbersCuriosities

In the Book of Revelation, 666 is called the number of the beast — and the fear of it even has a name: hexakosioi­hexekonta­hexaphobia. But strip away the folklore and 666 turns out to be one of the most playful integers in mathematics. It is the sum of the squares of the first seven primes. It can be built from the digits 1 through 9 in several different ways. It even appears as a palindromic run of cubes, climbing from 1 to 6 and back down again. The superstition runs deep enough that in 1989 Ronald and Nancy Reagan had their Bel-Air address changed from 666 St. Cloud Road to 668.

666=22+32+52+72+112+132+172666 = 2^2 + 3^2 + 5^2 + 7^2 + 11^2 + 13^2 + 17^2
The squares of the first seven primes.
666=1+2+3+4+567+89666 = 1 + 2 + 3 + 4 + 567 + 89
666=123+456+78+9666 = 123 + 456 + 78 + 9
666=9+87+6+543+21666 = 9 + 87 + 6 + 543 + 21
Three ways to reach 666 using the digits 1–9 in order.
666=13+23+33+43+53+63+53+43+33+23+13666 = 1^3 + 2^3 + 3^3 + 4^3 + 5^3 + 6^3 + 5^3 + 4^3 + 3^3 + 2^3 + 1^3
Cubes climbing to 6 and mirroring back down.
28

A Mathematical Coincidence

Number TheoryDigitsCuriosities

Take the number 2646798 and read off its digits: 2, 6, 4, 6, 7, 9, 8. Now raise each digit to a power that climbs from one to seven, in order. Add the results and you land right back on 2646798 — the very number you started with. It is a pure numerical coincidence, but a delightfully tidy one.

2646798=21+62+43+64+75+96+872646798 = 2^1 + 6^2 + 4^3 + 6^4 + 7^5 + 9^6 + 8^7
Each digit raised to a rising power sums back to itself.
29

The Recycling Symbol Is a Möbius Strip

TopologyGeometryCuriosities

Look closely at the universal recycling symbol — three arrows chasing one another in a triangle — and you are looking at a Möbius strip. One of the arrows carries a half-twist, the same twist that turns a strip of paper into a surface with only one side and one edge. Gary Anderson designed it in 1970 for a college competition on the first Earth Day, choosing a form with no beginning and no end to echo endless reuse.

The international symbol for recycling depicts a Möbius strip.
Recycling symbol
30

A Number That Counts Its Own Digits

Number TheoryDigitsCuriosities

Some numbers describe themselves. In 6210001000, the first digit tells you how many zeros appear; the second tells you how many ones; the third how many twos — and so on through all ten digits. Read the list below and every line checks out. It is one of the few ten-digit numbers that pulls off this trick.

In the number 6210001000:

  • The digit 0 occurs 6 times
  • The digit 1 occurs 2 times
  • The digit 2 occurs 1 time
  • The digit 3 occurs 0 times
  • The digit 4 occurs 0 times
  • The digit 5 occurs 0 times
  • The digit 6 occurs 1 time
  • The digit 7 occurs 0 times
  • The digit 8 occurs 0 times
  • The digit 9 occurs 0 times
Digit i counts how many times i appears — including in the count itself.
Self-descriptive number
31

Equal Products of Reversible Numbers

Number TheoryPalindromesCuriosities

Multiply a number by its own reverse — 861 times 168, say — and you may expect a one-off coincidence. But some products refuse to stay unique. They can be assembled from a second pair of reversed factors as well: 144,648 equals both 861 × 168 and 492 × 294. Numbers with this double identity are called EPRNs — Equal Products of Reversible Numbers. They are uncommon, but the pattern keeps turning up as the digits grow longer.

144,648=861×168=492×294185,472=672×276=384×4839,949,716=2583×3852=1476×674116,746,912=2556×6552=4473×3744\begin{aligned} 144{,}648 &= 861 \times 168 = 492 \times 294 \\[4pt] 185{,}472 &= 672 \times 276 = 384 \times 483 \\[4pt] 9{,}949{,}716 &= 2583 \times 3852 = 1476 \times 6741 \\[4pt] 16{,}746{,}912 &= 2556 \times 6552 = 4473 \times 3744 \end{aligned}
Each product splits two ways, with reversed digits in every pair.
OEIS A066531
32

A Mathematical Limerick

CalculusWordplayCuriosities

A limerick is a five-line poem with a strict rhyme scheme. This one, collected by Betsy Devine and Joel E. Cohen, is unusual: read aloud, its syllables spell out a genuine integral identity. Both sides evaluate to exactly one-third — the joke lands because every phrase in the poem corresponds to a symbol in the equation.

∫133z2 dz×cos⁡(3π9)=ln⁡(e3)\int_{1}^{\sqrt[3]{3}} z^2\, dz \times \cos\left(\frac{3\pi}{9}\right) = \ln\left(\sqrt[3]{e}\right)

The integral z-squared dz

From one to the cube root of three

Times the cosine

Of three pi over nine

Equals log of the cube root of e.

Read aloud, each line of the poem names a piece of this integral.
33

Two Expressions, One Answer

Number TheorySquaresCuriosities

At first glance, 35 − 3² − 5² and 75 − 7² − 5² look like unrelated subtractions. Work them out and both sides collapse to exactly 1. The digits echo each other — 35 and 75, 3 and 7 flanking a shared 5² — yet there is no deeper theorem hiding behind the symmetry. It is a tidy arithmetic coincidence, the kind that makes you double-check your mental math.

35−32−52=75−72−5235 - 3^2 - 5^2 = 75 - 7^2 - 5^2
34

Same Digits, Two Products

Number TheoryDigitsCuriosities

Multiply 73, 9, and 42 together and you get 27,594. Now take the very same digits — 7, 3, 9, 4, and 2 — and regroup them as 7 and 3942. Their product is still 27,594. The factors look completely different, yet the digit set is identical and the answer does not budge.

73×9×42=7×394273 \times 9 \times 42 = 7 \times 3942
35

Reverse the Number, Reverse the Square

Number TheorySquaresDigitsCuriosities

Square 12 and you get 144. Reverse the digits of 12 to get 21, square that, and reverse the result — you get 441, the reverse of 144. The same trick works for 13 and 31. It is not magic: when (10a + b)² expands with no carries, reversing the digits of the number reverses the digits of its square.

122=144212=441132=169312=961\begin{aligned} 12^2 &= 144 \\[4pt] 21^2 &= 441 \\[8pt] 13^2 &= 169 \\[4pt] 31^2 &= 961 \end{aligned}
Reverse the root — the square's digits reverse too.
36

Nine Digits, Three Times

Number TheoryDigitsCuriosities

Take the digits 1 through 9 in descending order and subtract them in ascending order — 987654321 minus 123456789. The answer is 864197532. Remarkably, all three numbers — minuend, subtrahend, and difference — are pandigital: each uses every digit from 1 to 9 exactly once.

987654321− 123456789864197532\begin{array}{r} 987654321 \\ -\,123456789 \\ \hline 864197532 \end{array}
Each term uses the digits 1 through 9 exactly once.
37

Kaprekar's Constant

Number TheoryDigitsCuriosities

Pick any four-digit number with at least two distinct digits — say 2736. Arrange its digits to form the largest and smallest numbers possible (7632 and 2367), then subtract. Repeat the same operation on the result. No matter where you start, within seven steps you always arrive at 6174 and stay there. For three-digit numbers the same process always leads to 495.

7632−23677632 - 2367==52655265
6552−25566552 - 2556==39963996
9963−36999963 - 3699==62646264
6642−24666642 - 2466==41764176
7641−14677641 - 1467==61746174
Starting from 2736 — Kaprekar’s constant 6174 is reached in five steps. It is a fixed point: the process loops here forever.
38

The Prime That Truncates From Both Ends

Prime NumbersNumber TheoryCuriosities

Some primes survive being trimmed from one end. The number 739397 survives being trimmed from both. Peel digits off its right side — 739397, 73939, 7393, 739, 73, 7 — and every step stays prime. Build it up instead by adding digits to its left — 7, 97, 397, 9397, 39397, 739397 — and every step is prime again. Numbers with this double property are called two-sided primes, and only fifteen of them exist in base ten. 739397 is the largest — and, it has been proven, the last.

77
9797
397397
93979397
3939739397
739397739397
7393973939
73937393
739739
7373
77
Built up from the left, then trimmed from the right — 739397 stays prime the whole way.
Two-sided prime
39

Truncatable Primes

Prime NumbersNumber TheoryCuriosities

Some primes keep their status no matter how many digits you strip away. A right-truncatable prime stays prime when you lop off digits from the right — 73939133, then 7393913, then 739391, all the way down to 7. Left-truncatable primes work from the other end: start with 357686312646216567629137 and delete from the front, and every intermediate number is still prime. In base ten, the longest right-truncatable prime has eight digits; the longest left-truncatable prime has twenty-four.

739391337393913373939137393913739391739391739397393973937393739739737377
Remove digits from the right — every step stays prime.
357686312646216567629137357686312646216567629137576863126462165676291375768631264621656762913776863126462165676291377686312646216567629137686312646216567629137686312646216567629137863126462165676291378631264621656762913763126462165676291376312646216567629137312646216567629137312646216567629137126462165676291371264621656762913726462165676291372646216567629137646216567629137646216567629137462165676291374621656762913762165676291376216567629137216567629137216567629137165676291371656762913765676291376567629137567629137567629137676291376762913776291377629137629137629137291372913791379137137137373777
Remove digits from the left — every step stays prime.
40

An Immortal Truth

Number TheorySquaresCuriosities

In 1955 Pedro A. Pisa published an equation that refuses to die. Three numbers on the left, three on the right — add them and both sides match. Then square every term and both sides still match. Peel digits from the ends, row by row, and the balance holds all the way down to single digits and back up to six. Hack away at any column in sync and the truth survives.

12+52+62=22+32+72122+562+642=242+322+7621232+5612+6422=2422+3232+761212372+56192+64282=24282+32372+76192123782+561942+642862=242862+323782+7619421237892+5619452+6428642=2428682+3237872+7619432237892+619452+428642=428682+237872+61943237892+19452+28642=28682+37872+194327892+9452+8642=8682+7872+9432892+452+642=682+872+43292+52+42=82+72+32\begin{array}{r c r c r c r c r c r} 1^2 & + & 5^2 & + & 6^2 & = & 2^2 & + & 3^2 & + & 7^2 \\ 12^2 & + & 56^2 & + & 64^2 & = & 24^2 & + & 32^2 & + & 76^2 \\ 123^2 & + & 561^2 & + & 642^2 & = & 242^2 & + & 323^2 & + & 761^2 \\ 1237^2 & + & 5619^2 & + & 6428^2 & = & 2428^2 & + & 3237^2 & + & 7619^2 \\ 12378^2 & + & 56194^2 & + & 64286^2 & = & 24286^2 & + & 32378^2 & + & 76194^2 \\ 123789^2 & + & 561945^2 & + & 642864^2 & = & 242868^2 & + & 323787^2 & + & 761943^2 \\ 23789^2 & + & 61945^2 & + & 42864^2 & = & 42868^2 & + & 23787^2 & + & 61943^2 \\ 3789^2 & + & 1945^2 & + & 2864^2 & = & 2868^2 & + & 3787^2 & + & 1943^2 \\ 789^2 & + & 945^2 & + & 864^2 & = & 868^2 & + & 787^2 & + & 943^2 \\ 89^2 & + & 45^2 & + & 64^2 & = & 68^2 & + & 87^2 & + & 43^2 \\ 9^2 & + & 5^2 & + & 4^2 & = & 8^2 & + & 7^2 & + & 3^2 \end{array}
Six terms per row — peel digits from the ends and every equation still balances.
41

A Three-Digit Number Trick

Number TheoryDigitsCuriosities

Write a three-digit number twice in a row and you have secretly multiplied by 1001. Factor 1001 into 7, 11, and 13 — and the six-digit giant collapses back to where it started, one clean division at a time.

  1. Pick a three-digit number (example: 412).
  2. Double it to create a six-digit number (412412).
  3. Divide the result successively by 7, by 11, and by 13. There will be no remainders.
  4. The result is the original number.
412×1001=412412412412÷7÷11÷13=412\begin{gathered} 412 \times 1001 = 412412 \\[4pt] 412412 \div 7 \div 11 \div 13 = 412 \end{gathered}
1001 = 7 × 11 × 13 — that is why the trick always works.
42

Two Sets, Five Equal Power Sums

Number TheoryCuriositiesFormulas

The sets {1, 6, 7, 17, 18, 23} and {2, 3, 11, 13, 21, 22} look unrelated, yet they are arithmetically twins. Add the numbers in each set: equal. Square every number and add: still equal. Cube them: equal. Raise to the fourth power: equal. Fifth power: equal. Through every power from 1 to 5, the two sides remain in perfect balance.

1+6+7+17+18+23=2+3+11+13+21+2212+62+72+172+182+232=22+32+112+132+212+22213+63+73+173+183+233=23+33+113+133+213+22314+64+74+174+184+234=24+34+114+134+214+22415+65+75+175+185+235=25+35+115+135+215+225\begin{aligned} 1 + 6 + 7 + 17 + 18 + 23 &= 2 + 3 + 11 + 13 + 21 + 22 \\[12pt] 1^2 + 6^2 + 7^2 + 17^2 + 18^2 + 23^2 &= 2^2 + 3^2 + 11^2 + 13^2 + 21^2 + 22^2 \\[4pt] 1^3 + 6^3 + 7^3 + 17^3 + 18^3 + 23^3 &= 2^3 + 3^3 + 11^3 + 13^3 + 21^3 + 22^3 \\[4pt] 1^4 + 6^4 + 7^4 + 17^4 + 18^4 + 23^4 &= 2^4 + 3^4 + 11^4 + 13^4 + 21^4 + 22^4 \\[4pt] 1^5 + 6^5 + 7^5 + 17^5 + 18^5 + 23^5 &= 2^5 + 3^5 + 11^5 + 13^5 + 21^5 + 22^5 \end{aligned}
The identity holds for every power from 1 to 5.
43

Another Pair of Balanced Sets

Number TheoryCuriositiesFormulas

The sets {1, 5, 10, 18, 23, 27} and {2, 3, 13, 15, 25, 26} strike the same rare balance. Add them — equal. Square, cube, raise to the fourth, raise to the fifth — equal every time. Identities like this are called multigrade equations, and matching two six-number sets through five separate powers is a hard-won piece of construction, not a coincidence.

1+5+10+18+23+27=2+3+13+15+25+2612+52+102+182+232+272=22+32+132+152+252+26213+53+103+183+233+273=23+33+133+153+253+26314+54+104+184+234+274=24+34+134+154+254+26415+55+105+185+235+275=25+35+135+155+255+265\begin{aligned} 1 + 5 + 10 + 18 + 23 + 27 &= 2 + 3 + 13 + 15 + 25 + 26 \\[12pt] 1^2 + 5^2 + 10^2 + 18^2 + 23^2 + 27^2 &= 2^2 + 3^2 + 13^2 + 15^2 + 25^2 + 26^2 \\[4pt] 1^3 + 5^3 + 10^3 + 18^3 + 23^3 + 27^3 &= 2^3 + 3^3 + 13^3 + 15^3 + 25^3 + 26^3 \\[4pt] 1^4 + 5^4 + 10^4 + 18^4 + 23^4 + 27^4 &= 2^4 + 3^4 + 13^4 + 15^4 + 25^4 + 26^4 \\[4pt] 1^5 + 5^5 + 10^5 + 18^5 + 23^5 + 27^5 &= 2^5 + 3^5 + 13^5 + 15^5 + 25^5 + 26^5 \end{aligned}
The identity holds for every power from 1 to 5.
44

The 9876… × 9 Pattern

Number TheoryCuriositiesPatterns

Start with 9, keep prepending the next lower digit, multiply by 9, and adjust the addend down by 1 each time. Every result is a string of 8s — and the pattern keeps going even when the addend turns negative.

9×9+7=889 \times 9 + 7 = 8898×9+6=88898 \times 9 + 6 = 888987×9+5=8888987 \times 9 + 5 = 88889876×9+4=888889876 \times 9 + 4 = 8888898765×9+3=88888898765 \times 9 + 3 = 888888987654×9+2=8888888987654 \times 9 + 2 = 88888889876543×9+1=888888889876543 \times 9 + 1 = 8888888898765432×9+0=88888888898765432 \times 9 + 0 = 888888888987654321×9−1=8888888888987654321 \times 9 - 1 = 88888888889876543210×9−2=888888888889876543210 \times 9 - 2 = 88888888888
45

Five Dates, One Weekday

CalendarCuriositiesPatterns

Circle April 4, June 6, August 8, October 10, and December 12 on any calendar you like, and all five dates land on the exact same day of the week — true in leap years and ordinary ones alike, every single year. In 2026, for instance, that shared day is a Saturday. It is the visible edge of what the mathematician John Conway called the Doomsday rule: a small set of dates that always share a year's “doomsday,” letting anyone work out the weekday of any other date in their head. The same trick reaches further still — 5/9, 9/5, 7/11, and 11/7 land on it too, along with the last day of February.

4/4SAT
=
6/6SAT
=
8/8SAT
=
10/10SAT
=
12/12SAT
Same weekday, every year — the doubled months of the Doomsday rule.
46

Two Sprawling Numbers, One Clean Answer

Number TheoryExponentsCuriosities

Multiply 8,589,934,592 by 116,415,321,826,934,814,453,125 and every messy digit vanishes — the product is a flawless 1 followed by thirty-three zeros. The trick hides in the factors: the first number is 2 raised to the 33rd power, the second is 5 raised to the 33rd power. Since 2 and 5 are exactly the prime factors of 10, raising both to the same power and multiplying always collapses into a power of ten, however sprawling the numbers look along the way.

8589934592×116415321826934814453125=1000000000000000000000000000000000\begin{aligned} 8589934592 \times 116415321826934814453125 \\[4pt] = 1000000000000000000000000000000000 \end{aligned}
2³³ × 5³³ = 10³³ — a 1 followed by 33 zeros.
47

A Fraction of Squares That Lands on Exactly 2

Number TheorySquaresCuriosities

Add the squares of 3 through 9, then divide by the sum of the squares of 1 through 7 — two runs of seven consecutive integers, offset by two — and the fraction reduces to precisely 2, no remainder. Slide the same seven-term window anywhere else along the number line and the tidy 2 doesn't come back; it is a coincidence of these two particular runs, not a general rule.

32+42+52+62+72+82+9212+22+32+42+52+62+72=2\frac{3^2+4^2+5^2+6^2+7^2+8^2+9^2}{1^2+2^2+3^2+4^2+5^2+6^2+7^2} = 2
280 over 140 — both sums of seven consecutive squares.
48

Fibonacci Numbers Convert Miles to Kilometers

FibonacciGolden RatioCuriosities

The Fibonacci sequence grows by the plainest rule imaginable: each term is the sum of the two before it — 0, 1, 1, 2, 3, 5, 8, 13, 21, and onward forever. Buried in that simple sum is an unexpected shortcut. Read off two neighboring terms — 5 and 8, 8 and 13, 13 and 21 — and the smaller is, to within about half a percent, how many miles equal the larger in kilometers. It works because consecutive Fibonacci numbers divide into an ever-closer approximation of the golden ratio, φ ≈ 1.618, and a mile happens to equal almost exactly 1.609 kilometers — two unrelated constants sitting a hair's width apart.

5 mi8 km
8 mi13 km
13 mi21 km
21 mi34 km
34 mi55 km
φ ≈ 1.6181 mile ≈ 1.609 km
Each step up the ladder — Fibonacci miles on the left, Fibonacci kilometers on the right.
49

One Number, Three Digit-Exponent Permutations

Number TheoryDigitsCuriosities

Pair each base from 1 to 9 with a different exponent from 1 to 9, then add the nine resulting powers together — shuffle the pairing, and the total should change every time. Remarkably, at least three separate permutations refuse to budge from the exact same sum: 134,757,431. Swap which power lands on which base, and the number holds steady.

134757431=17+23+38+45+54+62+71+89+96=17+25+38+41+52+64+73+89+96=17+28+34+42+53+65+71+89+96\begin{aligned} 134757431 &= 1^7 + 2^3 + 3^8 + 4^5 + 5^4 + 6^2 + 7^1 + 8^9 + 9^6 \\[6pt] &= 1^7 + 2^5 + 3^8 + 4^1 + 5^2 + 6^4 + 7^3 + 8^9 + 9^6 \\[6pt] &= 1^7 + 2^8 + 3^4 + 4^2 + 5^3 + 6^5 + 7^1 + 8^9 + 9^6 \end{aligned}
Three different assignments of exponents 1–9 to bases 1–9, each summing to 134,757,431.
50

Numbers Built From Their Own Digit Factorials

Number TheoryDigitsCuriosities

Raise each digit of a number not to a power but to a factorial, and add the results — for two special numbers, the sum lands exactly back on where it started. These are called factorions. Past the trivial cases 1 and 2, where a lone digit's factorial equals the digit itself, only two others have ever been found: 145 and 40585. No third has ever turned up, and none ever will — since 9! is 362,880, once a number reaches eight digits its digit-factorial sum can no longer keep pace with it.

1!+4!+5!=1454!+0!+5!+8!+5!=40585\begin{aligned} 1! + 4! + 5! &= 145 \\[4pt] 4! + 0! + 5! + 8! + 5! &= 40585 \end{aligned}
Each digit's factorial, summed back to the number itself.
51

Two Staircases Built From Odd Numbers

Number TheorySquaresCubesPatterns

Add up the first n odd numbers, one at a time, and the running total always lands on n² — a perfect square, every step of the way. Group the odd numbers differently instead — into blocks that grow by one term each time, 1, then 3+5, then 7+9+11 — and the block totals climb through the cubes just as cleanly. Two staircases, built from nothing but the odd numbers in order.

11
=12=1^2
1+31+3
=22=2^2
1+3+51+3+5
=32=3^2
1+3+5+71+3+5+7
=42=4^2
1+3+5+7+91+3+5+7+9
=52=5^2
11
=13=1^3
3+53+5
=23=2^3
7+9+117+9+11
=33=3^3
13+15+17+1913+15+17+19
=43=4^3
21+23+25+27+2921+23+25+27+29
=53=5^3
Odd numbers, added one at a time, build the squares — grouped into growing blocks, they build the cubes.
52

1 to 9 and 9 to 1, Both Hiding a Hundred

Number TheoryDigitsCuriosities

The digits 1 through 9 in ascending order and in descending order both fold neatly out of the same hidden number: 100. Tuck a 100 together from small arithmetic — 86 plus 2 times 7, or 97 plus 6 over 2 — raise it to the fifth power, nudge it with a stray add or subtract, then divide by 3⁴, and out comes 123456789 on one side, 987654321 on the other.

123456789=(86+2×7)5−9134123456789 = \frac{(86 + 2 \times 7)^5 - 91}{3^4}
86 + 2 × 7 = 100, raised to the fifth, minus 91, over 3⁴.
987654321=8(97+62)5+134987654321 = \frac{8 \left( 97 + \frac{6}{2} \right)^5 + 1}{3^4}
97 + 6 ÷ 2 = 100, raised to the fifth, times 8, plus 1, over 3⁴.
53

A Pandigital Multiplication That Doubles Its Own Trick

Number TheoryDigitsCuriosities

Multiply 54981 by 62037 and the ten digits scattered across both factors — 0 through 9, each used exactly once — simply reshuffle themselves into the product, 3410856297. Square that product and the trick repeats one level up: the twenty digits of the answer are once again 0 through 9, this time with every digit turning up exactly twice.

54981×62037=341085629754981 \times 62037 = 3410856297
The ten digits of the factors reappear, jumbled, in the product.
3410856297×3410856297=116339406787845522093410856297 \times 3410856297 = 11633940678784552209
Squared, and every digit 0–9 turns up exactly twice.