दुर्गा बेरागी Durga Beragi, homeEnter the study →

Library › Mathematics

Disquisitiones Arithmeticae

Carl Friedrich Gauss, translated by Arthur A. Clarke · 1801 · Yale University Press

Number theory made a science. Gauss was twenty-four.

About the book

Carl Friedrich Gauss published Disquisitiones Arithmeticae in Latin in 1801, when he was twenty-four. It turned the scattered results of number theory into a systematic science. The book has seven sections: congruences in general; congruences of the first degree; residues of powers; congruences of the second degree, including the law of quadratic reciprocity; binary quadratic forms; applications of the earlier results; and the equations that divide the circle. The last section shows which regular polygons can be constructed with straightedge and compass. Arthur A. Clarke's English translation appeared in 1966.

Key ideas

  • Numbers can be studied through their remainders on division. Gauss introduces congruence notation, writing that two numbers are congruent modulo a third, and this simple device organises the whole subject.
  • Every prime modulus has primitive roots, numbers whose powers run through all non-zero remainders. Gauss proves this and uses it to study powers and their residues.
  • The law of quadratic reciprocity links whether one prime is a square modulo another with the reverse question. Gauss gives the first complete proofs, calling it the fundamental theorem.
  • Binary quadratic forms, such as expressions in two variables of the second degree, can be grouped into classes and combined by a law of composition. This treatment is the longest part of the book.
  • A regular polygon with a prime number of sides can be constructed with straightedge and compass if that prime is a Fermat prime. The seventeen-sided polygon is therefore constructible.
  • Number theory deserves the same rigour and system as geometry. Gauss replaces clever tricks with general methods. Much of the later development of algebra grew from the structures he found here.

Why it is on this shelf

Modern number theory starts with this book. Its methods lead to cryptography, coding and much of modern algebra. Reading it shows how a young mind turned a collection of puzzles into a science. It is hard but rewards slow reading.

How to start reading it

Read Sections One and Two on congruences; they are simple. Then read Section Four on quadratic reciprocity. Skip to Section Seven for the construction of the seventeen-gon. Leave Section Five for later.

About this book

Disquisitiones Arithmeticae, which means investigations in arithmetic, is the book with which Carl Friedrich Gauss founded the modern theory of numbers. It was published in Latin in Leipzig in 1801. Gauss was twenty-four when it appeared, and most of it had been written in the preceding five years, while he was a student. The English translation by Arthur A. Clarke, published by Yale University Press in 1966, made the whole work available to English readers for the first time, and it is that translation that stands on this shelf.

Arithmetic, in the sense of the title, does not mean the arithmetic taught to children. It means the study of the whole numbers and their properties: which numbers are prime, which can be written as sums of squares, what remainders appear when one number is divided by another, which equations have whole-number solutions. Before Gauss this field was a rich collection of results, many of them due to Fermat, Euler, Lagrange and Legendre, but it was not a unified science. Its theorems were proved by ingenious arguments that often worked for one problem and not for the next. Gauss set out to give it a common language, a common set of methods and a systematic order.

The question the book sets out to answer can be put simply. Can the scattered truths about whole numbers be organised into a single theory, with general methods that explain why the particular results hold? Gauss's answer is yes, and the book is the demonstration. It introduces a notation so natural that it has never been replaced, proves the deepest known theorem of the subject completely for the first time, builds a large theory of quadratic forms, and closes with an application to geometry that surprised everyone: a new regular polygon that can be drawn with straightedge and compass.

The book was written for the mathematicians of Europe, a small community that included Lagrange in Paris and Legendre, who had just published his own treatise on the theory of numbers. It was not written for beginners. Gauss assumed familiarity with the work of Euler and Lagrange and gave few concessions to readers who lacked it. He was also famously sparing in explanation. He removed the scaffolding by which he had reached his results and presented only the finished building. Many readers have found it hard going for that reason, and part of the purpose of this edition is to help with that difficulty.

The book was dedicated to Carl Wilhelm Ferdinand, Duke of Brunswick, who had paid for Gauss's education and supported him as a young man. Its printing was slow, and the volume came out several years after most of it had been written. A further section, on congruences of higher degree, was left out to keep the book within bounds and was found among Gauss's papers after his death.

What kind of book it is

The Disquisitiones is a treatise in numbered articles, grouped into seven sections. Each article states a result or a definition and proves it. Examples appear, often with specific numbers worked out in full, but they serve to confirm and illustrate rather than to teach from scratch. Gauss writes with great economy. A modern reader used to textbooks will find fewer explanations of motive and more statements followed directly by proofs.

It is also a book of computation. Gauss was a tireless calculator, and many of his discoveries began with tables he had compiled by hand: tables of primes, of residues, of quadratic forms and their classes. The book contains some of these tables and refers to the work behind them. A reader who wants to understand it should calculate too. The theory was found by looking hard at numbers, and it is best learned the same way.

How the book was received

The book did not find many readers at once. Its Latin was clear, but its demands were high, and only a handful of mathematicians in Europe could follow it closely. Lagrange admired it. Legendre, whose own treatise covered some of the same ground, had a more complicated relationship with it, since Gauss presented as new several results that Legendre regarded as partly his own. Over the next generation, the circle of serious readers grew slowly, through Dirichlet in Germany, through Jacobi and Eisenstein, and through French and later English mathematicians. By the middle of the nineteenth century the Disquisitiones had become the book that every serious student of numbers was expected to master.

