Prove that an improper fraction with a finite binary expansion

Click For Summary

Homework Help Overview

The discussion revolves around proving that an improper fraction with a finite binary expansion can also be expressed as a decimal. The subject area includes concepts of number representation in different bases, specifically binary and decimal systems.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning

Approaches and Questions Raised

  • Participants explore the relationship between binary and decimal representations, questioning how fractions with finite binary expansions relate to decimal forms. Some suggest examining specific cases of fractions like 1/2^n to identify patterns. Others raise questions about the conditions under which a fraction can have finite representations in both systems.

Discussion Status

The discussion is active, with participants sharing insights and attempting to clarify the conditions for finite representations in binary and decimal forms. There are multiple interpretations being explored, particularly regarding the nature of denominators in fractions and their implications for representation in different bases.

Contextual Notes

Participants note that a fraction can be expressed in a finite binary form if its denominator is a power of 2, while a finite decimal representation requires the denominator to be a product of powers of 2 and 5. This distinction is central to the ongoing discussion.

Jamin2112
Messages
973
Reaction score
12

Homework Statement



I'm supposed to prove that an improper fraction with a finite binary expansion also can be written as a decimal.

Homework Equations



Obviously my fraction a/b, where a>b, will look like p1/21 + p2/22 + ... + pn/2n

The Attempt at a Solution



And I have no idea where to go with this.
 
Physics news on Phys.org
Can you write [itex]\frac{1}{2^n}[/itex] as a decimal for any n? Maybe try to do it by hand and see if there's a pattern. Then maybe use induction to formally establish that pattern.
 
hgfalling said:
Can you write [itex]\frac{1}{2^n}[/itex] as a decimal for any n? Maybe try to do it by hand and see if there's a pattern. Then maybe use induction to formally establish that pattern.

1/21 = 1/2 = .5
1/22 = 1/4 = .25
1/23 = 1/8 = .125
1/24 = 1/16 = .0625
1/25 = 1/32 = .03125
1/26 = 1/64 = .015625
.
.
.
Hmmmm ... No pattern detected. Hint?
 
Are you going to get any non-terminating or repeating decimals out of this? Why or why not?
 
hgfalling said:
Are you going to get any non-terminating or repeating decimals out of this? Why or why not?

Since the last digit is 5, and 5/2 is a decimal, you will always be able to get a decimal answer.
 
OK, so now you have a number with a finite binary representation (ie coefficients of negative powers of 2). And you have terminating decimals for each negative power of 2. Prove that you have won. :)
 
hgfalling said:
OK, so now you have a number with a finite binary representation (ie coefficients of negative powers of 2). And you have terminating decimals for each negative power of 2. Prove that you have won. :)

I'll take a shot at it.

Proof:

An improper fraction can be represented a/b, where a < b, and a, b [tex]\in[/tex] [tex]Z[/tex]. Suppose a/b can be represented as a finite binary expansion. Then a/b = m1/21 + m2/22 + m3/23 + ... + mn/2n.

Where should I go from here? Hence a/b = [tex]\delta[/tex]1/101 + [tex]\delta[/tex]2/102 + [tex]\delta[/tex]3/103 + ... + [tex]\delta[/tex]k/10k.
 
OK, so now you need the [itex]\delta_i[/itex] values.

So suppose I give you 1011.101 in binary. Can you convert it to decimal?
 
I presume you mean can be written as a finite decimal expansion- any number can be "written as a decimal". A number can be written as a finite binary expansion if and only if it is a fraction that, reduced to lowest form, has a power of 2 as denominator. A number can be written as a finite decimal expansion if and only if it is a fraction that, reduce to lowest form, has denominator which is a product of powers of 2 and 5 only.
 
  • #10
hgfalling said:
OK, so now you need the [itex]\delta_i[/itex] values.

So suppose I give you 1011.101 in binary. Can you convert it to decimal?

Sure.

(1x23)+(0x22)+(1x21)+(1x20)+(1x2-1)+(0x2-2)+(1x2-3) = 8 + 0 + 2 + 1 + 1/2 + 0 + 1/8 = 11 5/8 = 11.625.

All that matters is how I went about making the (1/2 + 0 + 1/8) into a decimal, i.e., I need to show that 100/2, 100/4, 100/8, 100/16, ... are decimals. I suppose some sort of induction would be necessary. My statement P(n): for all integers n≥1, 100/2n is a rational number. Proof. We use induction on n. If n=1, then 100/2n=100/21, a rational number. Thus the base case holds. Now we wish to show that if 100/2n is a rational number, then 100/2n+1 is a rational number. 100/2n is converted to 100/2n+1 simply by dividing by 2. Because halving a rational yields another rational number, 100/2n is a rational number for all n.

Something like that?
 
  • #11
HallsofIvy said:
I presume you mean can be written as a finite decimal expansion- any number can be "written as a decimal". A number can be written as a finite binary expansion if and only if it is a fraction that, reduced to lowest form, has a power of 2 as denominator. A number can be written as a finite decimal expansion if and only if it is a fraction that, reduce to lowest form, has denominator which is a product of powers of 2 and 5 only.

I'm supposed to prove that an improper fraction that can be represented with a finite binary expansion can also be written as a decimal (a base 10 expansion, in other words), but not the converse (show that not all finite base 10 expansions have finite base 2 expansions)
 
  • #12
So ...

1/21 = .5 -----
1/22 = .25 -----
1/23 = .125 ----- ends in 125
1/24 = .0625 ----- ends in 625
1/25 = .03125 ----- ends in 125
1/26 = .0015625 ----- ends in 625
1/27 = .00078125 ----- ends in 125
1/28 =.00390625 ----- ends in 625
1/29=.001953125 ----- ends in 125


That's the only patter I can detect: the last 3 digits alternate between 125 and 625.
 
  • #13
As I said before, the numbers that can be written as a finite decimal expansion are those rational numbers which, reduced to lowest form, have denominators powers of 2 and 5. A number will have a finite binary expansion if and only if it can be written as a fraction with denominator a power of 2 only.

Obviously if [itex]x= \frac{m}{2^n}[/itex] then it can be written as [itex]x= \frac{m}{2^n5^0}[/itex]. 1/5= 0.2 has a finite decimal expansion but its denominator is not a power of 2 and so cannot be written as a finite binary expansion.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 15 ·
Replies
15
Views
4K
  • · Replies 1 ·
Replies
1
Views
4K
Replies
9
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
7
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
5
Views
3K