Converting rational number to a new base.

  • Context: Undergrad 
  • Thread starter Thread starter battery2004
  • Start date Start date
  • Tags Tags
    Base Rational
Click For Summary

Discussion Overview

The discussion revolves around converting the rational number 63/64 from base 10 to base 4 using Radix conversion. Participants explore various methods and clarify concepts related to number base conversion, particularly focusing on the challenges of converting rational numbers.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant presents a formula for Radix conversion but expresses uncertainty about the steps involved and how to sum coefficients.
  • Another participant suggests alternative methods for converting 63/64 to base 4 and questions whether the original poster seeks a general solution for all repeating decimals.
  • A different participant emphasizes the need to understand Radix conversion and implies that it may be beneficial to learn its principles for clarity.
  • One participant proposes that since the denominator is a perfect power of the base, the conversion can be simplified by converting the numerator and adjusting the decimal position accordingly.
  • Another participant explains how to express 63/64 in decimal form and suggests a method for finding the equivalent in base 4 by replacing the base in the sum representation.
  • One participant seeks clarification on whether the conversion should be in fractional form or as a decimal representation in base 4, providing examples for both interpretations.

Areas of Agreement / Disagreement

Participants express various viewpoints on the conversion process, with no consensus reached on the best method or interpretation of the problem. Multiple competing approaches are presented, and the discussion remains unresolved regarding the optimal strategy for conversion.

Contextual Notes

Some participants note the complexity of division when the denominator is not a power of the new base, highlighting potential challenges in the conversion process.

battery2004
Messages
9
Reaction score
0
Hello,

I found one exercise - convert a rational number 63/64(base - 10) to a number system with a base of 4 using Radix conversion.

Searching through the internet i found this formula (i hope it`s the correct one :) ) -
http://img255.imageshack.us/img255/903/races3.jpg

Unlike integer type conversion formula, this is a little unclear. As i understand - the "C" is the number that i want to convert and "r" is the new base, but how many steps do i need to perfom (in the formula i = -1,-2,-3,-4...-n )? And how exactly do i sum these coefficients C?

Thanks in advance.
 
Last edited by a moderator:
Physics news on Phys.org
maybe someone has another idea how to turn 63/64 into a number with a base of 4?
 
If the problem asks you to use Radix conversion (I have no idea what that is), perhaps you should learn how that works shouldn't you? Is this for a course on number theory?
 
Last edited by a moderator:
battery2004 said:
maybe someone has another idea how to turn 63/64 into a number with a base of 4?

Is it just this this problem you want to solve or are you looking for a general solution for all repeating decimals? For this problem, since the denominator is a perfect power of the base, all that needs to be done is convert the numerator to base 4 and shift the decimal to the left by the number of places equal to the power.
 
Yes. Or think of it this way...

in decimal, one position to the left of the decimal is the 10^0 place, two positions is the 10^1 place, etc. One position to the right of the decimal is the 10^-1 place, two positions is the 10^-2 place, etc.

To write the number 63/64 in decimal, we look for a sum of the form a10^0 + b10^-1 + c10^-2 + ...

For 63/64, we com e up with 0.984375 because 9*10^-1, 8*10^-2, 4*10^-3, 3*10^-4, 7*10^-5, and 5*10^-6 all add up to give 63/64.

To do 63/64, all you have to do is replace 10 with 4 and find new constants. An example:

(7+13/16) = (1)(4) + (3)(1) + (3)(1/4) + (1)(1/16) so you would get 13.31 as your answer.
 
It's not quite clear to me what you mean. You talk about rational numbers and give an example in which the number as a fraction. Do you mean write it as a fraction (just convert numerator and denominator) in the new base, or in "decimal" (not quite the right word!) form in base 4?

For the example 63/64, 64= 43 so it is 10004. 63 is one less than 64 so it is 3334. As a fraction 63/64= (333/1000)4. That, of course, is 0.3334.

If the denominator were not a power of 4, that division would be considerably harder!
 

Similar threads

  • · Replies 33 ·
2
Replies
33
Views
5K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 85 ·
3
Replies
85
Views
9K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 19 ·
Replies
19
Views
29K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 17 ·
Replies
17
Views
2K
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
19K