Quotients and Remainders Wheel

Take the fraction 1/7 as an example. Do long division:
The digits 1, 4, 2, 8, 5, 7 are the quotients (inner ring) and 3, 2, 6, 4, 5, 1 are the remainders (outer ring). Notice that and .
In general, let be the denominator of a fraction. If is prime and the multiplicative order of is even, then this fraction has the property that the digits of its decimal expansion repeat in cycles. The length of the period is equal to the smallest integer such that . In the particular case that 10 is a primitive root of this prime, the length of the cycle is .
Also, because there are an even number of them, the digits can be divided into two halves. The digits of the decimal expansion can be regarded as quotients arising from the long division algorithm. The remainders in the long division appear in cycles too, then. Arranging the digits of the fraction with the remainders in two circles, diametrically opposite directions sum to 9 in the inner ring and to the denominator in the outer ring. The first digit is at the top and the digits are arranged clockwise, as indicated by the black arrow.



  • [Snapshot]
  • [Snapshot]
  • [Snapshot]
  • [Snapshot]
  • [Snapshot]


Snapshot 1: in the case of fractions of the form , the decimal digits of 1/7 appear cyclically
Snapshot 2: with the denominator 49, if is prime to 49, all fractions have the same cyclic arrangement of their digits; there are 42 such fractions and each has 42 digits in its period
Snapshot 3 and 4: other examples with long period and different selected digits
Snapshot 5: the longest period for a denominator less than 100
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.

Mathematica »
The #1 tool for creating Demonstrations
and anything technical.
Wolfram|Alpha »
Explore anything with the first
computational knowledge engine.
MathWorld »
The web's most extensive
mathematics resource.
Course Assistant Apps »
An app for every course—
right in the palm of your hand.
Wolfram Blog »
Read our views on math,
science, and technology.
Computable Document Format »
The format that makes Demonstrations
(and any information) easy to share and
interact with.
STEM Initiative »
Programs & resources for
educators, schools & students.
Computerbasedmath.org »
Join the initiative for modernizing
math education.
Step-by-Step Solutions »
Walk through homework problems one step at a time, with hints to help along the way.
Wolfram Problem Generator »
Unlimited random practice problems and answers with built-in step-by-step solutions. Practice online or make a printable study sheet.
Wolfram Language »
Knowledge-based programming for everyone.
Powered by Wolfram Mathematica © 2018 Wolfram Demonstrations Project & Contributors  |  Terms of Use  |  Privacy Policy  |  RSS Give us your feedback
Note: To run this Demonstration you need Mathematica 7+ or the free Mathematica Player 7EX
Download or upgrade to Mathematica Player 7EX
I already have Mathematica Player or Mathematica 7+