All Topics  
Integer

 

   Email Print
   Bookmark   Link






 

Integer



 
 
The integers (from the Latin
Latin

Latin is an Italic language, historically spoken in Latium and Ancient Rome. Through the Military history of the Roman Empire, Latin spread throughout the Mediterranean and a large part of Europe....
 integer, literally "untouched", hence "whole": the word entire comes from the same origin, but via French) are natural numbers including 0 (0
0 (number)

0 is both a number and the numerical digit used to represent that number in numeral system. It plays a central role in mathematics as the additive identity of the integers, real numbers, and many other algebraic structures....
, 1
1 (number)

1 is a number, number names, and the name of the glyph representing that number.It represents a single entity, the unit of counting or measurement....
, 2
2 (number)

2 is a number, numeral, and glyph. It is the natural number following 1 and preceding 3 ....
, 3
3 (number)

----3 is a number, Numeral system, and glyph. It is the natural number following 2 and preceding 4 ....
, ...) and their negative
Negative and non-negative numbers

A negative number is a real number that is inequality 0 , such as -3. A positive number is a real number that is greater than zero, such as 2....
s (0, −1
-1 (number)

In mathematics, −1 is the additive inverse of 1 , that is, the number that when addition to 1 gives 0. It is the negative and non-negative numbers integer greater than negative two and less than 0 ....
, −2, −3, ...). They are numbers that can be written without a fractional or decimal component, and fall within the set . For example, 65, 7, and −756 are integers; 1.6 and 1½ are not integers.






Discussion
Ask a question about 'Integer'
Start a new discussion about 'Integer'
Answer questions from other users
Full Discussion Forum



Recent Posts









Encyclopedia


The integers (from the Latin
Latin

Latin is an Italic language, historically spoken in Latium and Ancient Rome. Through the Military history of the Roman Empire, Latin spread throughout the Mediterranean and a large part of Europe....
 integer, literally "untouched", hence "whole": the word entire comes from the same origin, but via French) are natural numbers including 0 (0
0 (number)

0 is both a number and the numerical digit used to represent that number in numeral system. It plays a central role in mathematics as the additive identity of the integers, real numbers, and many other algebraic structures....
, 1
1 (number)

1 is a number, number names, and the name of the glyph representing that number.It represents a single entity, the unit of counting or measurement....
, 2
2 (number)

2 is a number, numeral, and glyph. It is the natural number following 1 and preceding 3 ....
, 3
3 (number)

----3 is a number, Numeral system, and glyph. It is the natural number following 2 and preceding 4 ....
, ...) and their negative
Negative and non-negative numbers

A negative number is a real number that is inequality 0 , such as -3. A positive number is a real number that is greater than zero, such as 2....
s (0, −1
-1 (number)

In mathematics, −1 is the additive inverse of 1 , that is, the number that when addition to 1 gives 0. It is the negative and non-negative numbers integer greater than negative two and less than 0 ....
, −2, −3, ...). They are numbers that can be written without a fractional or decimal component, and fall within the set . For example, 65, 7, and −756 are integers; 1.6 and 1½ are not integers. In other terms, integers are the numbers one can count with items such as apples or fingers, and their negatives, as well as 0.

More formally, the integers are the only integral domain
Integral domain

In abstract algebra, an integral domain is a commutative ring without zero divisors and with a multiplicative identity 1 not equal to 0, the additive identity....
 whose positive elements are well-ordered, and in which order is preserved by addition
Addition

Addition is the mathematics process of putting things together. The plus sign "+" means that numbers are added together. For example, in the picture on the right, there are 3 + 2 apples?meaning three apples and two other apples?which is the same as five apples, since 3 + 2 = 5....
. Like the natural numbers, the integers form a countably infinite
Countable set

In mathematics, a countable set is a Set with the same cardinality as some subset of the set of natural numbers. The term was originated by Georg Cantor; it stems from the fact that the natural numbers are often called counting numbers....
 set. The set of all integers is often denoted by a boldface Z (or blackboard bold
Blackboard bold

Blackboard bold is a typeface style often used for certain symbols in mathematics and physics texts, in which certain lines of the symbol are doubled....
 , Unicode
Unicode

Unicode is a computing industry standard allowing computers to consistently represent and manipulate Character expressed in most of the world's writing systems....
 U+2124 ), which stands for Zahlen (German
German language

German is a West Germanic languages, thus related to and classified alongside English language and Dutch language. It is one of the world's world language and the most widely spoken mother tongue in the European Union....
 for numbers, pronounced "tsAH-len").

In algebraic number theory
Algebraic number theory

In mathematics, algebraic number theory is a major branch of number theory which studies the algebraic structures related to algebraic integers....
, these commonly understood integers, embedded in the field
Field (mathematics)

In abstract algebra, a field is an algebraic structure with notions of addition, subtraction, multiplication and division , satisfying certain axioms....
 of rational number
