Base 5

• Oct 30th 2006, 11:47 AM
t-lee
Base 5
Does 124(base 5) represent an odd number? How can you determine whether a number is odd by looking at its base-five representation?

Any takers?:confused:
• Oct 30th 2006, 12:10 PM
ThePerfectHacker
Quote:

Originally Posted by t-lee
Does 124(base 5) represent an odd number? How can you determine whether a number is odd by looking at its base-five representation?

Any takers?:confused:

$(124)_5$
Is,
$1\cdot 5^2 +2\cdot 5^1+4\cdot 1$
Is that even or odd?
• Oct 30th 2006, 02:31 PM
Soroban
Hello, t-lee!

Quote:

Does $124_5$ represent an odd number? . . . no

How can you determine whether a number is odd by looking at its base-five representation?

Since the base is an odd number, it could be tricky.

But there is a simple rule:
. . Even number of odd digits: even
. . .Odd number of odd digits: odd

• Oct 30th 2006, 03:43 PM
Quick
Quote:

Originally Posted by Soroban

Since the base is an odd number, it could be tricky.

But there is a simple rule:
. . Even number of odd digits: even
. . .Odd number of odd digits: odd

there is an odd number of odd digits in 124...
• Oct 30th 2006, 04:49 PM
topsquark
Quote:

Originally Posted by Quick
there is an odd number of odd digits in 124...

Yes, which means that $124_5$ is odd which, in fact, it is. Don't let that 4 on the end fool you. What TPH was trying to say is that
$1 \cdot 5^2$ is odd
$2 \cdot 5^1$ is even
$4 \cdot 5^0$ is even

odd + even + even = odd.

-Dan