Its slow reception is itself instructive. A book that changes a field often looks, at first, like an unnecessarily difficult version of what people already knew. Only later, once others have absorbed and simplified it, does its originality become clear to everyone. Readers of the other founding books on this shelf, from Descartes's Geometry to Cantor's papers on the transfinite, will recognise the same pattern.

The author

Carl Friedrich Gauss was born in Brunswick, in northern Germany, in 1777, into a poor family. His father worked at various manual trades. Stories of Gauss's precocity are many and some are surely embellished, but there is no doubt that his gift for calculation showed very early and that his teachers noticed. Through them he came to the attention of the Duke of Brunswick, who paid for him to attend the Collegium Carolinum in Brunswick and then the University of Gottingen, from 1795 to 1798.

In 1796, while still a student, Gauss discovered that the regular polygon with seventeen sides can be constructed with straightedge and compass. No new constructible regular polygon with a prime number of sides had been found since the time of Euclid. According to the usual account, this discovery decided him to devote his life to mathematics rather than to languages, which had also attracted him. In the same year he began a short mathematical diary, recording discoveries in brief entries. Its first entry concerns the seventeen-sided polygon. Later entries record his proof of the law of quadratic reciprocity and many other results, some of which he never published.

He took his doctorate in 1799 at the University of Helmstedt with a dissertation proving the fundamental theorem of algebra, the statement that every polynomial equation has a root among the complex numbers. The Disquisitiones followed in 1801. In the same year an Italian astronomer discovered a small planet, Ceres, and lost it again behind the glare of the sun after only a few observations. Gauss developed new methods to compute its orbit from the scanty data, and astronomers found Ceres again close to where he predicted. That success made him famous across Europe and turned much of his attention to astronomy.

From 1807 until his death in 1855 Gauss was director of the observatory at Gottingen and professor there. His later work ranged across astronomy, geodesy, magnetism, optics and pure mathematics. He developed the method of least squares for combining imperfect observations, led a survey of the Kingdom of Hanover, founded the intrinsic geometry of curved surfaces, and with the physicist Wilhelm Weber built an early electric telegraph. Readers who meet the normal distribution in statistics, the Gaussian curvature of a surface or the unit of magnetic field named after him are meeting different faces of the same man.

He never left the theory of numbers behind. In later years he published further proofs of quadratic reciprocity, and in papers on biquadratic residues, that is, on which numbers are fourth powers modulo a prime, he introduced the whole numbers extended by the square root of minus one, now called the Gaussian integers. He showed that these numbers have their own primes and their own unique factorisation, and he used them to state laws that ordinary whole numbers alone could not express. This was one of the first times a mathematician deliberately enlarged the idea of an integer to solve a problem about ordinary integers, a step that Kummer and Dedekind would take much further. The Disquisitiones is thus the beginning of a lifelong line of thought, not an isolated youthful work.

Gauss's manner

Gauss's motto was a Latin phrase meaning few, but ripe. He published only what he regarded as complete and polished. He often sat on discoveries for years, and some he never published at all, so that other mathematicians later found results he had already reached. In the Disquisitiones this habit shows as extreme compression. The proofs are complete, but the reasons for choosing them are not explained. The Norwegian mathematician Niels Henrik Abel compared his style to a fox that erases its tracks with its tail.

For a reader, this means two things. First, every line counts, and skimming does not work. Second, the reader often has to reconstruct the motive behind a construction. Asking why Gauss defines this quantity, or why he chooses this particular step, is part of the work of reading him. The rewards are great, because behind each construction there is usually an idea of permanent value.

The shape of the argument

The book has seven sections, and their order traces a single line of development. It begins with the simplest possible tool, the comparison of numbers by their remainders, and builds on it in stages until it can handle problems of great depth. Each stage uses the ones before it, and the last section draws on almost everything that came earlier.

The first three sections lay the foundations. They introduce congruences, the language of remainders, and develop it through the solution of the simplest congruence equations and the study of powers. By the end of the third section the reader has the main tools of what is now called elementary number theory: the arithmetic of remainders, the theorems of Fermat and Wilson in general form, and the theory of primitive roots, which turns multiplication of remainders into addition of exponents.

The fourth section is the first summit. It treats congruences of the second degree, that is, the question of which numbers are perfect squares when remainders are taken with respect to a given modulus. Its centre is the law of quadratic reciprocity, which Gauss proves completely for the first time. The proof is long and careful, by a kind of induction on the size of the primes involved. It is not the shortest proof known today, but it was the first that worked.

The fifth section is by far the longest. It develops the theory of binary quadratic forms, expressions in two variables with second-degree terms. Gauss studies when two forms are equivalent, how forms fall into classes, and how classes can be combined. In the course of this he finds a second proof of quadratic reciprocity, of an entirely different kind, and he lays down structures that would later be recognised as among the first examples of what is now called a group. This section has a reputation for difficulty, and the reputation is deserved.

The sixth section turns to applications. It shows how the theory can be used for practical tasks: decomposing fractions, understanding the repeating patterns of decimal expansions, and testing whether a large number is prime or finding its factors. The seventh and last section takes a sharp turn into what appears to be geometry. It studies the equation whose roots divide a circle into equal parts and shows, using everything built earlier, which regular polygons can be constructed with straightedge and compass.

The unity of the plan

