Currently there may be errors shown on top of a page, because of a missing Wiki update (PHP version and extension DPL3). |
Topics | Help • Register • News • History • How to • Sequences statistics • Template prototypes |
Rational number
A rational number is a real number which can be written as
The notation
The following operations are defined:
Contents
[hide]Addition
Subtraction
Multiplication
Division
Valid only when the second rational number is not zero.
Between two rational numbers there are infinite other rational numbers. This is because between the numbers
by varying the number
This means that the set of rational numbers is a dense subset of the real numbers.
From the above reasoning one can think that all real number are rational, but it can be shown that the set of irrational numbers (those real numbers that are not rational) is also dense and there are more irrational numbers than rationals (there are different types of infinites).
Decimal representation of rational numbers
A rational number can be represented exactly when the denominator of the irreducible fraction is a perfect power of 2 multiplied by a perfect power of 5, i.e. it has the form
Otherwise the number represented in decimal is periodic where the period is a divisor of the Euler totient function of the denominator. This function can be computed by factoring the denominator. As a special case, when the denominator is a prime number, the period is a divisor of the denominator minus 1.
When we have the number represented in decimal form, to convert it to a fraction depends on whether the decimal expansion is exact or periodic.
In the first case, when the number
In the second case, when the number
External links
General numbers |
Special numbers |
|
Prime numbers |
|