Number Systems

  • Thread starter gEOdude
  • Start date
  • #1
13
0

Homework Statement


243 is a decimal number. You must convert it to base n, where n will be computed using the
digit (d) 5.
For example if your digit (d) was "7" , then n is
calculated as :n = d % 6 + 2 (where d = 7) = 7%6 + 2 = 3


Homework Equations


None.

The Attempt at a Solution



n = d % 6 + 2 (where d=5) = 5%6 + 2 = 3

243 to the base of 3 =
1000003
 

Answers and Replies

  • #2
35,625
12,159
d is given? Or does it come from somewhere else?
You used the example of d=7, I'm not sure if that was the idea of the homework problem.
 
  • #3
13
0
d is given? Or does it come from somewhere else?
You used the example of d=7, I'm not sure if that was the idea of the homework problem.
d is given as 5. But when i plug it into the formula to calculate n i keep getting 3. Im probably wrong because im not calculating it right. Im not having any difficulty with anything else, just that bit. So if i can get some assistance on calculating n with d=5 then I will be fine. Thanks.
 
  • #4
SteamKing
Staff Emeritus
Science Advisor
Homework Helper
12,798
1,670
d is given as 5. But when i plug it into the formula to calculate n i keep getting 3. Im probably wrong because im not calculating it right. Im not having any difficulty with anything else, just that bit. So if i can get some assistance on calculating n with d=5 then I will be fine. Thanks.

All I know is 24310 = 35

Using place-value, 1000003 = 1×35 + 0×34 + 0×33 + 0×32 + 0×31 + 0×30
 
  • #5
13
0
DId i calculate n right? CAN SOMEONE TELL ME IF I CALCULATED N RIGHT OR IF IM DOING SOMETHING WRONG. PLEASE!
 
  • #6
SteamKing
Staff Emeritus
Science Advisor
Homework Helper
12,798
1,670
DId i calculate n right?
Beats me. I don't understand the question or the formula you posted. Can you provide a reference or other information?
 
  • #7
35,625
12,159

Homework Statement


243 is a decimal number. You must convert it to base n, where n will be computed using the
digit (d) 5.
For example if your digit (d) was "7" , then n is
calculated as :n = d % 6 + 2 (where d = 7) = 7%6 + 2 = 3
If this is the full and exact problem statement, it is very odd.

If you plug d=5 into the formula then n won't be 3.
 
  • #8
Merlin3189
Homework Helper
Gold Member
1,666
777
This is indeed very strange.
You seem to have two distinct questions:
- convert a number into a different base, base n. This is very simple, so I don't think you have a problem here.
- find out what number n is. That is difficult because no one has defined n for you, just given an example using numbers conjured out of thin air!

The statement of the problem is odd to me: if n is to be computed from 5, why say (d)? And in your example, it is computed from 7, 6 and 2. If this really means (d), 6 and 2, why is 7 given a name (d) and 6 and 2 are not given names?

DId i calculate n right? CAN SOMEONE TELL ME IF I CALCULATED N RIGHT OR IF IM DOING SOMETHING WRONG. PLEASE!

So I can't tell you if you used the right formula. Using the formula you gave as an example,
:n = d % 6 + 2
and assuming % means modulo and : means nothing, then
5 % 6 + 2 <> 3 so your calculation is in error.
if % means integer division and : means nothing, then
5 % 6 + 2 <> 3 so your calculation is in error.

I can't tell which of these is the correct error, since 7 mod 6 = 1 and int( 7/6) =1 so your % could be either, but this is where your calculation seems to err, unless you can suggest another meaning for the % symbol or the : symbol.
 

Related Threads on Number Systems

  • Last Post
Replies
0
Views
2K
  • Last Post
Replies
20
Views
1K
  • Last Post
Replies
5
Views
4K
  • Last Post
Replies
3
Views
1K
  • Last Post
Replies
12
Views
3K
  • Last Post
Replies
4
Views
2K
  • Last Post
Replies
3
Views
4K
  • Last Post
Replies
1
Views
1K
  • Last Post
Replies
0
Views
1K
Top