A rational number is a real number that can be represented as a ratio ( Latin ratio ) of two whole numbers . To denote the set of all rational numbers, the formula symbol ( Unicode U + 211A: ℚ) is used (from " quotient ", see letter with double line ). It covers all numbers that when fraction (Engl. Fraction ) can be displayed, which contains both the numerator and the denominator whole numbers. The exact mathematical definition is based on equivalence classes of pairs of integers.
The rational numbers are also called fractions , especially in school math. By introducing the fractional numbers, division becomes feasible even if the dividend is smaller than the divisor , e.g. B. 3: 4 =? Which cannot be executed with natural or whole numbers.
The fraction ¾, for example, represents: 1. the division 3: 4 (3 divided into 4, 3 divided into 4, 3 divided into 4's, 3 divided into 4 (equal) parts, 3 divided by 4), 2. the result of the Division as your own (fraction) number ¾ (three quarters), 3. The order: "Divide into 4 parts, take 3" (three of four (parts)).
The terms ordinary fraction , stem fraction , real fraction , I, improper fraction , I, shortened fraction , extended fraction , decimal fraction , binary fraction ... are used for special spellings or forms of rational numbers.
The set of rational numbers consists of the set of negative rational numbers, the number zero and the set of positive rational numbers. The definition of rational numbers is based on the representation of rational numbers using fractions , i.e. pairs of whole numbers. It is structured in such a way that the calculation with rational numbers can be carried out as usual with the help of their fractions, but at the same time it abstracts the rational number from its fractions. The rational numbers are not postulated as completely new things, but are reduced to the whole numbers.
The definition begins with the set of all ordered pairs of integers with . Important: These pairs are not the rational numbers.
One defines addition and multiplication on this set as follows:
These are the well-known rules of fractions . The pairs of numbers can be understood as fractions.
One goal of defining rational numbers is that, for example, the fractions and denote the same "number". So we consider fractions that are equivalent to one another (of the same value). This is expressed by an equivalence relation , which is defined as follows:
It is important that this relation is actually an equivalence relation, i.e. the total amount is broken down into subsets (here called equivalence classes) of mutually equivalent elements; this can be proven.
For the equivalence classes, one again defines calculation rules that are based on fractions and ensure that what is understood by a rational number is abstracted from the concrete fraction representation. The addition of the equivalence classes and is defined as follows:
From To Choose any item, so an ordered pair of integers (ie choosing a single member of rather than two). You also choose the element .
and if you add up according to the fractions, you get a pair . This is an element of an equivalence class , which is the result of the addition.
It is important that regardless of the specific choice of and always an element of one and the same equivalence class comes out; this property of addition, its well-definedness , must and can be proven.
The multiplication is defined in the same way.
The equivalence classes are understood as elements of a new set and are called rational numbers . So a single rational number is an infinite set of ordered pairs . This set is very often written as a fraction that denotes the equivalence class
of all pairs to be equivalent. The horizontal or (from top right to bottom left) diagonal dividing line between the two whole numbers is called a fraction line . The first integer is the numerator , the second the denominator of the fraction. The denominator is always different and can be chosen because of positive. The preferred representation of the rational number is the (maximally) reduced fraction
where stands for the greatest common factor of and . Thus the equivalence class consists exactly of the pairs of integers
If you identify the whole number with the rational number , then you have an extension of the number range of the whole numbers , which is also referred to as the formation of the quotient field . If and are two whole numbers and , their sum and product, then the calculation rules for fractions are designed in such a way that and hold. Moreover, by virtue of this identification, a fraction is in fact the quotient of the numerator and denominator. In this sense, the fraction bar is also used as an ordinary division symbol instead of .
with the well-known comparison symbols and functions based on the arrangement of the whole numbers and This definition is independent of the abbreviation or expansion of the fractions, as these always have the same effect on both sides of the right-hand symbol . With it immediately follows that in is compatible with in , so that the same character can be used.
If two pairs are equivalent, then neither is
The trichotomy of order states:
- Exactly one of the following relationships applies:
So the rational numbers are a totally ordered set .
→ The construction of the real numbers by means of Dedekind cuts is based on this order relation .
The rational numbers contain a subset that is isomorphic to the whole numbers (choose the fraction representation ). This is often expressed in a simplistic way that the whole numbers are contained in the rational numbers .
The body is the smallest body that contains the natural numbers . is namely the quotient field of the ring of whole numbers , which is the smallest containing ring. This means that the smallest part of every upper part of the body , including the field of real numbers, is its prime field . And as a prime field is rigid , that is, its only automorphism is the trivial one (the identity).
of these two numbers, and thus any number.
Despite the tightness of in , there can be no function that is only continuous on the rational numbers (and discontinuous on all irrational numbers ) - it works the other way round (for both statements see the article Thoma's function ).
The set of rational numbers is equal to the set of natural numbers, so it is countable . In other words: there is a bijective mapping between and that assigns a natural number to every rational number and vice versa. Cantor's first diagonal argument and the Stern-Brocot tree provide such bijective images. (The existence of true subsets of equal power is synonymous with infinite power.)
→ A Lebesgue null set is a countable set .
A rational number in the form of the ordered pair numerator / denominator represents a division that has not been carried out. The rational number is indeed described exactly and without loss of accuracy and in pure mathematics one is often satisfied with it. But even comparing two rational numbers is much easier if the division is at least partially implemented as a division with the remainder , which may lead to a mixed number .
A division is considered to be fully executed when the rational number in a place value system has been developed to a certain basis. A wide variety of algorithms have been designed for this, which can be roughly divided into three groups:
- Written division as an algorithm for manual calculation
- Algorithms for use in computers
- Fixed (and small) length integer algorithms
- Algorithms for integers of any length
Examples of the latter are
The latter two methods first form a kind of reciprocal value of the denominator, which is then multiplied by the numerator. All processes are also suitable for short divisions and are also used there. The SRT division, for example, was initially implemented incorrectly in the division unit of the Pentium processor from Intel .
Decimal fraction expansion
Every rational number can be assigned a decimal fraction expansion. Rational numbers have a periodic decimal fraction development, irrational ones, on the other hand, a non-periodic one (which also applies to the -adic fractions to other (from different) number bases (basic numbers) ). A finite (that is, terminating) decimal fraction expansion is only a special case of periodic decimal fraction expansion in that the decimal digit 0 or periodically repeats itself after the finite digit sequence . The period (the repetitive part) is marked (in many countries, but not internationally uniform) with an overline .
The corresponding developments in the binary system (base ) are indicated in square brackets .
The finite decimal resp. Binary fraction expansions are precisely those that have at least two essentially different expansions (see also the § Representation of Rational Numbers ). They are among the quarries whose shortened denominator in a power rises the base so that the to prime divider to be obtained. To distinguish it from the following cases with (and non-terminating development), the period length of such a terminating development is assigned.
According to Euler's theorem, we have a denominator and a base that is coprime to it
with Euler's phi function . The period length of is the order of the remainder class in the unit group of the remainder class ring modulo . According to Lagrange's theorem, is a factor of the group order and therefore not greater than it. The Carmichael function is defined as the maximum element order in and is therefore also a divisor of , and it applies to all
is whole, positive and , and the digits developed from the base are constantly repeated in the -adic representation of , thus:
The above example 1/3 has in the base of the period length and the sequence of digits , as well as at the base , the period length and the number sequence .
For a given denominator , the period length occurs precisely when the base is a primitive root modulo . There are primitive roots only if the prime residue class group is cyclic, i.e. if Else is and the period length is a real divisor of
The table below uses the example of the bases and gives an impression of the denominators for which the period length (with a suitable numerator) is maximum (in bold). E.g. the decimal fractions of the reciprocal values of the prime numbers have the period length . In the case of composite numbers , the maximum is ; they have the values for and in italics. The worst case period length is in , while the length of the number in the -adic number system (also given in the table for comparison) is in. The reciprocal value 1/802787 of the prime number 802787 requires at least 802786 bits in the dual system and at least 401393 digits in the decimal system - too many to display here.
S. a. the algorithm for the -adic expansion of a rational number for an arbitrary basis