
Regular numbers are numbers that evenly divide powers of
60 (or, equivalently, powers of
30). Equivalently, they are the numbers whose only prime divisors are
2,
3, and
5. As an example, 60
2 = 3600 = 48 × 75, so as divisors of a power of 60 both 48 and 75 are regular.
These numbers arise in several areas of mathematics and its applications, and have different names coming from their different areas of study.
* In
number theory
Number theory is a branch of pure mathematics devoted primarily to the study of the integers and arithmetic functions. Number theorists study prime numbers as well as the properties of mathematical objects constructed from integers (for example ...
, these numbers are called 5-smooth, because they can be characterized as having only 2, 3, or 5 as their
prime factor
A prime number (or a prime) is a natural number greater than 1 that is not a product of two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number. For example, 5 is prime because the only ways ...
s. This is a specific case of the more general -
smooth number
In number theory, an ''n''-smooth (or ''n''-friable) number is an integer whose prime factors are all less than or equal to ''n''. For example, a 7-smooth number is a number in which every prime factor is at most 7. Therefore, 49 = 72 and 15750 = 2 ...
s, the numbers that have no prime factor greater
* In the study of
Babylonian mathematics
Babylonian mathematics (also known as Assyro-Babylonian mathematics) is the mathematics developed or practiced by the people of Mesopotamia, as attested by sources mainly surviving from the Old Babylonian period (1830–1531 BC) to the Seleucid ...
, the divisors of powers of 60 are called regular numbers or regular sexagesimal numbers, and are of great importance in this area because of the
sexagesimal
Sexagesimal, also known as base 60, is a numeral system with 60 (number), sixty as its radix, base. It originated with the ancient Sumerians in the 3rd millennium BC, was passed down to the ancient Babylonians, and is still used—in a modified fo ...
(base 60) number system that the Babylonians used for writing their numbers, and that was central to Babylonian mathematics.
* In
music theory
Music theory is the study of theoretical frameworks for understanding the practices and possibilities of music. ''The Oxford Companion to Music'' describes three interrelated uses of the term "music theory": The first is the "Elements of music, ...
, regular numbers occur in the ratios of tones in
five-limit just intonation
In music, just intonation or pure intonation is a musical tuning, tuning system in which the space between notes' frequency, frequencies (called interval (music), intervals) is a natural number, whole number ratio, ratio. Intervals spaced in thi ...
. In connection with music theory and related theories of
architecture
Architecture is the art and technique of designing and building, as distinguished from the skills associated with construction. It is both the process and the product of sketching, conceiving, planning, designing, and construction, constructi ...
, these numbers have been called the harmonic whole numbers.
* In
computer science
Computer science is the study of computation, information, and automation. Computer science spans Theoretical computer science, theoretical disciplines (such as algorithms, theory of computation, and information theory) to Applied science, ...
, regular numbers are often called Hamming numbers, after
Richard Hamming
Richard Wesley Hamming (February 11, 1915 – January 7, 1998) was an American mathematician whose work had many implications for computer engineering and telecommunications. His contributions include the Hamming code (which makes use of a Ha ...
, who proposed the problem of finding computer
algorithm
In mathematics and computer science, an algorithm () is a finite sequence of Rigour#Mathematics, mathematically rigorous instructions, typically used to solve a class of specific Computational problem, problems or to perform a computation. Algo ...
s for generating these numbers in ascending order. This problem has been used as a test case for
functional programming
In computer science, functional programming is a programming paradigm where programs are constructed by Function application, applying and Function composition (computer science), composing Function (computer science), functions. It is a declarat ...
.
Number theory
Formally, a regular number is an
integer
An integer is the number zero (0), a positive natural number (1, 2, 3, ...), or the negation of a positive natural number (−1, −2, −3, ...). The negations or additive inverses of the positive natural numbers are referred to as negative in ...
of the form
, for nonnegative integers
,
, and
. Such a number is a divisor of
. The regular numbers are also called 5-
smooth, indicating that their greatest
prime factor
A prime number (or a prime) is a natural number greater than 1 that is not a product of two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number. For example, 5 is prime because the only ways ...
is at most 5. More generally, a -smooth number is a number whose greatest prime factor is at
The first few regular numbers are
Several other sequences at the
On-Line Encyclopedia of Integer Sequences
The On-Line Encyclopedia of Integer Sequences (OEIS) is an online database of integer sequences. It was created and maintained by Neil Sloane while researching at AT&T Labs. He transferred the intellectual property and hosting of the OEIS to th ...
have definitions involving 5-smooth numbers.
Although the regular numbers appear dense within the range from 1 to 60, they are quite sparse among the larger integers. A regular number
is less than or equal to some threshold
if and only if the point
belongs to the
tetrahedron
In geometry, a tetrahedron (: tetrahedra or tetrahedrons), also known as a triangular pyramid, is a polyhedron composed of four triangular Face (geometry), faces, six straight Edge (geometry), edges, and four vertex (geometry), vertices. The tet ...
bounded by the coordinate planes and the plane
as can be seen by taking logarithms of both sides of the inequality
.
Therefore, the number of regular numbers that are at most
can be estimated as the
volume
Volume is a measure of regions in three-dimensional space. It is often quantified numerically using SI derived units (such as the cubic metre and litre) or by various imperial or US customary units (such as the gallon, quart, cubic inch) ...
of this tetrahedron, which is
Even more precisely, using
big O notation
Big ''O'' notation is a mathematical notation that describes the asymptotic analysis, limiting behavior of a function (mathematics), function when the Argument of a function, argument tends towards a particular value or infinity. Big O is a memb ...
, the number of regular numbers up to
is
and it has been conjectured that the error term of this approximation is actually
.
A similar formula for the number of 3-smooth numbers up to
is given by
Srinivasa Ramanujan
Srinivasa Ramanujan Aiyangar
(22 December 188726 April 1920) was an Indian mathematician. Often regarded as one of the greatest mathematicians of all time, though he had almost no formal training in pure mathematics, he made substantial con ...
in his first letter to
G. H. Hardy
Godfrey Harold Hardy (7 February 1877 – 1 December 1947) was an English mathematician, known for his achievements in number theory and mathematical analysis. In biology, he is known for the Hardy–Weinberg principle, a basic principle of pop ...
.
Babylonian mathematics

In the Babylonian
sexagesimal
Sexagesimal, also known as base 60, is a numeral system with 60 (number), sixty as its radix, base. It originated with the ancient Sumerians in the 3rd millennium BC, was passed down to the ancient Babylonians, and is still used—in a modified fo ...
notation, the
reciprocal
Reciprocal may refer to:
In mathematics
* Multiplicative inverse, in mathematics, the number 1/''x'', which multiplied by ''x'' gives the product 1, also known as a ''reciprocal''
* Reciprocal polynomial, a polynomial obtained from another pol ...
of a regular number has a finite representation. If
divides
, then the sexagesimal representation of
is just that for
, shifted by some number of places. This allows for easy division by these numbers: to divide by
, multiply by
, then shift.
For instance, consider division by the regular number 54 = 2
13
3. 54 is a divisor of 60
3, and 60
3/54 = 4000, so dividing by 54 in sexagesimal can be accomplished by multiplying by 4000 and shifting three places. In sexagesimal 4000 = 1×3600 + 6×60 + 40×1, or (as listed by Joyce) 1:6:40. Thus, 1/54, in sexagesimal, is 1/60 + 6/60
2 + 40/60
3, also denoted 1:6:40 as Babylonian notational conventions did not specify the power of the starting digit. Conversely 1/4000 = 54/60
3, so division by 1:6:40 = 4000 can be accomplished by instead multiplying by 54 and shifting three sexagesimal places.
The Babylonians used tables of reciprocals of regular numbers, some of which still survive. These tables existed relatively unchanged throughout Babylonian times. One tablet from
Seleucid
The Seleucid Empire ( ) was a Greek state in West Asia during the Hellenistic period. It was founded in 312 BC by the Macedonian general Seleucus I Nicator, following the division of the Macedonian Empire founded by Alexander the Great, a ...
times, by someone named Inaqibıt-Anu, contains the reciprocals of 136 of the 231 six-place regular numbers whose first place is 1 or 2, listed in order. It also includes reciprocals of some numbers of more than six places, such as 3 (2 1 4 8 3 0 7 in sexagesimal), whose reciprocal has 17 sexagesimal digits. Noting the difficulty of both calculating these numbers and sorting them,
Donald Knuth
Donald Ervin Knuth ( ; born January 10, 1938) is an American computer scientist and mathematician. He is a professor emeritus at Stanford University. He is the 1974 recipient of the ACM Turing Award, informally considered the Nobel Prize of comp ...
in 1972 hailed Inaqibıt-Anu as "the first man in history to solve a computational problem that takes longer than one second of time on a modern electronic computer!" (Two tables are also known giving approximations of reciprocals of non-regular numbers, one of which gives reciprocals for all the numbers from 56 to 80.)
Although the primary reason for preferring regular numbers to other numbers involves the finiteness of their reciprocals, some Babylonian calculations other than reciprocals also involved regular numbers. For instance, tables of regular squares have been found and the broken tablet
Plimpton 322
Plimpton 322 is a Babylonian clay tablet, believed to have been written around 1800 BC, that contains a mathematical table written in cuneiform script. Each row of the table relates to a Pythagorean triple, that is, a triple of integers (s ...
has been interpreted by
Neugebauer Neugebauer is a German surname. Notable people with the surname include:
Academics
*Gerry Neugebauer (1932–2014), American astronomer
* Hans E. J. Neugebauer (1905–1987), German-American imaging scientist
*Marcia Neugebauer (born 1932), America ...
as listing
Pythagorean triple
A Pythagorean triple consists of three positive integers , , and , such that . Such a triple is commonly written , a well-known example is . If is a Pythagorean triple, then so is for any positive integer . A triangle whose side lengths are a Py ...
s
generated by
and
both regular and less than 60.
Fowler and Robson discuss the calculation of square roots, such as how the Babylonians found an approximation to the
square root of 2
The square root of 2 (approximately 1.4142) is the positive real number that, when multiplied by itself or squared, equals the number 2. It may be written as \sqrt or 2^. It is an algebraic number, and therefore not a transcendental number. Te ...
, perhaps using regular number approximations of fractions such as 17/12.
Music theory
In
music theory
Music theory is the study of theoretical frameworks for understanding the practices and possibilities of music. ''The Oxford Companion to Music'' describes three interrelated uses of the term "music theory": The first is the "Elements of music, ...
, the
just intonation
In music, just intonation or pure intonation is a musical tuning, tuning system in which the space between notes' frequency, frequencies (called interval (music), intervals) is a natural number, whole number ratio, ratio. Intervals spaced in thi ...
of the
diatonic scale
In music theory a diatonic scale is a heptatonic scale, heptatonic (seven-note) scale that includes five whole steps (whole tones) and two half steps (semitones) in each octave, in which the two half steps are separated from each other by eith ...
involves regular numbers: the
pitches in a single
octave
In music, an octave (: eighth) or perfect octave (sometimes called the diapason) is an interval between two notes, one having twice the frequency of vibration of the other. The octave relationship is a natural phenomenon that has been referr ...
of this scale have frequencies proportional to the numbers in the sequence 24, 27, 30, 32, 36, 40, 45, 48 of nearly consecutive regular numbers. Thus, for an instrument with this tuning, all pitches are regular-number
harmonic
In physics, acoustics, and telecommunications, a harmonic is a sinusoidal wave with a frequency that is a positive integer multiple of the ''fundamental frequency'' of a periodic signal. The fundamental frequency is also called the ''1st har ...
s of a single
fundamental frequency
The fundamental frequency, often referred to simply as the ''fundamental'' (abbreviated as 0 or 1 ), is defined as the lowest frequency of a Periodic signal, periodic waveform. In music, the fundamental is the musical pitch (music), pitch of a n ...
. This scale is called a 5-
limit tuning, meaning that the
interval between any two pitches can be described as a product 2
i3
j5
k of powers of the prime numbers up to 5, or equivalently as a ratio of regular numbers.
5-limit musical scales other than the familiar diatonic scale of Western music have also been used, both in traditional musics of other cultures and in modern experimental music: list 31 different 5-limit scales, drawn from a larger database of musical scales. Each of these 31 scales shares with diatonic just intonation the property that all intervals are ratios of regular numbers.
Euler
Leonhard Euler ( ; ; ; 15 April 170718 September 1783) was a Swiss polymath who was active as a mathematician, physicist, astronomer, logician, geographer, and engineer. He founded the studies of graph theory and topology and made influential ...
's
tonnetz provides a convenient graphical representation of the pitches in any 5-limit tuning, by factoring out the octave relationships (powers of two) so that the remaining values form a planar
grid
Grid, The Grid, or GRID may refer to:
Space partitioning
* Regular grid, a tessellation of space with translational symmetry, typically formed from parallelograms or higher-dimensional analogs
** Grid graph, a graph structure with nodes connec ...
. Some music theorists have stated more generally that regular numbers are fundamental to tonal music itself, and that pitch ratios based on primes larger than 5 cannot be
consonant
In articulatory phonetics, a consonant is a speech sound that is articulated with complete or partial closure of the vocal tract, except for the h sound, which is pronounced without any stricture in the vocal tract. Examples are and pronou ...
. However the
equal temperament
An equal temperament is a musical temperament or Musical tuning#Tuning systems, tuning system that approximates Just intonation, just intervals by dividing an octave (or other interval) into steps such that the ratio of the frequency, frequencie ...
of modern pianos is not a 5-limit tuning, and some modern composers have experimented with tunings based on primes larger than five.
In connection with the application of regular numbers to music theory, it is of interest to find pairs of regular numbers that differ by one. There are exactly ten such pairs
and each such pair defines a
superparticular ratio
In mathematics, a superparticular ratio, also called a superparticular number or epimoric ratio, is the ratio of two consecutive integer numbers.
More particularly, the ratio takes the form:
:\frac = 1 + \frac where is a positive integer.
Thu ...
that is meaningful as a musical interval. These intervals are 2/1 (the
octave
In music, an octave (: eighth) or perfect octave (sometimes called the diapason) is an interval between two notes, one having twice the frequency of vibration of the other. The octave relationship is a natural phenomenon that has been referr ...
), 3/2 (the
perfect fifth
In music theory, a perfect fifth is the Interval (music), musical interval corresponding to a pair of pitch (music), pitches with a frequency ratio of 3:2, or very nearly so.
In classical music from Western culture, a fifth is the interval f ...
), 4/3 (the
perfect fourth
A fourth is a interval (music), musical interval encompassing four staff positions in the music notation of Western culture, and a perfect fourth () is the fourth spanning five semitones (half steps, or half tones). For example, the ascending int ...
), 5/4 (the
just major third
Just or JUST may refer to:
Arts and entertainment
* "Just" (song), 1995, by Radiohead
* ''Just!'', Australian author Andy Griffiths' children's story collections
* ''Just'', a 1998 album by Dave Lindholm
* "Just", a 2005 song on ''Lost and Found ...
), 6/5 (the
just minor third
Just or JUST may refer to:
Arts and entertainment
* "Just" (song), 1995, by Radiohead
* ''Just!'', Australian author Andy Griffiths' children's story collections
* ''Just'', a 1998 album by Dave Lindholm
* "Just", a 2005 song on ''Lost and Found ...
), 9/8 (the
just major tone), 10/9 (the
just minor tone), 16/15 (the
just diatonic semitone), 25/24 (the
just chromatic semitone
A semitone, also called a minor second, half step, or a half tone, is the smallest musical interval commonly used in Western tonal music, and it is considered the most dissonant when sounded harmonically.
It is defined as the interval between t ...
), and 81/80 (the
syntonic comma
In music theory
Music theory is the study of theoretical frameworks for understanding the practices and possibilities of music. ''The Oxford Companion to Music'' describes three interrelated uses of the term "music theory": The first i ...
).
In the Renaissance theory of
universal harmony, musical ratios were used in other applications, including the
architecture
Architecture is the art and technique of designing and building, as distinguished from the skills associated with construction. It is both the process and the product of sketching, conceiving, planning, designing, and construction, constructi ...
of buildings. In connection with the analysis of these shared musical and architectural ratios, for instance in the architecture of
Palladio
Andrea Palladio ( , ; ; 30 November 1508 – 19 August 1580) was an Italian Renaissance architect active in the Venetian Republic. Palladio, influenced by Roman and Greek architecture, primarily Vitruvius, is widely considered to be one ...
, the regular numbers have also been called the harmonic whole numbers.
Algorithms
Algorithms for calculating the regular numbers in ascending order were popularized by
Edsger Dijkstra
Edsger Wybe Dijkstra ( ; ; 11 May 1930 – 6 August 2002) was a Dutch computer scientist, programmer, software engineer, mathematician, and science essayist.
Born in Rotterdam in the Netherlands, Dijkstra studied mathematics and physics and the ...
. attributes to Hamming the problem of building the infinite ascending sequence of all 5-smooth numbers; this problem is now known as Hamming's problem, and the numbers so generated are also called the Hamming numbers. Dijkstra's ideas to compute these numbers are the following:
* The sequence of Hamming numbers begins with the number 1.
* The remaining values in the sequence are of the form
,
, and
, where
is any Hamming number.
* Therefore, the sequence
may be generated by outputting the value 1, and then
merging the sequences
,
, and
.
This algorithm is often used to demonstrate the power of a
lazy functional programming language
In computer science, functional programming is a programming paradigm where programs are constructed by applying and composing functions. It is a declarative programming paradigm in which function definitions are trees of expressions that map ...
, because (implicitly) concurrent efficient implementations, using a constant number of arithmetic operations per generated value, are easily constructed as described above. Similarly efficient strict functional or
imperative sequential implementations are also possible whereas explicitly concurrent
generative solutions might be non-trivial.
In the
Python programming language
Python is a high-level, general-purpose programming language. Its design philosophy emphasizes code readability with the use of significant indentation.
Python is dynamically type-checked and garbage-collected. It supports multiple prog ...
, lazy functional code for generating regular numbers is used as one of the built-in tests for correctness of the language's implementation.
A related problem, discussed by , is to list all
-digit sexagesimal numbers in ascending order (see
#Babylonian mathematics above). In algorithmic terms, this is equivalent to generating (in order) the subsequence of the infinite sequence of regular numbers, ranging from
to
.
See for an early description of computer code that generates these numbers out of order and then sorts them; Knuth describes an ad hoc algorithm, which he attributes to , for generating the six-digit numbers more quickly but that does not generalize in a straightforward way to larger values of
. describes an algorithm for computing tables of this type in linear time for arbitrary values of
.
Other applications
show that, when
is a regular number and is divisible by 8, the generating function of an
-dimensional extremal even
unimodular lattice
In geometry and mathematical group theory, a unimodular lattice is an integral Lattice (group), lattice of Lattice (group)#Dividing space according to a lattice, determinant 1 or −1. For a lattice in ''n''-dimensional Euclidea ...
is an
th power of a polynomial.
As with other classes of
smooth number
In number theory, an ''n''-smooth (or ''n''-friable) number is an integer whose prime factors are all less than or equal to ''n''. For example, a 7-smooth number is a number in which every prime factor is at most 7. Therefore, 49 = 72 and 15750 = 2 ...
s, regular numbers are important as problem sizes in computer programs for performing the
fast Fourier transform
A fast Fourier transform (FFT) is an algorithm that computes the discrete Fourier transform (DFT) of a sequence, or its inverse (IDFT). A Fourier transform converts a signal from its original domain (often time or space) to a representation in ...
, a technique for analyzing the dominant frequencies of signals in
time-varying data. For instance, the method of requires that the transform length be a regular number.
Book VIII of
Plato
Plato ( ; Greek language, Greek: , ; born BC, died 348/347 BC) was an ancient Greek philosopher of the Classical Greece, Classical period who is considered a foundational thinker in Western philosophy and an innovator of the writte ...
's ''
Republic
A republic, based on the Latin phrase ''res publica'' ('public affair' or 'people's affair'), is a State (polity), state in which Power (social and political), political power rests with the public (people), typically through their Representat ...
'' involves an allegory of marriage centered on the highly regular number 60
4 = 12,960,000 and its divisors (see
Plato's number). Later scholars have invoked both Babylonian mathematics and music theory in an attempt to explain this passage.
[; .]
Certain species of
bamboo
Bamboos are a diverse group of mostly evergreen perennial plant, perennial flowering plants making up the subfamily (biology), subfamily Bambusoideae of the grass family Poaceae. Giant bamboos are the largest members of the grass family, in th ...
release large numbers of seeds in synchrony (a process called
masting
Mast is the fruit of forest trees and shrubs, such as acorns and other nuts. The term derives from the Old English ''mæst'', meaning the nuts of forest trees that have accumulated on the ground, especially those used historically for fattening do ...
) at intervals that have been estimated as regular numbers of years, with different intervals for different species, including examples with intervals of 10, 15, 16, 30, 32, 48, 60, and 120 years. It has been hypothesized that the biological mechanism for timing and synchronizing this process lends itself to smooth numbers, and in particular in this case to 5-smooth numbers. Although the estimated masting intervals for some other species of bamboo are not regular numbers of years, this may be explainable as measurement error.
Notes
References
*.
*.
*.
*.
*.
*.
*.
*
*.
*.
*, page 375.
*.
*.
*.
*.
*}.
*.
*
*. A correction appears i
''CACM'' 19(2), 1976 stating that the tablet does not contain all 231 of the numbers of interest. The article (corrected) with a brief addendum appears i
''Selected Papers on Computer Science'', CSLI Lecture Notes 59, Cambridge Univ. Press, 1996, pp. 185–203 but without the Appendix that was included in the original paper.
*
*.
*.
*.
*.
*.
*
*.
*.
*
*
*.
External links
from the web site of Professor David E. Joyce, Clark University.
RosettaCodeGeneration of Hamming_numbers in ~ 50 programming languages
{{Classes of natural numbers
Babylonian mathematics
Integer sequences
Functional programming
Mathematics of music