aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Radix problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Radix problem" Watch "Radix problem" New topic
Author

Radix problem

Chandra Bhatt
Ranch Hand

Joined: Feb 28, 2007
Posts: 1707


I am used to decimal, octal, hexadecimal, binary.
But how to compute when radix is somewhat 4,5 ...


Please help me!


Regards,
cmbhatt


cmbhatt
Steven Young
Ranch Hand

Joined: Apr 11, 2007
Posts: 36
1111 for base 3:

1 * 3 "to the power of" 0 = 1
1 * 3 "to the power of" 1 = 3
1 * 3 "to the power of" 2 = 9 (i.e 3*3)
1 * 3 "to the power of" 3 = 27 (i.e 3*3*3)

So total is 1 + 3 + 9 = 27 = 40

1111 for base 4:

1 * 4 "to power of" 0 = 1
1 * 4 "to power of" 1 = 4
1 * 4 "to power of" 2 = 16 (i.e 4*4)
1 * 4 "to power of" 3 = 64 (i.e 4*4*4)

So total is 1 + 4 + 16 + 64 = 85

Hope this helps. I'm no Mathematics teacher, so this is the best that I can explain.
Chandra Bhatt
Ranch Hand

Joined: Feb 28, 2007
Posts: 1707
Fantastic Steven Young!

Awesome description, even a child "like me" can understand this!

Great Job!


Thankkoo!
cmbhatt
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Radix problem