How Are Numbers Built?
2024-03-21 | 2024-04-21
Estimated Reading Time: 15 minutes
“How are numbers built?” This was the simple but profound question that my polymath friend Solus “Sol” Simkin asked me when we met unexpectedly at an evening function.
“Sol, have a sense of occasion, of time and place, please! This is a social event at a Music School, not the Agora of Athens! Your question is too deep to be discussed here and now. We are planning to go on a tour of Santorini in a month’s time. Let our thoughts mingle with those of the ancient, philosophical Greeks. Until then, I will take a raincheck on your question,” I remonstrated.
And so it was that Sol next resumed this conversational thread while we gazed upon the azure sea, from under the shade of an olive grove, atop a hillock on Santorini.
How would you build a world?
“If you were given the power to build a world, how would you do it?” Sol asked me without forewarning.
“Why so outlandish a question? Enjoy the sun and the breeze, and the bleats of the sheep,” I replied.
“Have you heard of the Worldbuilding Stackexchange? It ‘is a question and answer site for writers/artists using science, geography and culture to construct imaginary worlds and settings’.”
“No,” I said.
“It is a serious site on the Web where bizarre worlds, with negative gravity and entropy, may be conceived and discussed, before being constructed and populated. My question is not a flippant one.”
“I stand educated. But what has mathematics to do with those flights of fancy?” I queried.
Sol said, “Everything”. “One cannot construct a world without the laws of physics, or the laws of mind. Or the laws of cause and effect. As long as structure, consistency, repeatability, and durability are desired, one cannot do without numbers. More than light or atoms, numbers are the building blocks of the world.”
We had launched at last into the discussion proper. And what a majestic premise: that the world is built with numbers, before it could be built with light or atoms. I asked Sol to let his canons of unassailable argument boom, while I waited passively to be informed and entertained.
Lessons from observing life
“You must have heard of my paternal cousin, once removed, Hieronymus Septimus Simkin, whom I affectionately call Seven. He it was who opened my eyes first to the unguarded secrets staring at us from Nature. He introduced me to books like D’Arcy Wentworth Thompson’s classic On Growth and Form [1] and the interestingly titled The Parsimonious Universe [2]. These books postulate, with incontrovertible evidence, that the Book of Nature derives its intelligence from adaptation, powered by mathematics.
“If Nature is constructed from—or using—mathematics, how are numbers constructed? Are numbers themselves the very first creation of a colossal intelligence? Numbers. Before light, before atoms, before cause and effect?”
But, Sol did not stop there.
“God made the integers”
“Nature is varied and variegated in a way that defies monotony. There is pattern but also variation. Fractals typify what I am trying to convey. Perhaps, you will remember that Leopold Kronecker was reputed to have said ‘Die ganzen Zahlen hat der liebe Gott gemacht, alles andere ist Menschenwerk’, meaning ‘(The Dear) God made the integers, all else is the work of man’ [3],” Sol thundered on.
He waited for his exposition to sink in. Given our idyllic surroundings, it was hard not to day dream and slip silently into slumber. He ordered two glasses of Frappé to keep me from descending into somnolence.
The integers have their place, but …
“The integers are fundamental because all mathematics begins with counting. The quantitative fields are all founded on the natural numbers we count with. And zero and one are the two most important integers—that I grant you. But can we stop with the integers, and exclude everything else?” asked Sol.
“Are you trying to play Devil’s advocate, Sol?” I asked somewhat confused by the change in tenor of his argument.
“Aha! So, you are still awake enough to follow what I say,” he laughed. “Yes, that was a deliberate rhetorical question, and a segue to my next observation.”
The square and the circle
“The square is the four-sided regular polygon,” Sol
observed. “If we consider a square with a side length equal to one unit,
by the theorem of Pythagoras, we know that its diagonal has a length
equal to
“Moving from the finite to the infinite, the circle may be viewed as
the limiting case of a regular polygon of
“The natural
numbers, the integers, and the rationals—all of these come under
Kronecker’s integers, but where do we stash
Sol’s earnest question was met by bemused silence from me.
How about the number ?
Never one to leave a thread of thought half-fleshed out, Sol mounted
his next hobby horse, and expounded on
“The number
“But what exactly is the value of
“It appears that Nature has inserted into the foundations of
Creation, non-integers like
“Very penetrating,” I nodded in appreciation.
“Let me digress a little,” Sol continued.
Open secrets
“Helen Keller is reputed to have exclaimed, when she felt the warm glow of a wood-fire, that it was the release of sunbeams that had been trapped long ago in the wood. Her statement is remarkably perceptive, poetic, and precise,” Sol continued.
“Unlike ancient sunlight trapped in wood,
“Do you know why they are open secrets? They are public, staring at
us from every square, circle, and electrical signal, and yet, their full
form is never revealed. They cannot be contained except in infinity. To
know the next decimal place of
The rest of Sol’s dialogue was intricately mathematical. I have recorded it here, substantially as a logical exposition—complete with references—for the benefit of the casual reader, with bits of direct speech thrown in.
The square root of two
Of the triad—
Manual extraction of root two
The manual extraction of square roots is analogous to long division.
The process is both tedious and error-prone. The algorithm uses the fact
that the factor
Different ways of expressing a number
The decimal representation of a number is not the only way to express
it. For example, the integer
The decimal representation comes from expressing a number as the sum of fractions whose denominators are powers of ten. And if the decimal is never ending, the process of division and summation does not terminate. Recall that the Manual extraction of root two also relied on division of sorts. So, does division hold the key to how numbers are built?
Sol then confessed, “I had forgotten that the decimal system is not the only way to represent irrationals and transcendentals in never-ending glory. And I don’t mean a change of base. Can you guess what I had forgotten?”
“Nothing from me to egg you on,” I said in a sleepy tone. The time, place, and weather had lulled me into a restful somnolence that was ill-suited to mathematical head-scratching, even with the Frappé.
“It is something that we learn at high school, more as a curiosity than as useful mathematics,” Sol continued by way of enticing me with a clue. “Can you guess what it is?”
When I shook my head with a dazed stare, Sol said, “Come on. One last clue. It has to do with division and fractions.”
When I refused to be drawn into guessing what it was, Sol exclaimed, “Continued Fractions!” [7–11] rousing me into full wakefulness with his thunderous voice.
“Apart from a change of base, there are basically two ways I know of representing real numbers: decimals, and continued fractions. Patterns not discernible in the decimal representation suddenly pop out with pellucid clarity when the same number is expressed as a continued fraction. The advent of computers and 64-bit computation has diverted our attention away from experiencing the periodic beauty of a quadratic irrational, expressed as a continued fraction,” Sol went on, lyrically.
“Practically, every irrational, when pressed to computational use, is
really a rational approximation to the irrational, to an accuracy that
serves the purpose. In that sense, Kronecker was not far from the truth.
But the full glory of
The charm of continued fractions
Sol then went on to demonstrate his preferred method of evaluating
Continued fractions are curious mathematical entities that have surprising properties. They are an alternative rational number representation of real numbers. No finite continued fraction can equate to an irrational number. But a never-ending continued fraction can indeed represent an irrational number. “This is why I say that the rationals and the irrationals meet at infinity,” Sol said with panache.
Continued fraction expansion of a rational number
“Let us start modestly and try to expand a rational number using continued fractions,” said Sol. “Give me a scary or hairy rational number, preferably larger than one,” he said.
“What about
“Taken,” replied Sol. We start off by doing plain long division to
get:
“Because
You will agree that this form—more easily written by hand than
typed—is a little cumbersome. So, the convention for writing a continued
fraction is to enclose the quotients and remainders in square brackets
and express it as
Continued fraction expansion of √2
The irrational number
Congruents
The congruents or approximants from a continued
fraction are partial sums that we may accumulate as successive
rational approximations to the irrational number—
In this way, we start off with
The first fifteen convergents are tabulated in Table 1. Note that these values oscillate about the true value as consecutive congruents successively overestimate and underestimate the irrational number. Some of the congruents have large numerators and denominators. In many cases, the decimal representations have recurring decimals that could have very long periods, as indicated in the third column of the table.
Convergent | Decimal Value | Period |
---|---|---|
Sol said that working out the fractions in Table 1 could be a form of torture, unless you are particularly fond of, or adept at computing them by hand. He himself did not relish such hand computations, but preferred to program to get a solution. The link to a program is given toward the end of this blog.
The rational fractions above are tabulated with their decimal
versions to provide an idea of how the convergents do indeed converge to
the “benchmark” decimal value of Julia
REPL,
which is shown below. There is agreement at best to about ten decimal
places.
sqrt(big(2))
1.414213562373095048801688724209698078569671875376948073176679737990732478462102
Elegant and inelegant representations
Sol said, “It is clear that
“Likewise,
“Two different approaches have led to two different representations of two different numbers—one rational and the other irrational—that are both elegant. I consider that a marvel.
“This leads me to think that there might be other ways in which the important numbers in Nature may be expressed using only integers. We know only of decimals and continued fractions,” Sol mused. “But there must be other identities as yet undiscovered.”
“What about infinite series and such for
“Spot on,” said Sol. “It is my belief that the Creator built each
number that plays a major role in Nature using some elegant and succinct
representation. If the act of Creation were not efficient or
parsimonious, I do not think we will have the diversity we experience
today. Let us talk about
“My only quibble is with prime numbers. They cannot be built
from anything except by adding
And on that final note, Sol and I wrapped up our discussion on how numbers are built, while enjoying the idyllic environment of Santorini.
Program link
A simple Julia
program, ContFrac.jl, is available.
It provides functions related to continued fractions, but no claims are
made as to its absolute correctness. 😉 Take a look if you wish.
Acknowledgements
The free Wolfram Alpha website is a valuable resource. I am unsure, though if—with the march of time—its multitudinous functions will be gradually furled up behind a paywall.
Feedback
Please email me your comments and corrections.
A PDF version of this article is available for download here: