Nepedia
Back to Discover
Advanced Reader
🔢

Repeating decimal

math Maturity 7-9 Next article →

A repeating decimal is a way to write a number where a sequence of digits repeats forever. This repeating part is called the repetend. If a decimal does not repeat and instead ends with zeros, it is called a terminating decimal. Both repeating and terminating decimals are classified as rational numbers. A rational number is any value that can be expressed as a ratio of two integers. In contrast, irrational numbers like pi or the square root of two never terminate and never enter a repeating loop.

CodeCogsEqn(4)
CodeCogsEqn(4)

To understand how these patterns form, we can look at the process of long division. When you divide one integer by another, you often encounter a remainder at each step. If the remainder eventually becomes zero, the decimal is terminating. However, if the remainder never becomes zero, you will eventually see a remainder that has appeared before. Because there are only a finite number of possible remainders for any given divisor, a repeat is inevitable. Once a remainder repeats, the entire sequence of digits in the quotient begins to loop. The length of this repeating sequence is known as the period.

CodeCogsEqn(4)
CodeCogsEqn(4)

Because we cannot write digits infinitely on paper, mathematicians use several different notations. In the United States, Canada, and many other countries, a horizontal line called a vinculum is drawn over the repetend. In countries like the United Kingdom, Australia, and Japan, dots are often placed above the first and last digits of the repeating sequence. In parts of Europe, such as Austria and Russia, the repetend is often enclosed in parentheses. Some regions, like Spain and Mexico, use an arc over the digits. An ellipsis, or three dots, is an informal way to show a pattern, but it can be confusing because it is also used for irrational numbers.

CodeCogsEqn(4)
CodeCogsEqn(4)

Mathematics reveals that even terminating decimals have a hidden repeating side. Any terminating decimal can be rewritten as a repeating decimal using the digit nine. For example, 0.5 can be expressed as 0.4999... by decreasing the last non-zero digit by one and appending a repetend of nines. This can be achieved through a modified version of the usual division algorithm. This demonstrates that a single numerical value can have multiple valid decimal representations.

CodeCogsEqn(4)
CodeCogsEqn(4)

Certain fractions produce remarkably organized patterns known as cyclic numbers. These arise from specific fractions, such as one seventh, which produces the repeating sequence 0.142857. The length of this repetend is six digits. If you multiply this fraction by different natural numbers, the resulting decimal is simply a rotation of the original sequence. For instance, two sevenths begins with 285714, while three sevenths begins with 428571. This cyclic behavior allows mathematicians to predict the results of multiplication just by knowing the original pattern.

CodeCogsEqn(4)
CodeCogsEqn(4)

There are also special types of prime numbers that create highly structured decimals. A proper prime is a prime number that ends in the digit one and has a repetend length of p minus one. In these cases, every digit from zero to nine appears an equal number of times within the repeating sequence. Some of these, like 7 or 23, are also called full reptend primes. If a prime is both a full reptend prime and a safe prime, it can produce a stream of pseudo-random digits.

CodeCogsEqn(4)
CodeCogsEqn(4)

The relationship between the divisor and the pattern length is governed by number theory. In base 10, a fraction will have a repeating decimal if its denominator has prime factors other than 2 or 5. For a prime denominator, the length of the repetend is related to the order of 10 modulo that prime. For example, the fraction 1/11 has a period of two, while 1/13 has a period of six. These patterns connect simple arithmetic to complex fields like group theory and modular arithmetic.

CodeCogsEqn(4)
CodeCogsEqn(4)
634 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (1)
File:CodeCogsEqn(4).gif
CodeCogsEqn(4).gif
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.