Seen as a whole, the plan has a striking unity. The language of congruences, introduced at the start, is the medium for everything. Primitive roots, from the third section, reappear in the seventh, where they are the key to dividing the circle. Quadratic residues, from the fourth section, connect to the forms of the fifth through the question of which numbers a form can represent. And the geometric result at the end shows that the arithmetic of remainders reaches beyond whole numbers into the structure of algebraic equations and, through them, into geometry.

The book does not move from easy to hard in a straight line. The fifth section is harder than the seventh, and many readers find the seventh the most enjoyable part. A reader should therefore treat the plan as a map rather than a road to be walked from end to end. The early sections must come first, but after them several paths are possible.

Idea one: congruence, the arithmetic of remainders

The book opens with a definition so simple that its power is easy to miss. Two whole numbers are congruent with respect to a third, called the modulus, if their difference is divisible by the modulus. Equivalently, they leave the same remainder when divided by it. Seventeen and five are congruent with respect to twelve, because both leave a remainder of five, and their difference, twelve, is divisible by twelve. Gauss introduced a three-barred sign for this relation, written much like an equals sign with an extra line, and the notation has been standard ever since.

The everyday example is the clock. A clock with twelve hours does arithmetic modulo twelve. Nine hours after eight o'clock it is five o'clock, because seventeen and five are congruent modulo twelve. Days of the week work modulo seven. The last digit of a number tells us its remainder modulo ten. In each case we ignore everything about the number except where it falls in a repeating cycle.

The decisive point is that congruences behave almost exactly like equations. If two numbers are congruent and two others are congruent, their sums are congruent and so are their products. One can add, subtract and multiply both sides of a congruence just as with an equation. This means that the whole machinery of algebra can be brought to bear on questions about divisibility. Before Gauss, divisibility questions were handled with words and special arguments. After Gauss, they could be handled with calculation.

What congruence changes

An analogy may help. Imagine trying to do geometry without coordinates, describing every point in words. Descartes's coordinates did not add new facts to geometry, but they made a whole range of problems mechanical. Congruence notation did something similar for the theory of numbers. It did not create new truths, but it gave a language in which old truths became easy to state and new ones easy to find.

The idea is sometimes confused with the mere computation of remainders. Anyone can find remainders. What Gauss saw was that the remainders modulo a fixed number form a self-contained world with its own arithmetic, and that this world can be studied for its own sake. Modulo a prime, for example, every non-zero remainder has a reciprocal, so division is always possible. The world of remainders modulo a prime is what later algebra calls a finite field. Modulo a composite number, division sometimes fails. These structural facts, not the individual remainders, are the real subject.

A further point deserves notice. Congruence lets us reason about infinitely many numbers at once by reasoning about finitely many remainders. To show that no perfect square ends in the digit seven, it is enough to square the ten possible last digits and see that none of the results ends in seven. An infinite question becomes a finite check. Much of the power of the book comes from this reduction, applied again and again in more and more subtle forms.

The consequences reach far beyond the book. Every computer stores numbers in a fixed number of binary digits, so its arithmetic is arithmetic modulo a power of two. Check digits on bank account numbers and book numbers are congruence conditions. Modern public-key cryptography depends on calculations modulo very large numbers. A reader in technology meets Gauss's first section every day without knowing it.

Idea two: solving congruences and the power of a prime modulus

Once congruences behave like equations, one can ask how to solve them. The simplest case is a congruence of the first degree: find a number which, multiplied by a given number, leaves a given remainder modulo a given modulus. Gauss shows exactly when such a congruence can be solved and how many solutions it has. The key is the greatest common divisor of the multiplier and the modulus. If they share no common factor, there is always exactly one solution among the remainders. If they share a factor, there may be several solutions or none.

The method of solution goes back to Euclid's algorithm for finding greatest common divisors, which Euclid's Elements gives in its seventh book. Repeated division with remainder, run backwards, produces the needed numbers. This algorithm is so efficient that computers still use it, essentially unchanged, for exactly this purpose. It is one of the oldest algorithms in continuous use.

Gauss then shows how a problem with several conditions on remainders can be combined into one. If a number must leave given remainders modulo several moduli that share no common factors, there is exactly one solution modulo their product. This result is known as the Chinese remainder theorem, because a problem of this kind appears in an early Chinese mathematical text. Indian mathematicians also solved such problems, under the name kuttaka, a word meaning pulverising, for the method of breaking a problem down into smaller ones. Gauss gives the result a clean general form.

Why it matters

The Chinese remainder theorem means that arithmetic modulo a composite number can be split into arithmetic modulo its prime-power factors and then reassembled. This is a recurring move in the book and in mathematics generally: break a problem into independent parts, solve each, and combine. In practice it lets computers speed up arithmetic on very large numbers by working with several small moduli in parallel. In theory it reduces many questions about general moduli to questions about primes, which is why primes dominate the rest of the book.

A common confusion is to think of these early results as mere preliminaries. They are, in fact, the working tools on which every later section depends. A reader who rushes through them will find the later sections opaque. A reader who works them through with actual numbers will find that later arguments, which look forbidding on the page, often reduce to familiar moves.

Idea three: powers, Fermat's theorem and primitive roots

The third section studies what happens when a number is raised to successive powers and the remainders are taken modulo a prime. Write down the powers of two modulo seven: two, four, one, two, four, one, and so on. The pattern repeats. Every number not divisible by the prime has this property: its powers eventually return to one and then cycle. The length of the cycle is called the order of the number.

