Arithmetic
Arithmetic is the branch of mathematics that studies numbers and the basic ways of combining them: addition, subtraction, multiplication, and division.[1] It also covers powers, which are repeated multiplication, and roots, which undo powers.[1] The name comes from the Greek arithmos, meaning "number".[1]
Arithmetic runs from counting objects to written methods for large numbers. It also covers fractions, which count equal parts of a whole, and decimals, which are numbers written with a decimal point, such as 0.5.[2][3] The school-level part is often called elementary arithmetic.
Deeper questions about whole numbers, meaning zero and 1, 2, 3, and so on, belong to number theory, which is sometimes called higher arithmetic.[1][4] One example is which numbers are prime, meaning greater than 1 and divisible only by 1 and themselves.[5]
Kinds of numbers
Arithmetic starts with counting. Counting the objects in a collection gives the natural numbers 1, 2, 3, and so on.[1]
Counting an empty collection gives 0.[1] Some authors count 0 as a natural number and others do not.[1][6]
Each larger set of numbers fills a gap in the one before.
- In the natural numbers, has no answer. The integers add the negative numbers, starting with the solution of , which is .[1]
- A rational number is the result of dividing one integer by another, where the divisor is not zero. It is written with . Every integer is rational, since it can be written over 1.[7]
- In the rational numbers you can divide by any number except zero. In the integers you cannot, since is not an integer.[8]
- The real numbers add the irrational numbers, such as and , which are not quotients of integers. The diagonal of a square with side 1 has length , and no fraction of the side measures it exactly.[9]
| Number set | Examples | What it adds |
|---|---|---|
| Natural numbers | 1, 2, 3 | Counting |
| Integers | , , 0, 1, 2 | Subtraction always has an answer |
| Rational numbers | , , 5 | Division by any number except 0 |
| Real numbers | , | Lengths that no fraction gives exactly |
The four basic operations
Addition and subtraction
Addition combines collections. If one collection has objects and another has , together they have objects, called the sum. Each number being added is a summand.[1]
Subtraction undoes addition. The difference is the number that solves .[1] Among the natural numbers such an may not exist, which is why the integers were needed.[1]
Multiplication
For whole numbers, multiplication is repeated addition. The product means .[1] Here 5, the multiplicand, is the number being repeated, and 3, the multiplier, tells how many times to repeat it.[1]
The order of the factors can be switched. Three rows of five dots can also be read as five rows of three dots, so .[1] Because switching the order of the factors does not change the product, multiplication is called commutative.[1]
Division
Division undoes multiplication. The dividend is the number being divided, and the divisor is the number you divide by.[1] The result is the quotient, and with whole numbers there may also be a remainder, which is the amount left over.[1]
For example, gives quotient 3 and remainder 2, because .
Division by zero is undefined. Any number times 0 is 0, so no number times 0 gives 4, and has no answer.[10] Zero divided by any number other than zero is 0.[10]
Powers and roots
For a whole-number exponent, a power is repeated multiplication. A product of equal factors is written .[1] The base is the repeated factor, and the exponent tells how many times it appears.[1]
For example, . Powers with other kinds of exponents are treated under exponentiation.
Two rules for powers follow from counting factors:
Here is any real number and and are whole numbers.[11] For example, .
Roots undo powers. A square root of a number is a number that, multiplied by itself, gives the original number.[12]
Both 3 and are square roots of 9.[12] Cube roots and higher roots are covered under nth roots.
Laws of arithmetic
A few laws hold for all real numbers , , and . They let you reorder and regroup a calculation without changing its answer.[10]
The commutative law lets you switch the order of two numbers in a sum or product. The associative law lets you change how three numbers in a sum or product are grouped, without changing the answer.[1]
| Law | For addition | For multiplication |
|---|---|---|
| Commutative | ||
| Associative | ||
| Identity | ||
| Inverse | , if |
The distributive law links the two operations:[10]
Dot pictures show why these laws hold. Splitting 15 dots into a block of and a block of shows that .[1]
Not every kind of mathematical object obeys the commutative law. Much of modern physics depends on objects that do not commute.[1]
Order of operations
When an expression mixes operations, the order of operations says which to do first.[13] The usual order is:
- Parentheses, working from the innermost pair outward.
- Exponents.
- Multiplication and division, from left to right.
- Addition and subtraction, from left to right.[14]
Multiplication and division have equal rank, and so do addition and subtraction.[14] In the United States the order is often remembered as PEMDAS, for parentheses, exponents, multiplication, division, addition, and subtraction.[15] For example, .[14]
Calculating with digits
Place value
In place-value notation, the value of a digit depends on its position. The decimal system uses the ten digits 0 to 9, and each place stands for a power of ten.[3]
The decimal system and its methods for calculating have been the basis of Western trade and science since they reached the West in the 12th century.[3]
Column addition and carrying
Place value lets you add large numbers one column at a time. When a column's sum is more than 9, the extra ten moves to the next column on the left as a carry.[16] To add :
- Ones: . Write 4 and carry 1 to the tens.
- Tens: . Write 3 and carry 1 to the hundreds.
- Hundreds: . Write 8.
The sum is 834.
Multiplying by parts
The distributive law splits a product into easy parts.[10] For example, . Written methods for large products are covered under multiplication algorithms, and the matching method for quotients is long division.
Fractions and decimals
Fractions
A fraction counts parts of size . The denominator sets the size of the parts and the numerator counts them. A positive fraction is proper if and improper otherwise.[2]
The rules for fractions follow from this definition. All denominators must be nonzero.[2]
- To add or subtract fractions with the same denominator, add or subtract the numerators and keep the denominator.
- To add fractions with different denominators, first rewrite them over a common denominator, usually the least common multiple of the two denominators.
- To multiply, multiply the numerators and the denominators separately.
- To divide, flip the second fraction and multiply.
For division, the second fraction must be nonzero, so .[2] For example, , and .[8]
Decimals
Every rational number has a decimal form that either ends or repeats forever.[7] Irrational numbers do neither.[9]
- Repeating decimals. A block of digits repeats without end. For example, , where the bar marks the repeating block.[7]
- Terminating decimals. A fraction is in lowest terms when its numerator and denominator have no common factor greater than 1.[2][17] Such a fraction has a decimal that ends exactly when its denominator has no prime factors other than 2 and 5, so ends but does not.[18]
- Irrational decimals. Numbers such as have endless decimals with no repeating block.[9] In practice they are rounded to as many digits as a task needs.
Divisibility and prime numbers
Divisors and primes
Three basic terms describe how positive integers divide one another.
- Divisors and multiples. If positive integers satisfy , then and are divisors, or factors, of , and is a multiple of each.[17]
- Prime numbers. A prime number is a positive integer greater than 1 whose only divisors are 1 and itself, such as 2, 3, 5, 7, and 11.[5]
- Composite numbers. A number that is a product of two integers each greater than 1 is called composite.[17]
Euclid proved in his Elements (about 300 BC) that there are infinitely many primes.[17]
The fundamental theorem of arithmetic
The fundamental theorem of arithmetic says that every integer greater than 1 can be written as a product of primes in exactly one way, apart from the order of the factors.[19] For example, , and no other set of primes gives 360.
Carl Friedrich Gauss proved the theorem in his Disquisitiones Arithmeticae (1801).[20] It follows closely from Euclid's result that a prime dividing a product must divide one of the factors, so it is sometimes credited to Euclid.[17]
Division with remainder
Division with remainder works for all integers. For integers and with , there are unique integers and such that:[8]
Here is the quotient and is the remainder.
The Euclidean algorithm
The greatest common divisor (GCD) of two numbers is the largest number that divides both. The Euclidean algorithm finds it without factoring either number.[17]
It works because the GCD of and equals the GCD of and the remainder .[17] For 544 and 119:
The last remainder before zero is 17, so the GCD of 544 and 119 is 17.[17]
Modular arithmetic
Counting in a loop
Modular arithmetic counts in a loop that returns to zero each time it reaches a whole number greater than 1, called the modulus. A 24-hour clock is an example with .[21]
The only numbers are . A sum is reduced by subtracting until it falls in that range.[21]
Congruence
Leonhard Euler introduced the idea of congruence about 1750. Two integers are congruent modulo when their difference is divisible by .[21]
Gauss's notation
In 1801 Gauss introduced the notation still used today.[21] For example, , where is read "is congruent to".[21]
Arithmetic on computers
Integers
Computers often store an integer in a fixed number of binary digits, called bits.[22]
Not every system uses a fixed size. In Python, integers have an unlimited range, limited only by available memory.[23] Lisp systems also often provide exact integer arithmetic.[22]
The two's complement scheme is often used for integers with bits. It stores a number in the range to as the smallest zero or positive number congruent to it modulo .[22] So two's complement rests on congruence modulo .
Floating point
Real numbers are usually stored in floating-point form, which stores a sign, a fixed number of digits (the significand), and an exponent.[22] Most real numbers cannot be stored exactly this way. Even 0.1 has an endless repeating form in binary, so it falls between two floating-point numbers and equals neither.[22]
Each result must therefore be rounded to fit, and this rounding error is the main feature of floating-point work.[22] The IEEE 754 standard, first issued in 1985, requires that addition, subtraction, multiplication, and division be exactly rounded. Each result must equal the exact answer rounded to the nearest floating-point number.[22]
Rounding means some laws of arithmetic fail. With , , and , the sum gives 1, but gives 0, because adding 1 to is lost to rounding.[22]
IEEE 754 also defines results where pure arithmetic has none. A nonzero number divided by zero gives plus or minus infinity, and gives a special value called NaN, meaning "not a number".[22]
Interval arithmetic
Interval arithmetic tracks rounding error directly. Each result is an interval whose lower end is rounded down and whose upper end is rounded up, so the exact answer is guaranteed to lie inside.[22] The wider field of methods used by machines is computer arithmetic.
Formal foundations
The Peano axioms
In 1889 Giuseppe Peano published five axioms meant to give the natural numbers a precise foundation.[24][6] They use the successor of a number, meaning the next natural number, . In the form that starts from zero, they are:[6]
- Zero is a natural number.
- Every natural number has a successor that is a natural number.
- Zero is not the successor of any natural number.
- If two natural numbers have the same successor, they are the same number.
- If a set contains zero and the successor of every number in it, then it contains all natural numbers.
The fifth axiom is the principle of induction. It proves a property for infinitely many numbers at once. If zero has the property, and each number that has it passes it to its successor, then every natural number has it.[6]
Fractions as pairs
Fractions can also be built from integers alone. In 1910 Ernst Steinitz treated positive rational numbers as pairs of positive integers, with meaning .[2] Sums and products are defined by:
The basic laws of arithmetic hold for these pairs. The pair behaves exactly like the fraction , and pairs of the form behave like the integer .[2]
Limits of formal arithmetic
Formal systems
A formal system is a set of axioms and rules of proof. It is consistent if it never proves a contradiction.[25]
A theory is complete if every statement in it can be proved or disproved. It is decidable if an algorithm can settle any statement.[25]
Gödel's incompleteness theorem
In 1931 Kurt Gödel published his first incompleteness theorem.[26]
In the strengthened form due to J. Barkley Rosser (1936), the theorem says that any consistent formal system that can carry out a certain amount of elementary arithmetic is incomplete. Such a system contains statements it can neither prove nor disprove.[25]
Weaker systems
Weaker systems can escape this limit. Two theories are both complete and decidable:[25]
- Presburger arithmetic, the theory of natural numbers with addition but no multiplication (Presburger, 1929).
- Skolem arithmetic, the theory of multiplication of positive integers (Skolem, 1930).
History
Ancient calculation
The Babylonians took base 60 (sexagesimal) from the Sumerians and turned it into a place-value system that used just two symbols, one for units and one for tens.[18] Early on, the system had no symbol for an empty place, so 1 and 60 were written the same way.[18]
Later Babylonians added a symbol for an empty place.[18] Scribes used many tables for multiplication and division.[27][28] They divided by looking up a reciprocal, the number that multiplies the given number to make 1, and then multiplying.[28][29]
The Egyptian Rhind Mathematical Papyrus holds more than 80 problems. The British Museum dates it to around 1500 BC and notes that the scribe Ahmose copied it from an older original.[30]
Egyptians multiplied by repeated doubling and adding.[27]
Egyptians wrote fractions as sums of unit fractions . These are now called Egyptian fractions.[27][31]
In ancient Greece, "arithmetic" meant the study of the properties of numbers. Practical calculation was a separate subject called logistics.[27] Greek mathematicians counted only the natural numbers as numbers and treated a fraction as a ratio of natural numbers.[27] A ratio is a comparison of two numbers, often written as a fraction.[32]
Chinese mathematicians worked with fractions and negative numbers by the 2nd century AD.[27]
India
The decimal place-value system came from India.[27]
In 628 Brahmagupta wrote the Brāhmasphuṭasiddhānta, a book that gave rules for arithmetic with zero and negative numbers.[33]
Brahmagupta also tried to define division by zero. He said that zero divided by zero is zero, which is wrong.[33]
The first record of an Indian zero that is dated and accepted by all as real is a carved stone text from Gwalior, from 876.[34]
The Islamic world
In the 9th century al-Khwarizmi wrote a book on the Hindu place-value numerals.[35]
Its Arabic text is lost. Its Latin title, Algoritmi de numero Indorum, gave English the word "algorithm".[35][36]
In the 12th century, Latin versions of this book introduced the Hindu-Arabic numerals and their arithmetic to the West.[35][36]
Europe
Key European developments, in order:
- Middle Ages. The abacus was widely used.[27] Arithmetic was one of the four subjects of the quadrivium, the medieval group of arithmetic, geometry, music, and astronomy.[4][37]
- Fibonacci's Liber abaci was widely copied and spread the Hindu-Arabic decimal system and its numerals through Europe.[38]
- Simon Stevin published the first detailed elementary account of decimal fractions. He did not invent decimals, which Arab and Chinese mathematicians had used long before, but he brought them into use in European mathematics.[39]
- 1642 to 1644. Blaise Pascal built the Pascaline, a machine that could add and subtract, to help his father with tax work.[40]
- 19th and 20th centuries. The focus shifted to foundations. Gauss's number theory, Peano's axioms, and Gödel's limits are described above.
References
- Arithmetic, Encyclopaedia Britannica.
- Arithmetic: Rational numbers, Encyclopaedia Britannica.
- Decimal system, Encyclopaedia Britannica.
- Arithmetic, Wolfram MathWorld.
- Prime, Encyclopaedia Britannica.
- Peano axioms, Encyclopaedia Britannica.
- Rational number, Encyclopaedia Britannica.
- The Division Algorithm in the Integers and in Polynomial Rings, Keith Conrad, University of Connecticut.
- Irrational number, Encyclopaedia Britannica.
- 7.4 Properties of Identity, Inverses, and Zero, Prealgebra 2e, OpenStax, 2020.
- 10.2 Use Multiplication Properties of Exponents, Prealgebra 2e, OpenStax, 2020.
- Square root, Encyclopaedia Britannica.
- Precedence, Wolfram MathWorld.
- 2.1 Use the Language of Algebra, Prealgebra 2e, OpenStax, 2020.
- PEMDAS, Wolfram MathWorld.
- Carry, Wolfram MathWorld.
- Arithmetic: Theory of divisors, Encyclopaedia Britannica.
- Babylonian numerals, MacTutor History of Mathematics, University of St Andrews.
- Fundamental Theorem of Arithmetic, Wolfram MathWorld.
- Fundamental theorem of arithmetic, Encyclopaedia Britannica.
- Modular arithmetic, Encyclopaedia Britannica.
- What Every Computer Scientist Should Know About Floating-Point Arithmetic, David Goldberg, ACM Computing Surveys, 1991.
- Data model: Integers (int), The Python Language Reference, Python Software Foundation.
- Giuseppe Peano, MacTutor History of Mathematics, University of St Andrews.
- Gödel's Incompleteness Theorems, Stanford Encyclopedia of Philosophy.
- Gödel's first incompleteness theorem, Encyclopaedia Britannica.
- Arithmetic, Encyclopedia of Mathematics, EMS Press.
- An overview of Babylonian mathematics, MacTutor History of Mathematics, University of St Andrews.
- Reciprocal, Wolfram MathWorld.
- Ancient Egyptian maths problems revealed, British Museum.
- Mathematics in Egyptian Papyri, MacTutor History of Mathematics, University of St Andrews.
- 5.4 Ratios and Proportions, Contemporary Mathematics, OpenStax.
- Brahmagupta, MacTutor History of Mathematics, University of St Andrews.
- A history of Zero, MacTutor History of Mathematics, University of St Andrews.
- Al-Khwarizmi, MacTutor History of Mathematics, University of St Andrews.
- Al-Khwarizmi, Encyclopaedia Britannica.
- Liberal arts, Encyclopaedia Britannica.
- Fibonacci, MacTutor History of Mathematics, University of St Andrews.
- Simon Stevin, MacTutor History of Mathematics, University of St Andrews.
- Pascaline, Encyclopaedia Britannica.
