I am trying to help my little brother with his math homeowrk.....and its conversions to various bases. Now honestly I haven't done this stuff since I was his age. Can anybody clue me in?
"Imagine all the people, sharing all the world"
-John Lennon
ALL YOUR BASE ARE BELONG TO US
Quote by imdeth
This man deserves my +1

+1

Quote by denizenz
Go in peace my son, and teach to the pit dwellers what I have shown unto you.

ಠ_ಠ

XBL: huffy409
1,2,3,4,5,10,11,12,13,14,15,20,21,22,23,24,25 =
1,2,3,4,5, 6, 7, 8, 9,10,11,12,13,14,15,16,17 etc.
Same for base 8 base 7 whatever. If you don't care to count it out write it out one base system above the other and the values correspond.
Have fun. I have.
Quote by SomeoneYouKnew
You should be careful what you say. Some asshole will probably sig it.

Quote by Axelfox
Yup, a girl went up to me in my fursuit one time.

Quote by Xiaoxi
I can fap to this. Keep going.
for base five, think of there being a ones column, a fives column, a 25's column, etc, the way "normal" base ten numbers have a ones, tens, hundreds, etc.

so 25 would be 100 in base 5, or 31 (which is 3*8=24+1) in base 8, or 1101 (16+8+1) in base 2.

edit: it would also be 19 in hex
Quote by Roger_Waters
^ wow i actually almost missed that hahaha iforgot your a genious

Don't blame us if we ever doubt you, you know we couldn't live without you.

I'm oedipus, bitch, the original balla
Bust out my 9, light up your Impala
fuck that police!
Last edited by iforgot539 at Oct 22, 2007,
"Hang on little bro, I'm going to go ask for help on my online guitar forum! Be back in a jiffy!"

But I think Jackal has it right. I forgot too.
Who dat?
Jackal is doing base 6:
10 in base five is five, not 5. You can't have a "5" in base 5, just like there's no digit for "10" in base ten.
Quote by Roger_Waters
^ wow i actually almost missed that hahaha iforgot your a genious

Don't blame us if we ever doubt you, you know we couldn't live without you.

I'm oedipus, bitch, the original balla
Bust out my 9, light up your Impala
fuck that police!
Remember that in base 10, a number like 10345 is equal to 1*10^4 + 0*10^3 + 3*10^2 + 4*10^1 + 5*10^0. The same pattern holds in other bases, with the 10s replaced by the new base. So for example, in hex (base 16), 2869 = 2*16^3 + 8*16^2 + 6*16^1 + 9*16^0 (which, if you calculate it out, is 10234 in base 10). This is how you convert things into base 10.

To convert it the other way (There might be a better method, I'm making up this one off the top of my head), you can figure out the largest power of the new base that is smaller than the current number. If we were going to convert 10345 into hex, we would do so by trying different powers of 16 until we reached one that was larger than 10345.

Ex:
16^0 = 1 <--smaller than 10345.
16^1 = 16 <--smaller than 10345.
16^2 = 256 <--smaller than 10345.
16^3 = 4069 <--smaller than 10345.
16^4 = 65536 <--larger than 10345.

Because 16^4 is larger than 10345, the number we will start at is 16^3, which is the largest power of 16 that is smaller than 10345.

We then divide 10345 by 16^3: 10345 / 16^3 = 2, remainder 2153.

We then repeat the process with the next smaller power of 16 and the remainder instead of the original number, and continue to repeat until we reach 16^0.

2153 / 16^2 = 8, remainder 105
105 / 16^1 = 6, remainder 9
9 / 16 ^ 0 = 9, with no remainder.

This means that 10345 = 2*16^3 + 8*16^2 + 6*16^1 + 9*16^0, which is 2869 in hex.

Hope that helps. If you have any questions, I'll stick around for a bit.
Quote by LochieW
Thats it, attackofnose wins LochieW's Official Trophy of Using His Googling Skills to the Max!

Hooray!