Fermat had discovered, in the seventeenth century, that for a prime modulus every such number raised to the power one less than the prime leaves a remainder of one. This is now called Fermat's little theorem. Euler proved it and generalised it to composite moduli. Gauss gives a clean account and shows that the order of every number must divide one less than the prime. He also proves a theorem attributed to John Wilson, that the product of all the numbers from one up to one less than a prime leaves a remainder of minus one, and he extends it to composite moduli.

The heart of the section is the theory of primitive roots. A primitive root modulo a prime is a number whose powers run through every non-zero remainder before returning to one. Modulo seven, three is a primitive root: its powers give three, two, six, four, five, one. Gauss proves that every prime has primitive roots. Euler had believed this and offered an argument, but Gauss's proof was the first fully satisfactory one. He also determines exactly which composite moduli have primitive roots.

What a primitive root does

The use of a primitive root is that it turns multiplication into addition. Every non-zero remainder modulo the prime is some power of the primitive root. To multiply two remainders, add their exponents. This is exactly what a logarithm does for ordinary numbers, and Gauss uses the analogy explicitly: the exponent of a remainder with respect to a primitive root is called its index, and tables of indices serve as logarithm tables for modular arithmetic.

This idea is easily mistaken for a computational convenience. It is more than that. It reveals that the non-zero remainders modulo a prime, under multiplication, have the simplest possible structure: they form a single cycle. In later language, the multiplicative group of a finite field is cyclic. That structural fact is what the seventh section uses to divide the circle, and it is also what modern cryptography uses. The Diffie-Hellman method of agreeing on a secret key over a public channel relies on the fact that raising a primitive root to a power is easy, while recovering the power from the result appears to be very hard when the prime is large.

Idea four: quadratic residues

A quadratic residue modulo a prime is a remainder that is a perfect square in modular arithmetic. Modulo seven, the squares of one through six leave remainders one, four, two, two, four, one. So one, two and four are quadratic residues modulo seven, and three, five and six are not. Gauss calls the latter non-residues. The question that drives the fourth section is simple: given a prime and a number, how can we tell whether the number is a square modulo the prime without trying every possibility?

Some facts come quickly. Exactly half of the non-zero remainders modulo an odd prime are residues and half are non-residues. The product of two residues is a residue, the product of a residue and a non-residue is a non-residue, and the product of two non-residues is a residue. This last fact echoes the rule of signs: residues behave like positive numbers, non-residues like negative ones. Euler had found a test using powers, which follows from the theory of primitive roots: a number is a residue exactly when raising it to half of one less than the prime gives a remainder of one.

Gauss works out the answers for the special numbers minus one, two and minus two, and he describes for which primes each of them is a residue. Minus one is a square modulo a prime exactly when the prime leaves a remainder of one on division by four. Two is a square exactly when the prime leaves a remainder of one or seven on division by eight. These are concrete, checkable statements, and a reader should check them on small primes before reading the proofs.

Why this question matters

It may seem odd to devote so much effort to the question of which numbers are squares. The reason is that squares sit at the meeting point of addition and multiplication. Questions about writing numbers as sums of two squares, about solving quadratic equations in whole numbers, and about the behaviour of quadratic forms all come down to questions about quadratic residues. Fermat's theorem that a prime is a sum of two squares exactly when it leaves remainder one on division by four is, at bottom, the statement that minus one is a quadratic residue for such primes. The theory of residues is the key that opens many locked rooms at once.

Idea five: the law of quadratic reciprocity

The law of quadratic reciprocity is the most famous result in the book, and Gauss treated it as the crown of the elementary theory. It concerns two different odd primes, call them p and q. One can ask whether p is a square modulo q, and separately whether q is a square modulo p. On the face of it, these are unrelated questions. The first is about remainders on division by q, the second about remainders on division by p. The law says that they are closely related: the two answers are the same, unless both primes leave a remainder of three on division by four, in which case the answers are opposite.

This is genuinely surprising. There is no obvious reason why the arithmetic of one prime should know anything about another. The law reveals a hidden symmetry in the whole numbers. It also has great practical value. To decide whether a large number is a square modulo a prime, one can flip the question, reduce, flip again, and so on, much as Euclid's algorithm reduces a pair of numbers step by step. Questions that would need enormous trial calculations become a few lines of work.

A small worked illustration

Take the primes five and eleven. Is five a square modulo eleven? The squares of one through ten modulo eleven give one, four, nine, five, three, three, five, nine, four, one. Five appears, since four squared is sixteen, which leaves five. So the answer is yes. Now reverse the question. Is eleven a square modulo five? Eleven leaves remainder one on division by five, and one is certainly a square. So again the answer is yes. The answers agree, as the law predicts, because five leaves remainder one on division by four.

Now take three and seven, both of which leave remainder three on division by four. Is three a square modulo seven? The squares modulo seven are one, two and four, so no. Is seven a square modulo three? Seven leaves remainder one on division by three, and one is a square, so yes. The answers are opposite, again as the law predicts. A reader who works through ten or twelve such pairs by hand will feel the law before seeing any proof, and will understand why it struck Euler, Legendre and Gauss as something that demanded explanation.

Euler had found the law by examining many cases and stated it in several forms. Legendre stated it in the form now usual and attempted a proof, but his argument relied on an assumption about primes in arithmetic progressions that he could not prove. Gauss discovered the law independently as a young man, without knowing of their work, and after a year of effort found a complete proof. He called it the fundamental theorem of this part of the subject, and in his private notes he called it the golden theorem. He returned to it throughout his life and published several different proofs, two of them in this book.