Rational number

In mathematics, a rational number is a number which can be expressed as a quotient of two integers. Non-integer rational numbers are usually written as the vulgar fraction , where b is not 0 ....
s, are referred to as rational integers to distinguish them from the more broadly defined algebraic integer
Algebraic integer

This article deals with the ring of complex numbers integral over Z. For the general notion of algebraic integer, see Integrality.In number theory, an algebraic integer is a complex number that is a root of some monic polynomial with integer coefficients....
s.

Algebraic properties

Like the natural numbers, Z is closed
Closure (mathematics)

In mathematics, a Set is said to be closed under some operation if the Operation on members of the set produces a member of the set. For example, the real numbers are closed under subtraction, but the natural numbers are not: 3 and 7 are both natural numbers, but the result of 3 − 7 is not....
 under the operations
Binary operation

In mathematics, a binary operation is a calculation involving two operands, in other words, an operation whose arity is two. Binary operations can be accomplished using either a binary function or binary operator....
 of addition
Addition

Addition is the mathematics process of putting things together. The plus sign "+" means that numbers are added together. For example, in the picture on the right, there are 3 + 2 apples?meaning three apples and two other apples?which is the same as five apples, since 3 + 2 = 5....
 and multiplication
Multiplication

Multiplication is the Operation of scaling one number by another. It is one of the four basic operations in elementary arithmetic .Multiplication is defined for Natural number in terms of repeated addition; for example, 4 multiplied by 3 can be calculated by adding 3 copies of 4 together:...
, that is, the sum and product of any two integers is an integer. However, with the inclusion of the negative natural numbers, and, importantly, zero
0 (number)

0 is both a number and the numerical digit used to represent that number in numeral system. It plays a central role in mathematics as the additive identity of the integers, real numbers, and many other algebraic structures....
, Z (unlike the natural numbers) is also closed under subtraction
Subtraction

Subtraction is one of the four basic arithmetic operations; it is the inverse of addition, meaning that if we start with any number and add any number and then subtract the same number we added, we return to the number we started with....
. Z is not closed under the operation of division
Division (mathematics)

In mathematics, especially in elementary arithmetic, division is an arithmetic operation which is the inverse of multiplication.Specifically, if c times b equals a, written:...
, since the quotient of two integers (e.g., 1 divided by 2), need not be an integer. Although the natural numbers are closed under exponentiation
Exponentiation

Exponentiation is a mathematics operation , written 'an', involving two numbers, the base a and the exponent n....
, the integers are not (since the result can be a fraction when the exponent is negative).

The following lists some of the basic properties of addition and multiplication for any integers a, b and c.
addition multiplication
closure
Closure (mathematics)

In mathematics, a Set is said to be closed under some operation if the Operation on members of the set produces a member of the set. For example, the real numbers are closed under subtraction, but the natural numbers are not: 3 and 7 are both natural numbers, but the result of 3 − 7 is not....
:
a + b   is an integer a × b   is an integer
associativity
Associativity

In mathematics, associativity is a property that a binary operation can have. It means that, within an expression containing two or more of the same associative operators in a row, the order that the operations are performed does not matter as long as the sequence of the operands is not changed....
:
a + (b + c)  =  (a + b) + c a × (b × c)  =  (a × b) × c
commutativity
Commutativity

In mathematics, commutativity is the process to change the order of something without changing the end result. It is a fundamental property of many binary operations throughout mathematics, and many Mathematical proof depend on it....
:
a + b  =  b + a a × b  =  b × a
existence of an identity element
Identity element

In mathematics, an identity element is a special type of element of a Set with respect to a binary operation on that set. It leaves other elements unchanged when combined with them....
:
a + 0  =  a a × 1  =  a
existence of inverse element
Inverse element

In mathematics, the idea of inverse element generalises the concepts of additive inverse, in relation to addition, and Multiplicative inverse, in relation to multiplication....
s:
a + (−a)  =  0  
distributivity
Distributivity

In mathematics, and in particular in abstract algebra, distributivity is a property of binary operations that generalises the distributive law from elementary algebra....
:
a × (b + c)  =  (a × b) + (a × c)
No zero divisors: if a × b = 0, then either a = 0 or b = 0 (or both)


In the language of abstract algebra
Abstract algebra

Abstract algebra is the subject area of mathematics that studies algebraic structures, such as group , ring , field , module , vector spaces, and algebra over a field....
, the first five properties listed above for addition say that Z under addition is an abelian group
Abelian group

An abelian group, also called a commutative group, is a group satisfying the requirement that the product of elements does not depend on their order ....
. As a group under addition, Z is a cyclic group
Cyclic group

