Lably
Skip to content

Repeating decimal

Decimal representation of a number whose digits are periodic

  • 24 min read
  • 9 chapters

Related on Lably

Through Decimal representation, Numerical digit and Rational number

It can be shown that a number is rational if and only if its decimal representation is repeating or terminating. For example, the decimal representation of ⁠1/3⁠ becomes periodic just after the decimal point, repeating the single digit "3" forever, i.e. 0.333.... A more complicated example is ⁠3227/555⁠, whose decimal becomes periodic at the second digit following the decimal point and then repeats the sequence "144" forever, i.e. 5.8144144144.... Another example of this is ⁠593/53⁠, which becomes periodic after the decimal point, repeating the 13-digit pattern "1886792452830" forever, i.e. 11.18867924528301886792452830....

The finite digit sequence that is repeated infinitely is called the repetend or reptend. If the repetend is a zero, this decimal representation is called a terminating decimal rather than a repeating decimal, since the zeros can be omitted and the decimal terminates before these zeros. Every terminating decimal representation can be written as a decimal fraction, a fraction whose denominator is a power of 10 (e.g. 1.585 = ⁠1585/1000⁠); it may also be written as a ratio of the form ⁠k/2n·5m⁠ (e.g. 1.585 = ⁠317/23·52⁠). However, every number with a terminating decimal representation also trivially has a second, alternative representation as a repeating decimal whose repetend is the digit "9". This is obtained by decreasing the final (rightmost) non-zero digit by one and appending a repetend of 9. Two examples of this are 1.000... = 0.999... and 1.585000... = 1.584999.... (This type of repeating decimal can be obtained by long division if one uses a modified form of the usual division algorithm.)

Any number that cannot be expressed as a ratio of two integers is said to be irrational. Their decimal representation neither terminates nor infinitely repeats, but extends forever without repetition (see § Every rational number is either a terminating or repeating decimal). Examples of such irrational numbers are √2 and π.

Background

Notation

Any textual representation is necessarily finite, which is why special non-decimal notation is required to represent repeating decimals. Below are several notational conventions. None of them are accepted universally.

In English, there are various ways to read repeating decimals aloud. For example, 1.234 may be read "one point two repeating three four", "one point two repeated three four", "one point two recurring three four", "one point two repetend three four" or "one point two into infinity three four".

Decimal expansion and recurrence sequence

In order to convert a rational number represented as a fraction into decimal form, one may use long division. For example, consider the rational number ⁠5/74⁠:

<u id="mwATc"> 0.0<span style="text-decoration:overline;" about="#mwt114" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"overline","href":"./Template:Overline"},"params":{"1":{"wt":"675"}},"i":0}}]}' id="mwATg">675</span></u> 74 ) 5.00000 <u id="mwATk">4.44</u> 560 <u id="mwATo">518</u> 420 <u id="mwATs">370</u> 500

etc. Observe that at each step we have a remainder; the successive remainders displayed above are 56, 42, 50. When we arrive at 50 as the remainder, and bring down the "0", we find ourselves dividing 500 by 74, which is the same problem we began with. Therefore, the decimal repeats: 0.0675675675....

For any integer fraction ⁠A/B⁠, the remainder at step k, for any positive integer k, is A × 10k (modulo B).

Every rational number is either a terminating or repeating decimal

For any given divisor, only finitely many different remainders can occur. In the example above, the 74 possible remainders are 0, 1, 2, ..., 73. If at any point in the division the remainder is 0, the expansion terminates at that point. Then the length of the repetend, also called "period", is defined to be 0.

If 0 never occurs as a remainder, then the division process continues forever, and eventually, a remainder must occur that has occurred before. The next step in the division will yield the same new digit in the quotient, and the same new remainder, as the previous time the remainder was the same. Therefore, the following division will repeat the same results. The repeating sequence of digits is called "repetend" which has a certain length greater than 0, also called "period".

In base 10, a fraction has a repeating decimal if and only if in lowest terms, its denominator has at least a prime factor different from 2 and 5 (a prime denominator is considered as a prime factor of itself), or in other words, the denominator cannot be expressed as 2m5n, where m and n are non-negative integers.

Every repeating or terminating decimal is a rational number

Each repeating decimal number satisfies a linear equation with integer coefficients, and its unique solution is a rational number. In the example above, α = 5.8144144144... satisfies the equation

The process of how to find these integer coefficients is described below.

Formal proof

Given a repeating decimal x=a.bc¯ where a, b, and c are groups of digits, let n=⌈log10⁡b⌉, the number of digits of b. Multiplying by 10n separates the repeating and terminating groups:

10nx=ab.c¯.

If the decimals terminate (c=0), the proof is complete. For c≠0 with k∈N digits, let x=y.c¯ where y∈Z is a terminating group of digits. Then,

c=d1d2...dk

where di denotes the i-th digit, and

x=y+∑n=1∞c(10k)n=y+(c∑n=0∞1(10k)n)−c.

Since ∑n=0∞1(10k)n=11−10−k,

x=y−c+10kc10k−1.

Since x is the sum of an integer (y−c) and a rational number (10kc10k−1), x is also rational.

Sign in to keep reading

8 more chapters are free with a Lably account.

More in Basics