Where reciprocity leads

The law is often confused with the simpler facts about minus one and two, which are sometimes called its supplements. Those concern one prime at a time. Reciprocity proper is about the relation between two primes, and that is what makes it deep.

Gauss himself looked for analogous laws for cubes and fourth powers, and found that to state them he had to work with new kinds of whole numbers, built from the square root of minus one or from a cube root of one. That search, continued by Eisenstein, Kummer and Hilbert, grew into one of the central programmes of modern number theory, culminating in the class field theory of the twentieth century. It continues today in the broad set of conjectures known as the Langlands programme. Quadratic reciprocity is therefore not a closed result but the first glimpse of a structure that mathematicians are still mapping.

Idea six: binary quadratic forms and their equivalence

A binary quadratic form is an expression in two variables in which every term is of the second degree: a number times the square of the first variable, plus a number times the product of the two variables, plus a number times the square of the second variable. The simplest example is the sum of two squares. Fermat, Euler, Lagrange and Legendre had all asked which numbers can be represented by such a form when the variables are whole numbers. Which numbers are sums of two squares? Which are of the form a square plus twice a square, or a square plus three times a square?

Lagrange had made the decisive first step. He noticed that a form can be transformed by a change of variables that is invertible in whole numbers, and that such a change does not alter the set of numbers the form represents. Two forms related by such a change are called equivalent. They are, for the purpose of representing numbers, the same form wearing different clothes. Each form has a discriminant, a number built from its coefficients that stays the same under such changes, rather as the area of a shape stays the same when it is moved.

Gauss takes this up and develops it in great depth. He shows that the forms with a given discriminant fall into finitely many classes of equivalent forms, and he gives methods for choosing a simplest representative from each class, a reduced form, so that the number of classes can be counted. That count is now called the class number. He works out tables of classes for many discriminants and studies how the number of classes varies.

Why equivalence is the right idea

The idea of equivalence is easily mistaken for a technicality. It is in fact the key move of the whole fifth section, and one of the most important moves in mathematics. When a problem involves many objects that differ only in ways that do not matter, the right step is to group them into classes and study the classes instead. Geometry does this with congruent figures, and much of modern mathematics does it everywhere. Gauss's treatment of forms is one of the first places where this strategy is carried through on a large scale with full precision.

The payoff is that questions about representing numbers become questions about classes. A prime can be represented by some form of a given discriminant exactly when the discriminant is a quadratic residue modulo that prime, which ties the fifth section back to the fourth. Which form in particular represents the prime then depends on finer information about classes. In this way the theory of forms explains and generalises the old results of Fermat on sums of two squares and their relatives.

Idea seven: composition, genera and hidden structure

The most original and most difficult part of the fifth section is Gauss's theory of composition. Euler and others had noticed that the product of two numbers each of which is a sum of two squares is again a sum of two squares, and there is an identity that shows how. Similar identities exist for other forms. Gauss saw that this could be raised to a general principle. Given two classes of forms with the same discriminant, there is a natural way to combine them to produce a third class. He called this operation composition.

The definition and the proofs are heavy, and many readers have found these articles the hardest in the book. But the result is remarkable. The classes of forms, under composition, behave like a system of numbers under multiplication. There is a class that acts as one. Every class has an inverse. Combining is associative. In later language, the classes form a finite abelian group, now called the class group. Gauss did not use the word group, which came later, but he worked with the structure in detail.

He also introduced a coarser grouping, the genus. Forms in the same genus represent the same remainders modulo the discriminant, though they may not represent the same numbers. Genera can be distinguished by a finite set of characters, simple tests involving quadratic residues. Gauss showed that the number of genera is tied to the number of prime factors of the discriminant and that exactly half of the possible combinations of characters actually occur. From this theory of genera he drew his second proof of quadratic reciprocity.

Where it leads

Composition of forms is often presented today through a different route. Dedekind, building on Kummer, showed that classes of forms correspond to classes of ideals in rings of algebraic integers, and that composition of forms corresponds to multiplication of ideals. In that setting the operation is much simpler to define. But the structure was first found by Gauss, by direct work with forms, and the later simplification was possible only because he had shown what needed to be explained. In the twenty-first century, the mathematician Manjul Bhargava found new composition laws for other kinds of forms, starting from a fresh look at Gauss's construction.

Gauss also stated conjectures about class numbers that took a long time to settle. He believed, for example, that only a small, definite list of negative discriminants have a single class of forms. That conjecture was proved only in the twentieth century. The fifth section, hard as it is, is therefore not a museum piece. It is a working source of questions.

Idea eight: computation, primes and factoring

The sixth section is the most practical part of the book, and it shows Gauss as a calculator. He applies the theory to several tasks. One is the decomposition of fractions into simpler fractions whose denominators are prime powers, which uses the Chinese remainder theorem. Another is the study of decimal expansions. Why does one-seventh repeat with a period of six digits, while one-thirteenth repeats with a period of six and one-eleventh with a period of two? The answer is the order of ten modulo the denominator, a direct application of the third section.

The most striking part concerns the problem of distinguishing prime numbers from composite ones and of finding the factors of composite numbers. Gauss writes that this problem is among the most important and useful in arithmetic and that the dignity of the science seems to require that every possible means be explored for its solution. He then presents methods based on quadratic residues and quadratic forms. The idea is to gather information about which small numbers are residues modulo the number being tested. That information sharply limits the possible prime factors and allows them to be found far more quickly than by trial division.