In group theory, a cyclic group or monogenous group is a group that can be generating set of a group by a single element, in the sense that the group has an element g such that, when written multiplicatively, every element of the group is a power of g ....
, since every nonzero integer can be written as a finite sum 1 + 1 + ... 1 or (−1) + (−1) + ... + (−1). In fact, Z under addition is the only infinite cyclic group, in the sense that any infinite cyclic group is isomorphic
Group isomorphism

In abstract algebra, a group isomorphism is a function between two group s that sets up a one-to-one correspondence between the elements of the groups in a way that respects the given group operations....
 to Z.

The first four properties listed above for multiplication say that Z under multiplication is a commutative monoid. However, note that not every integer has a multiplicative inverse; e.g. there is no integer x such that because the left hand side is even, while the right hand side is odd. This means that Z under multiplication is not a group.

All the rules from the above property table, except for the last, taken together say that Z together with addition and multiplication is a commutative ring
Ring (mathematics)

In mathematics, a ring is a type of algebraic structure. There is some variation among mathematicians as to exactly what properties a ring is required to have, as described in detail below....
 with unity. Adding the last property says that Z is an integral domain
Integral domain

In abstract algebra, an integral domain is a commutative ring without zero divisors and with a multiplicative identity 1 not equal to 0, the additive identity....
. In fact, Z provides the motivation for defining such a structure.

The lack of multiplicative inverses, which is equivalent to the fact that Z is not closed under division, means that Z is not a field
Field (mathematics)

In abstract algebra, a field is an algebraic structure with notions of addition, subtraction, multiplication and division , satisfying certain axioms....
. The smallest field containing the integers is the field of rational number
Rational number

In mathematics, a rational number is a number which can be expressed as a quotient of two integers. Non-integer rational numbers are usually written as the vulgar fraction , where b is not 0 ....
s. This process can be mimicked to form the field of fractions
Field of fractions

In mathematics, the field of fractions or field of quotients of a Ring_ is the smallest field in which it can be embedded. It is common to define the field of fractions only for an Integral_domain, but in fact it exists if and only if the ring has more than one element, is commutative, and has no zero divisors....
 of any integral domain.

Although ordinary division is not defined on Z, it does possess an important property called the division algorithm
Division algorithm

The division algorithm is a theorem in mathematics which precisely expresses the outcome of the usual process of division of integers. The name is something of a misnomer, as it is a theorem, not an algorithm, i.e....
: that is, given two integers a and b with b ? 0, there exist unique integers q and r such that and where | b | denotes the absolute value
Absolute value

In mathematics, the absolute value of a real number is its numerical value without regard to its Negative and non-negative numbers. So, for example, 3 is the absolute value of both 3 and -3....
 of b. The integer q is called the quotient and r is called the remainder
Remainder

In arithmetic, when the result of the division of two integers cannot be expressed with an integer quotient, the remainder is the amount "left over."...
, resulting from division of a by b. This is the basis for the Euclidean algorithm
Euclidean algorithm

In number theory, the Euclidean algorithm is an algorithm to determine the greatest common divisor of two elements of any Euclidean domain . Its major significance is that it does not require factorization the two integers, and it is also significant in that it is one of the oldest algorithms known, dating back to the ancient Greeks....
 for computing greatest common divisor
Greatest common divisor

In mathematics, the greatest common divisor , sometimes known as the greatest common factor or highest common factor , of two non-zero integers, is the largest positive integer that divisor both numbers without remainder....
s.

Again, in the language of abstract algebra, the above says that Z is a Euclidean domain
Euclidean domain

In abstract algebra, a Euclidean domain is a type of Ring in which the Euclidean algorithm applies. Euclidean domains possess many important properties similar to the integers: for example, the fundamental theorem of arithmetic holds in any Euclidean domain....
. This implies that Z is a principal ideal domain
Principal ideal domain

In abstract algebra, a principal ideal domain, or PID is an integral domain in which every ideal is principal ideal, i.e., can be generated by a single element....
 and any positive integer can be written as the products of primes
Prime number

In mathematics, a prime number is a natural number which has exactly two distinct natural number divisors: 1 and itself. An infinitude of prime numbers exists, as demonstrated by Euclid around 300 BC....
 in an essentially unique way. This is the fundamental theorem of arithmetic
Fundamental theorem of arithmetic

In number theory and algebraic number theory, the Fundamental Theorem of Arithmetic states that any integer greater than 1 can be written as a unique product of prime numbers....
.

Order-theoretic properties

Z is a totally ordered set
Total order

In mathematics and set theory, a total order, linear order, simple order, or ordering is a binary relation on some Set X....
 without upper or lower bound. The ordering of Z is given by:
... −3 < −2 < −1 < 0 < 1 < 2 < 3 < ...
An integer is positive if it is greater than zero and negative if it is less than zero. Zero is defined as neither negative nor positive.

