# Decimal Representation of 1/7

**URL:** <https://boards.straightdope.com/t/decimal-representation-of-1-7/673379>\
**Category:** Factual Questions\
**Created:** [November 8, 2013, 2:49am UTC](https://boards.straightdope.com/t/decimal-representation-of-1-7/673379 "2013-11-08T02:49:49Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![yearofglad](https://avatars.discourse-cdn.com/v4/letter/y/b782af/32.png) [@yearofglad](https://boards.straightdope.com/u/yearofglad)\
**Post date:** [November 8, 2013, 2:49am UTC](https://boards.straightdope.com/t/decimal-representation-of-1-7/673379/1 "2013-11-08T02:49:49Z")

</div>

I’m not exactly sure that I have a specific _question_, but I’m curious if anyone has anything interesting or informative about the strange decimal representation of 1/7.

1/7 = 0.142857142857…

The repeating portion consists of the digits 142857. If we break those up into three 2-digit numbers, we get 14, 28, and 57.

28 is twice 14, and 57 is _almost_ twice 28. (Also, 14 is twice 7, the original denominator.)

If we consider doubling, say, 14.2 and rounding, we get 28. If we double 28.5 and round, we get 57 (well, we get that without rounding).

Those are definitely some curious properties, and I find it hard to believe that the relationships in the decimal expansion are just a coincidence, but I couldn’t fathom why these relationships show up in the expansion.

There’s also the fact that there are 6 repeating digits and by moving the decimal appropriately, this series of digits comprises the representation for 2/7, 3/7, 4/7, 5/7, and 6/7.

(For example, 2/7 = 0.285714…)

I don’t see this particular behavior in any other decimal expansions.

Is this truly just a coincidence? If not, is there some sort of mathematical explanation or reasoning?

Any info or thoughts would be awesome.

---

<div class="post-metadata">

**Author:** ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)\
**Post date:** [November 8, 2013, 2:57am UTC](https://boards.straightdope.com/t/decimal-representation-of-1-7/673379/2 "2013-11-08T02:57:40Z")

</div>

The second fact you observed explains the first one. 1/7 is 0.142857…, or approximately 0.14, so double that, 2/7, is 0.285714…, or approximately 0.28. There’s your first doubling. And double that is 4/7, 0.571428…, or approximately 0.57, which is close to 0.56, twice the approximation for 2/7.

---

<div class="post-metadata">

**Author:** ![OldGuy](https://avatars.discourse-cdn.com/v4/letter/o/3bc359/32.png) [@OldGuy](https://boards.straightdope.com/u/OldGuy)\
**Post date:** [November 8, 2013, 3:16am UTC](https://boards.straightdope.com/t/decimal-representation-of-1-7/673379/3 "2013-11-08T03:16:09Z")

</div>

“Nothing” in arithmetic is really a coincidence since it all follows from first principles. The properties of 1/n have been studied. Here’s a pdf with more than you care to know probably.

www.fq.math.ca/Scanned/11-1/brousseau.pdf‎

---

<div class="post-metadata">

**Author:** ![JWT\_Kottekoe](https://avatars.discourse-cdn.com/v4/letter/j/3ec8ea/32.png) [@JWT\_Kottekoe](https://boards.straightdope.com/u/JWT_Kottekoe)\
**Post date:** [November 8, 2013, 3:28am UTC](https://boards.straightdope.com/t/decimal-representation-of-1-7/673379/4 "2013-11-08T03:28:09Z")

</div>

Years ago, Martin Gardner did a column on these so-called cyclic numbers. The same thing happens with 1/17, 1/19, and some other reciprocals of prime numbers. Here is a link to the Wikipedia article on cyclic numbers.

[Cyclic Numbers](http://en.wikipedia.org/wiki/Cyclic_number)

---

<div class="post-metadata">

**Author:** ![etv78](https://avatars.discourse-cdn.com/v4/letter/e/d78d45/32.png) [@etv78](https://boards.straightdope.com/u/etv78)\
**Post date:** [November 8, 2013, 3:35am UTC](https://boards.straightdope.com/t/decimal-representation-of-1-7/673379/5 "2013-11-08T03:35:16Z")

</div>

Are cyclical numbers always prime?

---

<div class="post-metadata">

**Author:** ![Exapno\_Mapcase](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/exapno_mapcase/32/1051_2.png) [@Exapno\_Mapcase](https://boards.straightdope.com/u/Exapno_Mapcase)\
**Post date:** [November 8, 2013, 3:37am UTC](https://boards.straightdope.com/t/decimal-representation-of-1-7/673379/6 "2013-11-08T03:37:52Z")

</div>

Even more fun than 1/7 is [1/49](http://www.counton.org/explorer/diversions/fascinating-fractions/), for similar reasons:

```auto

 1/49=   
  0.     
    02      
      04         
        08
          16
            32
              64
               128
                 256
                   512
                     ...
------------------------
  0.0204081632653061...

```

---

<div class="post-metadata">

**Author:** ![snailboy](https://avatars.discourse-cdn.com/v4/letter/s/97f17d/32.png) [@snailboy](https://boards.straightdope.com/u/snailboy)\
**Post date:** [November 8, 2013, 3:37am UTC](https://boards.straightdope.com/t/decimal-representation-of-1-7/673379/7 "2013-11-08T03:37:57Z")

</div>

> [@yearofglad](#):
>
> Is this truly just a coincidence? If not, is there some sort of mathematical explanation or reasoning?

Do you remember how to do long division? Assuming the dividend is less than 7, you’re going to have to add a 0 to the dividend, so ignoring the decimal point, it’ll be 10/7, 20/7, etc. Thus there are only 6 possible values for the first digit, 1, 2, 4, 5, 7, and 8. The remainder from this division will also always be 1 to 6 and you’ll add another 0, so you’ll always end up with one of these digits. It’s not hard to see why it follows a pattern. 10/7 is 1 with a remainder of 3, 30/7 is 4 with a remainder of 2, 20/7 is 2 with a remainder of 6, and so on until it makes a circle back to 10/7.

From this, it appears that division that results in non-terminating decimal representations always result in repeating patterns with a number of digits less than the divisor.

---

<div class="post-metadata">

**Author:** ![snailboy](https://avatars.discourse-cdn.com/v4/letter/s/97f17d/32.png) [@snailboy](https://boards.straightdope.com/u/snailboy)\
**Post date:** [November 8, 2013, 3:42am UTC](https://boards.straightdope.com/t/decimal-representation-of-1-7/673379/8 "2013-11-08T03:42:58Z")

</div>

> [@etv78](#):
>
> Are cyclical numbers always prime?

By cyclical, I’m guessing you mean non-terminating with a repeating pattern. In that case, no. Any divisor that doesn’t have solely 2 and/or 5 as prime factors and doesn’t divide evenly into the dividend will have a repeating pattern.

---

<div class="post-metadata">

**Author:** ![BigT](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/bigt/32/12044_2.png) [@BigT](https://boards.straightdope.com/u/BigT)\
**Post date:** [November 8, 2013, 3:52am UTC](https://boards.straightdope.com/t/decimal-representation-of-1-7/673379/9 "2013-11-08T03:52:46Z")

</div>

> [@JWT\_Kottekoe](#):
>
> Years ago, Martin Gardner did a column on these so-called cyclic numbers. The same thing happens with 1/17, 1/19, and some other reciprocals of prime numbers. Here is a link to the Wikipedia article on cyclic numbers.
> 
> [Cyclic Numbers](http://en.wikipedia.org/wiki/Cyclic_number)

For a modern audience, a video may be better. Here’s a [Numberphile video](http://www.youtube.com/watch?v=WUlaUalgxqI) on the subject.

---

<div class="post-metadata">

**Author:** ![sisu](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@sisu](https://boards.straightdope.com/u/sisu)\
**Post date:** [November 8, 2013, 3:54am UTC](https://boards.straightdope.com/t/decimal-representation-of-1-7/673379/10 "2013-11-08T03:54:02Z")

</div>

They are devil numbers…

---

<div class="post-metadata">

**Author:** ![j\_sum1](https://avatars.discourse-cdn.com/v4/letter/j/8baadc/32.png) [@j\_sum1](https://boards.straightdope.com/u/j_sum1)\
**Post date:** [November 8, 2013, 4:07am UTC](https://boards.straightdope.com/t/decimal-representation-of-1-7/673379/11 "2013-11-08T04:07:39Z")

</div>

Fun “Mathemagic” trick

Get someone to write down a 9 digit number on a piece of paper. Tell them to choose “at random” (whatever that means in this context.) Underneath you write your “random” nine digit number – 142857143

Multiply the two numbers. You can magically do it in one line writing from left to right with no working shown.  
Here is how it works:  
Suppose the number chosen is 987654321. In your head you duplicate this to 987654321987654321 which you then divide by 7 in one process.

It works because 143854143×7=1000000001.

Actually, 7 divides a number of similar looking numbers which directly contributes to some of the properties observed in the decimal system. (Change the base and some other number would have this honour.)

13 can also be made to work although it is a bit more tricky to divide by 13 without showing working. In the case of 13 you would write the eight digit number 76923077 since 76923077×13=1000000001

(Typing fast and have to go so excuse if mistake made…)

---

<div class="post-metadata">

**Author:** ![panache45](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/panache45/32/64_2.png) [@panache45](https://boards.straightdope.com/u/panache45)\
**Post date:** [November 8, 2013, 6:20am UTC](https://boards.straightdope.com/t/decimal-representation-of-1-7/673379/12 "2013-11-08T06:20:10Z")

</div>

> [@Exapno\_Mapcase](#):
>
> Even more fun than 1/7 is [1/49](http://www.counton.org/explorer/diversions/fascinating-fractions/), for similar reasons:
> 
> ```auto
> 
> 1/49=   
> 0.     
> 02      
> 04         
> 08
> 16
> 32
> 64
> 128
> 256
> 512
> ...
> ------------------------
> 0.0204081632653061...
> 
> ```

When I was a kid, I used to do math doodles during boring classes. I remember coming up with this sequence . . . but I don’t remember equating it to 1/49. That’s amazing.

---

<div class="post-metadata">

**Author:** ![md2000](https://avatars.discourse-cdn.com/v4/letter/m/73ab20/32.png) [@md2000](https://boards.straightdope.com/u/md2000)\
**Post date:** [November 8, 2013, 6:48am UTC](https://boards.straightdope.com/t/decimal-representation-of-1-7/673379/13 "2013-11-08T06:48:52Z")

</div>

> [@snailboy](#):
>
> …  
> From this, it appears that division that results in non-terminating decimal representations always result in repeating patterns with a number of digits less than the divisor.

That sounds like a rational answer.

---

<div class="post-metadata">

**Author:** ![Clipper222](https://avatars.discourse-cdn.com/v4/letter/c/97f17d/32.png) [@Clipper222](https://boards.straightdope.com/u/Clipper222)\
**Post date:** [November 8, 2013, 7:00am UTC](https://boards.straightdope.com/t/decimal-representation-of-1-7/673379/14 "2013-11-08T07:00:55Z")

</div>

Hi folks,

I just happened on this forum and have been enjoying myself so far, reading through the threads. This one in particular decided me on joining because it relates to something I’ve been thinking about a little bit lately. In short, my feeling is that any enthusiasm for the coincidental oddities that occur in our standard number system must be tempered by the acknowledgement that our base ten system is arbitrary and numbers come out dramatically different when transposed to other bases. Is it safe for me to say that 1/7 expressed in another base would probably not yield any notable repetition of digits?

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [November 8, 2013, 7:05am UTC](https://boards.straightdope.com/t/decimal-representation-of-1-7/673379/15 "2013-11-08T07:05:01Z")

</div>

It’ll have a finite decimal expansion in base b if and only if b is a multiple of 7.

---

<div class="post-metadata">

**Author:** ![Malacandra](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@Malacandra](https://boards.straightdope.com/u/Malacandra)\
**Post date:** [November 8, 2013, 7:10am UTC](https://boards.straightdope.com/t/decimal-representation-of-1-7/673379/16 "2013-11-08T07:10:43Z")

</div>

In the special case of base 7, 1/7 = 0.1

---

<div class="post-metadata">

**Author:** ![snailboy](https://avatars.discourse-cdn.com/v4/letter/s/97f17d/32.png) [@snailboy](https://boards.straightdope.com/u/snailboy)\
**Post date:** [November 8, 2013, 7:44am UTC](https://boards.straightdope.com/t/decimal-representation-of-1-7/673379/17 "2013-11-08T07:44:37Z")

</div>

> [@Clipper222](#):
>
> Is it safe for me to say that 1/7 expressed in another base would probably not yield any notable repetition of digits?

It will yield a repetition of digits in any base that isn’t a multiple of 7.

---

<div class="post-metadata">

**Author:** ![truthSeeker2](https://avatars.discourse-cdn.com/v4/letter/t/7cd45c/32.png) [@truthSeeker2](https://boards.straightdope.com/u/truthSeeker2)\
**Post date:** [November 8, 2013, 7:44am UTC](https://boards.straightdope.com/t/decimal-representation-of-1-7/673379/18 "2013-11-08T07:44:56Z")

</div>

> [@Malacandra](#):
>
> In the special case of base 7, 1/7 = 0.1

In base 7, 7 will be written as 10.😛

---

<div class="post-metadata">

**Author:** ![Malacandra](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@Malacandra](https://boards.straightdope.com/u/Malacandra)\
**Post date:** [November 8, 2013, 7:49am UTC](https://boards.straightdope.com/t/decimal-representation-of-1-7/673379/19 "2013-11-08T07:49:41Z")

</div>

Well, quite (and those two facts are related), but we were talking about decimal fractions. 🙂

---

<div class="post-metadata">

**Author:** ![Askthepizzaguy](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/askthepizzaguy/32/9405_2.png) [@Askthepizzaguy](https://boards.straightdope.com/u/Askthepizzaguy)\
**Post date:** [November 8, 2013, 8:18am UTC](https://boards.straightdope.com/t/decimal-representation-of-1-7/673379/20 "2013-11-08T08:18:30Z")

</div>

**Squares of integers**

2 times 2 is **4**  
3 times 3 is **9**  
4 times 4 is **16**  
5 times 5 is **25**  
6 times 6 is **36**  
7 times 7 is **49**  
8 times 8 is **64**  
9 times 9 is **81**  
10 times 10 is **100**

**Differences between sequential squares of integers**

4 (+ **5** ) = 9  
9 (+ **7** ) = 16  
16 (+ **9** ) = 25  
25 (+ **11** ) = 36  
36 (+ **13** ) = 49  
49 (+ **15** ) = 64  
64 (+ **17** ) = 81  
81 (+ **19** ) = 100  
100

**Reduce the difference between between sequential squares of integers by 1**

5 - 1 = **4**  
7 - 1 = \*\*6 \*\*  
9 - 1 = **8**  
11 - 1 = \*\*10  
\*\*13 - 1 = **12**  
15 - 1 = **14**  
17 - 1 = **16**  
19 - 1 = **18**

**Divide that number in half**

4 / 2 = **2**  
6 / 2 = **3**  
8 / 2 = **4**  
10 / 2 = **5**  
12 / 2 = **6**  
14 / 2 = **7**  
16 / 2 = **8**  
18 / 2 = \*\*9

The integers you just squared\*\*

2 times 2 is **4**  
3 times 3 is **9**  
4 times 4 is **16**  
5 times 5 is **25**  
6 times 6 is **36**  
7 times 7 is **49**  
8 times 8 is **64**  
9 times 9 is **81**  
10 times 10 is \*\*100

…  
\*\*

[Next page](https://boards.straightdope.com/t/decimal-representation-of-1-7/673379.md?page=2)