Why this matters now

Gauss's remark has become prophetic. The difficulty of factoring large numbers is the basis of the RSA cryptosystem, which for decades secured much of the communication on the internet. Testing whether a number is prime, by contrast, turned out to be much easier than factoring it, and fast primality tests now rest on the theorems of the third and fourth sections. Modern factoring algorithms, such as the quadratic sieve, are direct descendants of the ideas in the sixth section: they search for relations among squares modulo the number to be factored.

This idea is often confused with a simple wish to find big primes. Gauss's point is subtler. The structure of residues and forms gives indirect information about a number's factors without dividing by them. That shift, from direct search to structural inference, is what makes computation in number theory possible on a large scale. A reader interested in technology will find the sixth section one of the most rewarding parts of the book.

Idea nine: dividing the circle

The seventh section is the book's most celebrated surprise. It concerns the equation whose roots are the points that divide a circle into a given number of equal parts. Expressed with complex numbers, these points are the roots of the equation in which a power of the unknown equals one. Gauss studies this equation when the number of parts is a prime. He shows that its roots can be grouped into periods, sums of roots chosen with the help of a primitive root modulo the prime. These periods satisfy equations of lower degree, and by working through them step by step the original equation can be solved.

The structure of the steps depends on the factors of one less than the prime. If one less than the prime is a power of two, then every step involves only a quadratic equation. Quadratic equations can be solved by taking square roots, and square roots can be constructed with straightedge and compass. So for such primes the regular polygon can be constructed. Primes of this kind are three, five, seventeen, two hundred and fifty-seven and sixty-five thousand five hundred and thirty-seven. They are called Fermat primes, because Fermat had considered numbers of this form, one more than two raised to a power of two, and wrongly guessed that they are all prime. The triangle and the pentagon were known to the Greeks. The seventeen-sided polygon was new.

Gauss stated that these are the only primes for which the construction is possible, together with products of distinct Fermat primes and powers of two. He gave the sufficiency argument in full. A complete proof that no other regular polygons can be constructed was published later, in 1837, by Pierre Wantzel.

A contrast makes the rule vivid. For the seven-sided polygon, one less than the prime is six, which has the factor three. Working through the periods then requires solving an equation of the third degree at one stage. A cube root cannot in general be constructed with straightedge and compass, which can only produce lengths obtained by adding, subtracting, multiplying, dividing and taking square roots. So the regular heptagon cannot be constructed exactly, however clever the geometer. The same reasoning rules out the eleven-sided and thirteen-sided polygons. For seventeen, one less than the prime is sixteen, which is two times two times two times two, and so the work splits into four successive quadratic steps, each of which can be carried out with the classical tools.

What the seventh section teaches

The result is often remembered simply as the seventeen-gon, as though its interest were geometrical. Its real interest is in the method. Gauss solved a geometric problem that had been open for two thousand years by translating it into algebra and then using the arithmetic of remainders to understand the structure of the algebra. The cyclic structure of the non-zero remainders modulo a prime, from the third section, is exactly what organises the roots of the equation. The connection between symmetry and solvability that Gauss exploited here was generalised by Galois into the theory that now bears his name, which explains when any equation can be solved by roots.

For the reader, this section is also a reward. After the hard work of the earlier sections, it shows the tools combining to produce something visible. It is a reminder that number theory, which can seem a closed garden, opens onto other parts of mathematics in unexpected places.

Idea ten: number theory as a science

The last idea is the one that gives the book its place in history. Gauss's achievement was not only a set of theorems but a change in what the theory of numbers was. Before him it was admired for its puzzles and its clever proofs. After him it had a language, a set of central problems, and methods that applied across many problems at once. It became a discipline with internal structure, comparable in seriousness to geometry or mechanics.

Several features mark this change. Definitions are given precisely and used consistently. Results are proved in general rather than checked in cases. The subject is organised around a small number of fundamental concepts, such as congruence, order, residue, form and class, rather than around individual problems. And computation is treated as a source of discovery and a test of theory, not as a substitute for proof.

This is easily confused with mere rigour. Gauss was rigorous, but many writers are rigorous without changing their field. What he did was to find the right concepts, the ones in which the results became natural. A comparison with the Elements of Algebra by Euler, on this shelf, makes the point. Euler handles many of the same problems with brilliant technique. Gauss handles them with structure. The difference is the difference between a skilled craftsman and the founder of a school of engineering.

Peter Gustav Lejeune Dirichlet, one of Gauss's most important successors, is said to have kept a copy of the Disquisitiones always near him and to have studied it throughout his life. Dirichlet's lectures on the theory of numbers, edited and supplemented by Dedekind, made Gauss's ideas accessible to later generations and became, in their turn, the source of much of modern algebra. In this sense the Disquisitiones is not only the founding book of number theory but one of the ancestors of abstract algebra as a whole.

The tradition around it

Problems about whole numbers are among the oldest in mathematics. Euclid's Elements, in this bay, contains the algorithm for greatest common divisors, the proof that there are infinitely many primes, and the essence of the fact that every number factors uniquely into primes. Diophantus of Alexandria wrote on finding whole-number and rational solutions to equations. Indian mathematicians, from Aryabhata and Brahmagupta to Bhaskara II, developed the kuttaka for linear indeterminate problems and the chakravala for the equation now named after Pell. The Lilavati of Bhaskara II, on this shelf, gives a taste of that tradition and makes a useful companion to the early sections of Gauss.

