In mathematics, the natural numbers are the numbers 0, 1, 2, 3, and so on, possibly excluding 0.[a][1] The terms positive integers, non-negative integers, whole numbers, and counting numbers are also used.[2][3] The set of the natural numbers is commonly denoted by a bold N or a blackboard bold .
The natural numbers are used for counting, and for labeling the result of a count, such as: "there are seven days in a week", in which case they are called cardinal numbers. They are also used to label places in an ordered series, such as: "the third day of the month", in which case they are called ordinal numbers. Natural numbers can also be used to label, like the jersey numbers of a sports team; in this case, they have no specific mathematical properties and are called nominal numbers.[4]
Natural numbers can be compared by magnitude, with larger numbers coming after smaller ones in the list 1, 2, 3, .... Two basic arithmetical operations are defined on natural numbers: addition and multiplication. However, the inverse operations, subtraction and division, only sometimes give natural-number results: subtracting a larger natural number from a smaller one results in a negative number and dividing one natural number by another commonly leaves a remainder.
The most common number systems used throughout mathematics – the integers, rational numbers, real numbers, and complex numbers – contain the natural numbers, and can be formally defined in terms of natural numbers.[5][6]
Arithmetic is the study of the ways to perform basic operations on these number systems. Number theory is the study of the properties of these operations and their generalizations. Much of combinatorics involves counting mathematical objects, patterns and structures that are defined using natural numbers.
The term natural numbers has two common definitions: either 0, 1, 2, ... or 1, 2, 3, .... Because there is no universal convention, the definition can be chosen to suit the context of use.[1][7] To eliminate ambiguity, the sequences 1, 2, 3, ... and 0, 1, 2, ... are often called the positive integers and the non-negative integers, respectively.
The phrase whole numbers is frequently used for the natural numbers that include 0, although it may also mean all integers, positive and negative.[8][2] In primary education, counting numbers usually refer to the natural numbers starting at 1,[3] though this definition can vary.[9][10]
The set of all natural numbers is typically denoted N or in blackboard bold as [7][11][b] Whether 0 is included is often determined by the context but may also be specified by using or (the set of all integers) with a subscript or superscript. Examples include ,[13] or [14] (for the set starting at 1) and [15] or [16] (for the set including 0).
An intuitive and implicit understanding of natural numbers is developed naturally through using numbers for counting, ordering and basic arithmetic.[17] Within this are two closely related aspects of what a natural number is: the size of a collection;[18] and a position in a sequence.
Natural numbers can be used to answer questions like: "how many apples are on the table?".[19] A natural number used in this way describes a characteristic of a collection of objects. This characteristic, the size of a collection is called cardinality and a natural number used to describe or measure it is called a cardinal number.
Two collections have the same size or cardinality if they have a one-to-one correspondence, meaning the objects can be arranged in pairs (one from each collection), with every object in exactly one pair. For example, in the adjacent image every apple is paired with exactly one orange and every orange is paired with exactly one apple. From this, even without counting or using numbers it can be seen that the group of apples has the same cardinality as the group of oranges,[20] meaning they are both assigned the same cardinal number. Specifically, the natural number 3 is the cardinal number of both, and of any other collection that could be paired off in the same way to either of them.
If two collections do not have the same cardinality, pairing will leave one of the collections with objects that are unpaired and this can be used to define a size relationship between them. The collection in which all objects are paired is said to be "smaller" and the one left with unpaired objects "larger", than the other.
Taken together the natural numbers form an infinite sequence, meaning they have a fixed order, specific starting point and no end point, which is the familiar sequence beginning with 1, 2, 3, and so on indefinitely. A natural number can be used to denote a specific position in any other sequence, in which case it is called an ordinal number.[21] To have a specific position in a sequence means to come either before or after every other position in the sequence in a defined way, which is the concept of order.
The natural number 3 then is the thing that comes after 2 and 1, and before 4, 5 and so on. The number 2 is the thing that comes after 1, and 1 is the first element in the sequence. Each number represents the relation that position bears to the rest of the infinite sequence.[22]
Natural numbers are used for counting and the four basic operations of arithmetic: addition; subtraction; multiplication; and division.
Counting is the process of iterating through a sequence of natural numbers in order starting at 1. It can be performed using numbers alone (as in "counting to 10"), or by applying the count to objects (as in "counting the students in the class").
When applied to a collection of objects, counting determines the cardinality of the collection by establishing a one-to-one correspondence between the objects and the natural numbers.[23] This involves consecutively "tagging" each object with a number while maintaining a running partition of the tagged objects from those not yet tagged.[24] The numbers must be assigned in order starting at 1 (hence they are ordinal numbers) but the order of the objects chosen is arbitrary as long as each object receives one and only one number. The cardinality principle is the understanding that the ordinal number assigned to the final object gives the result of the count, which is the cardinal number of the collection.[25]
Formal definitions take the existing, intuitive notion of natural numbers together with the rules of arithmetic and define them both in the more fundamental terms of mathematical logic. Formal systems typically assume that the defining characteristic of natural numbers is their fixed order[26][27] and establish this order using the primitive notion of a successor. Every natural number has a successor, which is another unique natural number that it is followed by.
Two standard formal definitions are based on the Peano axioms and set theory. The Peano axioms (named for Giuseppe Peano) do not explicitly define what the natural numbers are, but instead comprise a list of statements or axioms that must be true of natural numbers, however they are defined. In contrast, set theory defines each natural number as a particular set, in which a set can be generally understood as a collection of distinct objects or elements. While the two methods are different, they are consistent in that the natural number sets collectively satisfy the Peano axioms.
The five Peano axioms are:[28][c]
These are not the original axioms published by Peano, but are named in his honor. Some forms of the Peano axioms have 1 in place of 0. In ordinary arithmetic, the successor of is .
In set theory each natural number n is defined as a specific set. A variety of constructions have been proposed, however the standard solution (due to John von Neumann)[29] is:
This produces an iterative definition of the natural numbers called the von Neumann ordinals:
In this construction every natural number n is a set containing n elements, where each element is a natural number less than n. From this, the intuitive concepts of cardinality and order can be formally defined as:
Another construction sometimes called Zermelo ordinals[30] defines 0 = { } and S(a) = {a} and is now largely only of historical interest.
This section uses the convention that 0 is a natural number: .
Given the set of natural numbers and the successor function sending each natural number to the next one, addition () is defined by:
In the statements above, (1) explicitly defines addition for the first natural number and (2) gives a recursive definition for each subsequent number in terms of previous definitions, as illustrated below.
In this way, addition can be seen as repeated application of the successor function. Intuitively, a + b is evaluated by applying the successor function to a as many times as it must be applied to 0 to produce b.
The algebraic structure is a commutative monoid with identity element 0. It is a free monoid on one generator. This commutative monoid satisfies the cancellation property, so it can be embedded in a group. The smallest group containing the natural numbers is the integers.
Analogously, given that addition has been defined, a multiplication operator can be defined via a × 0 = 0 and a × S(b) = (a × b) + a. This turns into a free commutative monoid with identity element 1; a generator set for this monoid is the set of prime numbers.
Addition and multiplication are compatible, which is expressed in the distribution law: a × (b + c) = (a × b) + (a × c). These properties of addition and multiplication make the natural numbers an instance of a commutative semiring. Semirings are an algebraic generalization of the natural numbers where multiplication is not necessarily commutative. The lack of additive inverses, which is equivalent to the fact that is not closed under subtraction (that is, subtracting one natural from another does not always result in another natural), means that is not a ring; instead it is a semiring (also known as a rig).
If the natural numbers are taken as "excluding 0", and "starting at 1", the definitions of + and × are as above, except that they begin with a + 1 = S(a) and a × 1 = a. Furthermore, has no identity element.
A total order on the natural numbers is defined by letting a ≤ b if and only if there exists another natural number c where a + c = b. This order is compatible with the arithmetical operations in the following sense: if a, b and c are natural numbers and a ≤ b, then a + c ≤ b + c and a × c ≤ b × c.
An important property of the natural numbers is that they are well-ordered: every non-empty set of natural numbers has a least element. The rank among well-ordered sets is expressed by an ordinal number; for the natural numbers, this is denoted as ω (omega).
While it is in general not possible to divide one natural number by another and get a natural number as result, the procedure of division with remainder or Euclidean division is available as a substitute: for any two natural numbers a and b with b ≠ 0 there are natural numbers q and r such that
The number q is called the quotient and r is called the remainder of the division of a by b. The numbers q and r are uniquely determined by a and b. This Euclidean division is key to the several other properties (divisibility), algorithms (such as the Euclidean algorithm), and ideas in number theory.
The addition (+) and multiplication (×) operations on natural numbers as defined above have several algebraic properties:
For most of history, what are now called natural numbers were simply numbers. Between the late middle ages and end of the 17th century, the concept of number expanded to include negative, rational and irrational numbers, becoming what we now call the real numbers.[34] With this came the need to distinguish between the original numbers and these new types.[35]
Nicolas Chuquet used the term progression naturelle (natural progression) in 1484.[36] The earliest known use of "natural number" as a complete English phrase is in 1763.[37][38] The 1771 Encyclopaedia Britannica defines natural numbers in the logarithm article.[38]
In 19th century Europe, there was mathematical and philosophical discussion about the exact nature of the natural numbers. Henri Poincaré stated that axioms can only be demonstrated in their finite application, and concluded that it is "the power of the mind" which allows conceiving of the indefinite repetition of the same act.[39] Leopold Kronecker summarized his belief as "God made the integers, all else is the work of man".[d]
The constructivists saw a need to improve upon the logical rigor in the foundations of mathematics.[e] In the 1860s, Hermann Grassmann suggested a recursive definition for natural numbers, thus stating they were not really natural—but a consequence of definitions. Later, two classes of such formal definitions emerged, using set theory and Peano's axioms respectively. Later still, they were shown to be equivalent in most practical applications.
Set-theoretical definitions of natural numbers were initiated by Frege. He initially defined a natural number as the class of all sets that are in one-to-one correspondence with a particular set. However, this definition turned out to lead to paradoxes, including Russell's paradox. To avoid such paradoxes, the formalism was modified so that a natural number is defined as a particular set, and any set that can be put into one-to-one correspondence with that set is said to have that number of elements.[42]
In 1881, Charles Sanders Peirce provided the first axiomatization of natural-number arithmetic.[43][44] In 1888, Richard Dedekind proposed another axiomatization of natural-number arithmetic,[45] and in 1889, Peano published a simplified version of Dedekind's axioms in his book The principles of arithmetic presented by a new method (Latin: Arithmetices principia, nova methodo exposita). This approach is now called Peano arithmetic. It is based on an axiomatization of the properties of ordinal numbers: each natural number has a successor and every non-zero natural number has a unique predecessor. Peano arithmetic is equiconsistent with several weak systems of set theory. One such system is ZFC with the axiom of infinity replaced by its negation.[46] Theorems that can be proved in ZFC but cannot be proved using the Peano Axioms include Goodstein's theorem.[47]
Starting at 0 or 1 has long been a matter of definition. In 1727, Bernard Le Bovier de Fontenelle wrote that his notions of distance and element led to defining the natural numbers as including or excluding 0.[48] In 1889, Giuseppe Peano used N for the positive integers and started at 1,[49] but he later changed to using N0 and N1.[50] Historically, most definitions have excluded 0,[38][51][52] but many mathematicians such as George A. Wentworth, Bertrand Russell, Nicolas Bourbaki, Paul Halmos, Stephen Cole Kleene, and John Horton Conway have preferred to include 0.[53][38] This approach gained wider adoption in the 1960s[38] and was formalized in ISO 31-11 (1978), which defines natural numbers to include zero, a convention retained in the current ISO 80000-2 standard.[54]
The most common number systems used throughout mathematics are extensions of the natural numbers, in the sense that each of them contains a subset which has the same arithmetical structure. These number systems can also be formally defined in terms of natural numbers (though they need not be[f]). If the difference of every two natural numbers is considered to be a number, the result is the integers, which include zero and negative numbers. If the quotient of every two integers is considered to be a number, the result is the rational numbers, including fractions. If every infinite decimal is considered to be a number, the result is the real numbers. If every solution of a polynomial equation is considered to be a number, the result is the complex numbers.
Other generalizations of natural numbers are discussed in Number § Extensions of the concept.
Counting numbers (also called natural numbers): The set of numbers beginning 1, 2, 3, 4, ... and going on infinitely.
A counting number is the number given in answer to the question "How many?" In this class of numbers belongs zero and positive integers/
...the set of natural numbers is closed under addition... set of natural numbers is closed under multiplication
Addition of natural numbers is associative.