- #1
zeebo17
- 41
- 0
What is 1/7 in base 2? How would you solve for this?
Thanks!
Thanks!
zeebo17 said:What is 1/7 in base 2? How would you solve for this?
Thanks!
1/111
0.100010111000001001
0.142857
sure but not real interesting.Steve.pf said:wouldn't it be:
Code:1/111
But in decimal form it would be:
Code:0.100010111000001001
I'm not sure if it's the correct answer though. My logic was to take the result of 1/7:
Code:0.142857
remove the decimal (by multiplying it by 1,000,000) then converting that number to binary and then re-placing the decimal.
Is my method correct?
Steve.pf said:wouldn't it be:
Code:1/111
1/7 in base 2 is 0.001001001... (repeating).
To convert 1/7 to base 2, you can use the division method. Divide 1 by 2, and then take the remainder as the first digit after the decimal point. Keep repeating this process until the decimal has either terminated or started repeating.
The decimal equivalent of 0.001001001... (base 2) is approximately 0.142857 (repeating).
1/7 in base 2 is a repeating decimal because it has a prime factor, 7, that is not a factor of the base, 2. This results in a non-terminating and repeating decimal representation.
No, it is not possible to represent 1/7 in base 2 without it being a repeating decimal. This is because 1/7 is a recurring decimal in base 10, and any non-terminating decimal in base 10 will also be a non-terminating and repeating decimal in base 2.