The modern European story begins with Pierre de Fermat in the seventeenth century. Fermat stated many results about primes, squares and sums of squares, usually without proof, in letters and in the margins of his copy of Diophantus. In the eighteenth century Euler proved many of Fermat's claims and discovered much more, including the first forms of quadratic reciprocity. His Elements of Algebra, also in this bay, shows his methods for indeterminate problems at an introductory level, and Lagrange's additions to it push those methods further. Lagrange founded the theory of quadratic forms and proved that every whole number is a sum of four squares. Legendre gathered the subject into a treatise and introduced the symbol for quadratic residues that bears his name.

Gauss's book drew all of this together and changed its character. It is fair to say that number theory before 1801 was the work of brilliant individuals, and number theory after 1801 was a discipline.

After Gauss

The nineteenth century built directly on the Disquisitiones. Dirichlet used methods from analysis to prove that every arithmetic progression with no common factor contains infinitely many primes, a result Legendre had needed and Gauss had not proved. Kummer, working on Fermat's Last Theorem, found that unique factorisation fails in certain larger number systems and invented ideal numbers to repair it. Dedekind turned those into the theory of ideals and, in his supplements to Dirichlet's lectures, gave the modern framework for algebraic numbers. His Essays on the Theory of Numbers, in this bay, show the same foundational spirit applied to the real numbers and the natural numbers themselves.

In the twentieth century, Hardy and Wright's Introduction to the Theory of Numbers, also on this shelf, became the standard English route into the subject. It covers congruences, primitive roots, quadratic residues and reciprocity, and much else, with modern proofs, and it is the best book to read beside Gauss. Ramanujan's work, gathered in his Collected Papers, belongs to the analytic side of number theory that grew from Dirichlet and Riemann rather than directly from the Disquisitiones, but it shares the same love of exact numerical pattern. Simon Singh's Fermat's Last Theorem tells the story of how the questions Gauss organised led, through Kummer and through twentieth-century work on elliptic curves and modular forms, to the proof by Andrew Wiles.

Questions and criticisms

The most common complaint about the Disquisitiones is that it is hard to read. The complaint is fair. Gauss gives almost no motivation, removes the routes by which he reached his results, and proves things in ways that are sometimes longer than necessary. His first proof of reciprocity is a complicated induction, and later proofs, including some of his own, are much shorter. A modern reader learning number theory for the first time is better served by a modern textbook. The Disquisitiones is best read second, or alongside a guide.

The fifth section draws particular criticism. Its treatment of composition of forms is laborious, and the definition Gauss uses is hard to work with. Later mathematicians simplified it in several ways: through Dirichlet's united forms, through Dedekind's ideals, and in the twenty-first century through Bhargava's geometric constructions. Few readers today learn composition from Gauss's own articles. Yet the section's results remain correct, and its central insight, that classes of forms carry an algebraic structure, has proved to be one of the most fruitful ideas in mathematics.

A third point is a matter of scope. The book omits analytic methods, those using limits and continuous functions, which became central to number theory soon afterward. Questions about how primes are distributed among the whole numbers, which Gauss himself studied privately through tables and conjectures, do not appear. The book is therefore a picture of algebraic number theory in its first form rather than of the whole subject.

What has held up

What has held up is almost the entire framework. Congruence notation is universal. The concepts of order, primitive root, quadratic residue, reduced form and class number are still basic. Quadratic reciprocity remains the starting point of a vast theory. The seventh section's link between symmetry and solvability fed directly into Galois theory. And the remark about factoring as a central problem has become, through cryptography, one of the most consequential sentences in the history of mathematics. Few books of any kind written in 1801 are still so close to the centre of active work.

Why it is on this shelf

This shelf gathers books that show how a body of knowledge becomes a system: Vedanta organising the inquiry into the self, Jyotish organising the observation of the sky, the sciences, economics and technology. The Disquisitiones belongs here as the clearest example in mathematics of a field being turned from a collection of observations into a science. It shows what that turning requires: the right notation, the right central concepts, and patient proof.

Readers from Indian traditions will find familiar ground. The cyclical arithmetic of remainders is close in spirit to the cyclical reckoning of Jyotish, where positions of the planets and the days of the lunar month are counted modulo fixed cycles. The kuttaka and chakravala methods of Indian mathematics address some of the same problems Gauss treats. Reading Gauss next to the Lilavati shows both what the older traditions achieved and what the new framework added.

For the reader of technology, the book is foundational in a direct way. Modular arithmetic underlies computer arithmetic, error-detecting codes, hashing and public-key cryptography. For the reader of economics and science, it is an example of how to approach a complex field: find the simplest relation that organises the data, prove what can be proved, compute what can be computed, and let the structure emerge. We keep it as a reminder that a young person with a notebook and patience can reshape a field.

How to read it

Do not try to read the Disquisitiones straight through on a first attempt. Read Hardy and Wright's chapters on congruences, primitive roots and quadratic residues first, or a similar modern introduction, so that the ideas are familiar. Then come to Gauss to see the ideas in their original form and to see how he organises them.

Begin with the first two sections, on congruences and on congruences of the first degree. They are short and clear. Work every example with your own numbers; make a table of remainders for a small prime such as eleven or thirteen. Then read the third section, on powers and primitive roots. Find a primitive root for several small primes by hand and build an index table for one of them. This is the most important practical exercise in the whole book.

