GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Algebra
  • Applied Mathematics
  • Calculus and Analysis
  • Discrete Mathematics
  • Foundations of Mathematics
  • Geometry
  • History and Terminology
  • Number Theory
  • Probability and Statistics
  • Recreational Mathematics
  • Topology
  • Alphabetical Index
  • Random Entry
  • New in MathWorld

This view

  • Original page
  • New address

GeezerVison is showing mathworld.wolfram.com — Repeating Decimal -- from Wolfram MathWorld

Search

Repeating Decimal


DOWNLOAD Mathematica NotebookDownload Wolfram Notebook

A repeating decimal, also called a recurring decimal, is a number whose decimal expansion eventually becomes periodic (i.e., the same sequence of digits repeats indefinitely). The repeating portion of a decimal expansion is conventionally denoted with a vinculum so, for example,

 1/3=0.3333333...=0.3^_.

The minimum number of digits that repeats in such a number is known as the decimal period.

Repeating decimal notation was implemented in versions of the Wolfram Language prior to 6 as PeriodicForm[RealDigits[r]] after loading the add-on package NumberTheory`ContinuedFractions`.

All rational numbers have either finite decimal expansions (e.g., 1/2=0.5) or repeating decimals (e.g., 1/11=0.09^_). However, irrational numbers, such as pi=3.141592..., neither terminate nor become periodic.

Numbers such as 0.5 are sometimes regarded as repeating decimals since 0.5=0.50^_=0.49^_.

The denominators of the first few unit fractions having nonterminating repeating decimals are 3, 6, 7, 9, 11, 12, 13, 14, 15, 17, 18, 19, 21, 22, 23, 24, 26, 27, 28, 29, ... (OEIS A085837).

For an exact rational number r with a nonterminating decimal expansion, the repeating portion can be found in the Wolfram Language using the command RealDigits[r][[1,-1]]. The decimal period of a rational number in lowest terms is the multiplicative order of 10 modulo q for q>1, where q is obtained by removing all prime factors 2 and 5 from its denominator. If q=1, the decimal expansion terminates and its period is recorded as 0. The periods of the decimal expansions of 1/n for n=1, 2, ... are 0, 0, 1, 0, 0, 1, 6, 0, 1, 0, 2, 1, 6, 6, 1, 0, 16, 1, 18, ... (OEIS A051626), where 0 indicates a terminating decimal expansion.

For positive integers m and n, if m is relatively prime to 10, 1/m is a nonterminating repeating decimal, and 1/n is a terminating decimal, then 1/(mn) has a nonperiodic part whose length is that of 1/n and a repeating part whose length is that of 1/m (Wells 1986, p. 60).


See also

Cyclic Number, Decimal Expansion, Decimal Period, Euler's Totient Rule, Full Reptend Prime, Irrational Number, Midy's Theorem, Multiplicative Order, Rational Number, Regular Number

Explore with Wolfram|Alpha

WolframAlpha

More things to try:

  • number bases
  • find the rational number of the repeating decimal 2.8421
  • rational number for repeating decimal 8.603603603....

References

Ball, W. W. R. and Coxeter, H. S. M. Mathematical Recreations and Essays, 13th ed. New York: Dover, pp. 53-54, 1987.Conway, J. H. and Guy, R. K. The Book of Numbers. New York: Springer-Verlag, pp. 167-168, 1996.Courant, R. and Robbins, H. "Rational Numbers and Periodic Decimals." §2.2.4 in What Is Mathematics?: An Elementary Approach to Ideas and Methods, 2nd ed. Oxford, England: Oxford University Press, pp. 66-68, 1996.Numberphile. "998,001 and Its Mysterious Recurring Decimals." Mar. 6, 2012. https://www.youtube.com/watch?v=daro6K6mym8.Numberphile. "The Reciprocals of Primes." Featuring M. Parker. Mar. 14, 2022. https://www.youtube.com/watch?v=DmfxIhmGPP4.Sloane, N. J. A. Sequences A051626 and A085837 in "The On-Line Encyclopedia of Integer Sequences."Wells, D. The Penguin Dictionary of Curious and Interesting Numbers. Middlesex, England: Penguin Books, p. 60, 1986.

Referenced on Wolfram|Alpha

Repeating Decimal

Cite this as:

Weisstein, Eric W. "Repeating Decimal." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/RepeatingDecimal.html

Subject classifications

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.