The ordering of integers is compatible with the algebraic operations in the following way:
  1. if a < b and c < d, then a + c < b + d
  2. if a < b and 0 < c, then ac < bc. (From this fact, one can show that if c < 0, then ac > bc.)


It follows that Z together with the above ordering is an ordered ring
Ordered ring

In abstract algebra, an ordered ring is a commutative ring with a total order = such that for all a, b, and c in R:* if a = b then a + c = b + c....
.

Construction

Mathematically we may construct the integers as equivalence class
Equivalence class

In mathematics, given a Set X and an equivalence relation ~ on X, the equivalence class of an element a in X is the subset of all elements in X which are equivalent to a:...
es of ordered pair
Ordered pair

In mathematics, an ordered pair is a collection of two distinguishable objects, one being the first coordinate system , and the other being the second coordinate ....
s of natural number
Natural number

In mathematics, a natural number can mean either an element of the Set = *n = = ? = ? ...
s (a, b).

The intuition is that (a, b) stands for the result of subtracting b from a. To confirm our expectation that 1 − 2 and 4 − 5 denote the same number, we define an equivalence relation
Equivalence relation

In mathematics, an equivalence relation is, loosely, a binary relation on a Set that specifies how to split up the set into subsets such that every element of the larger set is in exactly one of the subsets....
 ~ on these pairs with the following rule: precisely when

Addition and multiplication of integers can be defined in terms of the equivalent operations on the natural numbers:

The negation (or additive inverse) of an integer is obtained by reversing the order of the pair:

Hence subtraction can be defined as the addition of the additive inverse:

The standard ordering on the integers is given by: iff

It is easily verified that these definitions are independent of the choice of representatives of the equivalence classes.

Taking 0 to be a natural number, the natural numbers may be considered to be integers by the embedding
Embedding

In mathematics, an embedding is one instance of some mathematical structure contained within another instance, such as a group that is a subgroup....
 that maps n to [(n,0)], where [(a,b)] denotes the equivalence class having (a,b) as a member.

Typically, [(a,b)] is denoted by where If the natural numbers are identified with the corresponding integers (using the embedding mentioned above), this convention creates no ambiguity.

This notation recovers the familiar representation
Group representation

In the mathematics field of representation theory, group representations describe abstract group in terms of linear transformations of vector spaces; in particular, they can be used to represent group elements as matrix so that the group operation can be represented by matrix multiplication....
 of the integers as .

Some examples are:

Integers in computing


An integer (sometimes known as an "int", from the name of a datatype in the C programming language
C (programming language)

C is a general-purpose computer programming language originally developed in 1972 by Dennis Ritchie at the Bell Telephone Laboratories to implement the Unix operating system....
) is often a primitive datatype in computer languages. However, integer datatypes can only represent a subset
Subset

In mathematics, especially in set theory, a Set A is a subset of a set B if A is "contained" inside B. Notice that A and B may coincide....
 of all integers, since practical computers are of finite capacity. Also, in the common two's complement
Two's complement

The two's complement of a binary number is defined as the value obtained by subtracting the number from a large power of two .A two's-complement system or two's-complement arithmetic is a system in which negative numbers are represented by the two's complement of the absolute value; this system is the most common Signed number r...
 representation, the inherent definition of sign distinguishes between "negative" and "non-negative" rather than "negative, positive, and 0". (It is, however, certainly possible for a computer to determine whether an integer value is truly positive.)

Variable-length representations of integers, such as bignums, can store any integer that fits in the computer's memory. Other integer datatypes are implemented with a fixed size, usually a number of bits which is a power of 2 (4, 8, 16, etc.) or a memorable number of decimal digits (e.g., 9 or 10).

In contrast, theoretical models of digital computers, such as Turing machine
Turing machine

Turing machines are basic abstract symbol-manipulating devices which, despite their simplicity, can be adapted to simulate the logic of any computer algorithm....
s, typically do not have infinite (but only unbounded finite) capacity.

Cardinality

The cardinality
Cardinality

In mathematics, the cardinality of a set is a measure of the "number of Element of the set". For example, the set A = contains 3 elements, and therefore A has a cardinality of 3....
 of the set of integers is equal to (aleph
Aleph number

In the branch of mathematics known as set theory, the aleph numbers are a sequence of numbers used to represent the cardinality of infinite sets....
-null). This is readily demonstrated by the construction of a bijection
Bijection

In mathematics, a bijection, or a bijective function is a function f from a set X to a set Y with the property that, for every y in Y, there is exactly one x in X such that f = y....
, that is, a function that is injective and surjective from Z to N. Consider the function If the domain is restricted to Z then each and every member of Z has one and only one corresponding member of N and by the definition of cardinal equality the two sets have equal cardinality.

See also

  • hyperinteger
    Hyperinteger

    In non-standard analysis, a hyperinteger N is a hyperreal number equal to its own integer part....


External links

  • cf OEIS