Next read the fourth section, on quadratic residues and reciprocity. Before reading the proof of reciprocity, test the law on a dozen pairs of small primes. Read the statements of the special cases for minus one and two and check them. Then read the first proof slowly, perhaps over a week, with a pencil, writing out each case. If it becomes overwhelming, read a modern short proof first and return to Gauss's later.

After that, jump to the seventh section and read the construction of the seventeen-sided polygon. This is the most rewarding section for a reader who has come this far. Read the sixth section, on applications, for its ideas about factoring. Leave the fifth section, on quadratic forms, for a second reading. When you return to it, read the parts on equivalence and reduced forms first, and the composition of forms last.

Keep the pace slow. Two or three articles in a sitting is often enough, and a single hard article may need an evening of its own. Keep a notebook in which every definition is rewritten in your own words with a small numerical example beside it. When Gauss refers back to an earlier article, look it up; the cross-references are the skeleton of the book, and following them is the best way to see how the parts depend on one another. A simple calculator or a few lines of code that compute remainders, powers and squares modulo a number will save time and let you test claims on larger cases than hand calculation allows. Treat these checks as part of reading, not as a distraction from it.

What to read next

From this shelf, read Hardy and Wright alongside Gauss throughout. Read Euler's Elements of Algebra for the earlier state of the subject, and Dedekind's essays for the foundational turn that followed. Courant and Robbins's What Is Mathematics? has an excellent chapter on constructions with straightedge and compass that explains the seventeen-gon in an accessible way. Singh's Fermat's Last Theorem shows where the subject went over the next two centuries.

Questions to carry

  • Why did a simple notation for remainders change the theory of numbers so deeply?
  • In what ways does arithmetic modulo a prime differ from arithmetic modulo a composite number?
  • Why must the order of a number modulo a prime divide one less than the prime?
  • What does it mean, structurally, that every prime has a primitive root?
  • How is an index table modulo a prime like a table of logarithms, and where does the analogy fail?
  • Why should the question of whether p is a square modulo q have anything to do with whether q is a square modulo p?
  • What did Gauss gain by grouping quadratic forms into classes rather than studying them one by one?
  • How can a set of classes of forms behave like a system of numbers under multiplication?
  • Why is factoring large numbers hard while testing them for primality is comparatively easy?
  • How does the cyclic structure of remainders explain which regular polygons can be constructed?
  • What is the difference between solving many problems cleverly and founding a science that solves them systematically?
  • Which of Gauss's ideas are now part of everyday technology, and how?
  • What do the Indian methods of kuttaka and chakravala share with Gauss's approach, and what do they lack or add?
  • Why might Gauss have chosen to hide his methods of discovery, and what did readers lose as a result?

Words to know

  • Modulus: the number with respect to which remainders are compared.
  • Congruence: the relation between two numbers that leave the same remainder when divided by the modulus.
  • Residue: a remainder modulo a given number; also any number considered only through its remainder.
  • Greatest common divisor: the largest number dividing two given numbers, found by Euclid's algorithm.
  • Chinese remainder theorem: the result that conditions on remainders modulo numbers with no common factor have exactly one combined solution modulo their product.
  • Kuttaka: the Indian method, meaning pulverising, for solving linear problems in whole numbers by breaking them down step by step.
  • Fermat's little theorem: for a prime modulus, any number not divisible by the prime, raised to one less than the prime, leaves remainder one.
  • Wilson's theorem: the product of all numbers from one to one less than a prime leaves remainder minus one modulo the prime.
  • Order: the smallest power to which a number must be raised to leave remainder one modulo the modulus.
  • Primitive root: a number whose powers run through all non-zero remainders modulo a prime.
  • Index: the exponent to which a primitive root must be raised to give a stated remainder; a modular logarithm.
  • Quadratic residue: a remainder that is a perfect square modulo the modulus.
  • Non-residue: a non-zero remainder that is not a perfect square modulo the modulus.
  • Quadratic reciprocity: the law relating whether one odd prime is a square modulo another to whether the second is a square modulo the first.
  • Binary quadratic form: an expression in two variables in which every term is of the second degree.
  • Discriminant: a number built from the coefficients of a form that stays unchanged under equivalence.
  • Equivalence of forms: the relation between two forms that can be turned into each other by an invertible change of variables in whole numbers.
  • Reduced form: a chosen simplest representative of a class of equivalent forms.
  • Class number: the number of classes of forms with a given discriminant.
  • Composition: Gauss's operation for combining two classes of forms to obtain a third.
  • Genus: a coarser grouping of forms that represent the same remainders modulo the discriminant.
  • Cyclotomy: the study of the equation whose roots divide the circle into equal parts.
  • Fermat prime: a prime that is one more than two raised to a power of two, such as three, five, seventeen, two hundred and fifty-seven and sixty-five thousand five hundred and thirty-seven.
  • Constructible polygon: a regular polygon that can be drawn with straightedge and compass alone.

A note on this edition

This is a study edition written for this shelf in our own words. It describes and comments on the Disquisitiones Arithmeticae but does not reproduce its text, its tables or its proofs. Gauss's Latin original is old, but Arthur A. Clarke's English translation remains in copyright, and the translated book is well worth getting from a library or a bookshop. Read this companion beside it, not in place of it.

Terms from this book with their own page: Congruence, Kuttaka

More from “Mathematics”

The whole section →