Before reading this, you may want to look over this article on Number Base Representation.
Let's start with a simple problem: Convert to base .
We first convert to base , then convert that to base , as shown by the Number Base Representation article.
We see that . Now we convert this into base :
How many times does go into ? None, we go down to test the next place.
How many times does go into ? times. Now we multiply by to get , and subtract this from to get .
How many times does go into ? Twice, so we multiply by to get , and subtract that from to get .
How many times does go into ? time, so we subtract from to get .
How many times does go into ? times. Finally, our answer is .
Phew, that was a pretty calculation-heavy problem. If only there was an easier way...
Let's look at our original base number and our base number more closely: . Do you notice anything interesting?
How about if I do this: ?
We notice that in each little subdivision, the base representation is automatically converted to the base representation, independent of anything else! For example, , , and .
Why does this work? Let's observe what is happening, fundamentally: We can represent
.
Let's see what happens when we group this as follows:
Now we factor out the common multiple in each box:
Simplifying, we get that
But wait a minute! The stuff on the is exactly what a base representation looks like! Therefore, we can clearly see that .
Here is the trick in practice: We see that to convert base to base , we group into groups of 2. So we have .
We see that , , , and . Therefore our answer is . You can see how much faster this is than to convert to base , then back to base .
It turns out that to convert a base number to a base number, we group the original number's digits into groups of . I'll prove this later.
How about this problem: Convert to base .
Thinking along the lines of our previous exercise, we try to group the digits in to get the base representation of a number base .
Seeing that , let's try groupings of threes.
We try to group into groups of threes, but we can't, because there are digits and isn't divisible by . What do we do?
Well, we want there to be digits, so we simply add a at the beginning and there will be digits. It won't change the value of the number, so we are safe in doing this.
Now we can group as follows: .
Writing this out as the definition of a base number, we see that
Factoring out and simplifying, we get that .
Simplifying, we get that and we are done.
In practice, you won't go through all of these steps. You'll just see:
, so the leftmost digit is .
, so the middle digit is .
, so the last digit is and our final answer is .
This isn't limited to just powers of two; try this problem for yourself: Convert to base .
Warning: Intense Math Ahead!
Now we'll prove this cool trick for any arbitrary starting base converted into base for some positive integer .
Let the starting number be .
We are assuming that there is a multiple of digits in the number; if this is not the case, add leading 's to the beginning of the number until this is the case.
We represent this number as .
Now we group the digits into groups of each: .
Factoring each group, we get .
Changing to for all , we get that . This is exactly the base representation of a base number, so we are done.
You may think, after reading all of this, that this way of converting bases is way easier; you won't ever need to use the classic convert-to-10-then-to-desired-base trick. However, this is unfortunately not the case. This trick only works for converting a base number to a base number, i.e this trick will not work for converting a base number into a base number. This is because there is not way to group the digits so that one base turns into the other.
However, when in the occasion of changing a base number to a base number, you will know a neat and fast trick to do so. (These occasions happen frequently in competition math.)
Problems
*1. * Convert to base .
*2. * Convert to base . Hint: do an intermediate conversion first.
*3. * Convert to base .
*4. * Prove the formula for converting a base number to a base number.
Easy Math Editor
This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.
When posting on Brilliant:
*italics*
or_italics_
**bold**
or__bold__
paragraph 1
paragraph 2
[example link](https://brilliant.org)
> This is a quote
\(
...\)
or\[
...\]
to ensure proper formatting.2 \times 3
2^{34}
a_{i-1}
\frac{2}{3}
\sqrt{2}
\sum_{i=1}^3
\sin \theta
\boxed{123}
Comments
Thanks for reading through my third #CosinesGroup post. I know this one is an especially long one, but it takes some explaining.
Sorry for any bad explaining on my part; I felt that my explaining for this was under par.
Feedback is appreciated. If you have any questions, feel free to ask.
I hope you learned something from this post,
~Daniel
Log in to reply
Thank you Daniel! It was great :)
This is a useful trick in special scenarios. Another extention, is to convert from base bx to base by by going through base b as opposed to base 10. This is much faster, and avoids a bunch of arithmetic. Try the following:
As a suggestion for improvement, it is generally best to clearly illustrate why this method is great. In the first example, I might have given the entire working, to show how this method is a one-step process which is much easier than the standard approach.
Log in to reply
Yea, I think that was one of my problems on clarity. I realized that I didn't organize my article that well. I'll go add the fast way to the first example problem.
EDIT: also added the calculation for converting to base 10 then to the desired base.
To learn the very basics, see This Article
Log in to reply
Yes. This. +1 You are amazing.
Log in to reply
huh? this is screwed up. http://www.artofproblemsolving.com/Forum/viewtopic.php?f=721&t=566684
Fixed the link (there was a weird semicolon in that url)
Log in to reply
you didn't fix it?
I often resort to this technique in multiple-choice-questions and it saves a lot of time! Another great post!
I never knew this before, so yes thank you! The intense math section got a little messy but it was great; thanks for the post.
Thanks a lot for sharing the trick ... :) ...
Thanks a lot for shortcut method for answering quickly.
This is a very fast method for conversion of bases
you are quite interesting! I .......think so.......