The Easiest Shortcut to Translate Numbers Into Other Bases

Поділитися
Вставка
  • Опубліковано 26 гру 2024

КОМЕНТАРІ • 59

  • @Rockyzach88
    @Rockyzach88 3 дні тому +25

    Does this guy just get to study math between videos? I think I really need to break into this market lol.

  • @issholland
    @issholland 3 дні тому +4

    When I first started you were speaking python code to me but now I actually understand what you're saying! Hawking awesome!

  • @ComboClass
    @ComboClass  3 дні тому +13

    The first part of this video is a refresher about how to translate FROM other bases. Then most of the video is about a technique for translating INTO other bases (which I haven't covered before). Timestamps of different parts:
    0:00 - the two directions we could translate
    1:34 - the patterns of "basic bases" and the easier direction to translate
    5:33 - the technique to solve the harder direction to translate
    Consider supporting on Patreon: www.patreon.com/comboclass
    See the video description for more links

    • @sebas31415
      @sebas31415 3 дні тому

      You should pin this comment!

    • @wyattstevens8574
      @wyattstevens8574 3 дні тому

      Blackpenredpen has a video all about this! He says, "Let's say you're converting from base a to base b. We should have the base-b 0 to b-1 times table written out, so we don't go crazy." (In the example video, b=7)
      If a < b, he says, "take the number you're starting with and convert it into a polynomial in a, putting it in Horner form. Evaluate from the inside out, and convert to base b of course, using the times table, if the result ever exceeds b-1."
      If a > b, we handle it a little differently. Sure we turn the number into a polynomial, but now of course a > b, so we handle it differently. Change the coefficients (and value of a) to all be base-b friendly. Evaluate as before, and... you're done!

  • @adamredwine774
    @adamredwine774 3 дні тому +9

    Be a rebel, use base pi.

  • @mdrdprtcl
    @mdrdprtcl 3 дні тому +3

    Domotro doesn’t get enough credit for soundtracking ❤

  • @stickfiftyfive
    @stickfiftyfive 3 дні тому +12

    ohhh so close to 50k .. might even hit it tonight hahaha

  • @aelamf
    @aelamf 3 дні тому +3

    burning paper with text on it as a video editing technique looks really cool

  • @MeNowDealWIthIt
    @MeNowDealWIthIt 3 дні тому +2

    For converting to binary, there's a method I like that requires at most one subtraction per bit, as opposed to requiring a whole division per bit.
    1. Let the running remainder be the number you're trying to convert to binary
    2. Take the largest power of two less than or equal to the running remainder (e.g. the largest power of two less than seventy is sixty-four)
    3. in the solution, place a 1 in the place of that power of 2.
    4. Subtract the power of two from the running remainder to get the new running remainder
    5. If the running remainder is nonzero, GOTO 2. Otherwise, place a 0 in every place we haven't placed a 1.
    Example, converty 70 from decimal to binary
    The largest power of 2 less than or equal to 70 is 64, so there's a 1 in the 64's place, and a 0 in the infinitely many places to the left of it.
    70 - 64 = 6.
    The largest power of 2 less than or equal to 6 is 4, so there's a 1 in the 4's place.
    6 - 4 = 2.
    The largest power of 2 less than or equal to 2 is 2, so there's a 1 in the 2's place.
    2 - 2 = 0.
    So there's a 1 in the 64's, 4's, and 2's place, and a 0 in all other places. 1000110

    • @MeNowDealWIthIt
      @MeNowDealWIthIt 3 дні тому

      This most-significant-digit first method is also applicable to other bases, but it requires more memorization or lookups than it does in binary, for diminishing returns - In general, you look at the largest *multiple of a power of the base* less than the running remainder, which gets more dense as the base gets bigger.
      Converting seventy to seximal for example:
      The largest multiple of a power of six less than seventy is thirty-six, so there's a 1 the 36's place 70-36=34
      The largest multiple of a power of six less than 34 is 30, so there's a 5 in the 6's place. 34-30=4, so there's a 4 in the 1's place, so 70 in seximal is 154.

  • @TalsBadKidney
    @TalsBadKidney 3 дні тому +2

    Thanks domotro

  • @maynardtrendle820
    @maynardtrendle820 День тому

    Well presented!🌞 Nice job, brother.

  • @geekwhoeatsrice
    @geekwhoeatsrice 3 дні тому +2

    You should look up James Tanton's exploding dots. I feel you'd get a kick out of it.

  • @theassailer18
    @theassailer18 3 дні тому +3

    Converting between bases 2 and 16 is super easy, just group digits.

  • @Ninja20704
    @Ninja20704 2 дні тому

    I was first taught this trick in my computing class when we were learning binary and hexadecimal and how to convert base 10 into them.
    For binary, its slightly easier to just find the largest power of 2, subtract and then repeat on the leftover, since the digits are only 0 or 1, so we don’t need to work out any coeffecient in front of it.
    But for hex, using this division-remainder method is easier conpared to finding the largest power of 16 and then finding the coefficient infront of it
    Great video nontheless

  • @815TypeSirius
    @815TypeSirius 3 дні тому +3

    For over 10 bases why not just use letters? Thats good to base 52?

    • @ComboClass
      @ComboClass  3 дні тому +2

      I did use letters. I used B for 11 in one of my examples

    • @815TypeSirius
      @815TypeSirius 3 дні тому

      @ComboClass like, only letters. So. 5 11 4 is ekd.

    • @notnullnotvoid
      @notnullnotvoid 3 дні тому +5

      @@815TypeSirius You certainly could use only letters, but it's already an established convention to start with digits for the first ten, so that's what people normally stick with, in order to avoid confusion. When and why that became the convention, I don't know. Probably people figured it would be easier to learn to read e.g. hexadecimal if you only had to memorize the numeric values of 6 new symbols instead of all 16.

    • @MrCheeze
      @MrCheeze 3 дні тому +1

      @@notnullnotvoid Mainly it's handy that you don't have to do any conversion for numbers that are single-digit in both bases.

    • @landsgevaer
      @landsgevaer 3 дні тому

      ​@@815TypeSirius I don't think you gave this much thought: if e is 5, what would zero be?

  • @IOverlord
    @IOverlord 3 дні тому +1

    Base pi sounds really good. Or some phi

  • @mikechappell4156
    @mikechappell4156 2 дні тому

    If you wanted to convert base a to base b, why would you convert to base ten (assuming neither a nor b are ten.)?

    • @ComboClass
      @ComboClass  2 дні тому +1

      Stopping by base ten in the middle lets you do the division using base ten arithmetic, which is way easier for a modern human than trying to do the division directly in another base's arithmetic. Also it lets you know what quantity it represents.

  • @unknowntotherestoftheworld
    @unknowntotherestoftheworld 3 дні тому

    How do i translate into and out of base 0 ?

    • @orterves
      @orterves 3 дні тому +1

      I'll ask my NaN

  • @hello_hi1
    @hello_hi1 3 дні тому

    What about direct conversions from one base to another

    • @ComboClass
      @ComboClass  2 дні тому

      To use this method directly from one base to another, you would need to know arithmetic (division) in another base. If you want to use base ten arithmetic (which will typically be easier) you essentially stop by base ten in between (which is like the step of figuring out what quantity it represents).

  • @X3MgamePlays
    @X3MgamePlays 2 дні тому

    Ah yes, Purrrrrfect powers.
    Neat trick for recalculating the bases.
    As an extra, if you have decimals. You simply need to do the same. And place the decimal back in with the same ammount of numbers it had on the right.
    Little thing to watch out is that if there are remainders of zero, right at the most right. You need to keep an eye out for those as well.

  • @harriehausenman8623
    @harriehausenman8623 2 дні тому

    Still the best when it comes to numbersystems! 🤗

  • @hkayakh
    @hkayakh 3 дні тому +1

    6:31 Falling board jumpscare

  • @MeNowDealWIthIt
    @MeNowDealWIthIt 3 дні тому

    For converting to balanced ternary, a quotient of n with a remainder 2, could also be considered a quotient of n+3 with a remainder of -1.

  • @AliceErishech
    @AliceErishech 3 дні тому

    Unexpectedly, this turned out to not be new to me. I basically worked out the same method in the past while writing a simple timer that properly showed things like minutes, hours, and days.

  • @jasimmathsandphysics
    @jasimmathsandphysics 3 дні тому

    It says the discord link is expired 😢

    • @ComboClass
      @ComboClass  3 дні тому

      Whoops, I just replaced the link in this video description, so I think the link should work again

    • @jasimmathsandphysics
      @jasimmathsandphysics 3 дні тому

      @@ComboClass Thanks! I have not watched the full video yet but I use to work on this problem that I started in highschool and your videos on bases just reminds me of it. The problem was, how could you easily write out a base 10 fraction converted to base b using its digits. I managed to find a relationship but it's not easy to explain on a youtube comment.

  • @ritorules1442
    @ritorules1442 3 дні тому

    Im trying to use base 10,077,696 and this video useless because if i use a number smaller than 10077696 it leaves a remainder which is just the vase number with zero as the number for the next step, usefull for bumbers larger than it though

    • @JayQuebec116
      @JayQuebec116 3 дні тому +1

      if you use a number smaller than the base, then you already have your answer, theres no next step

    • @ComboClass
      @ComboClass  3 дні тому +1

      That would still work in the pattern. If your base is larger than your number, your result is 0 with a remainder of that number, and that a single-digit character for that remainder would the only digit of the answer

    • @ritorules1442
      @ritorules1442 2 дні тому

      @@ComboClass but what if I get a remainder with a decimal

  • @mienzillaz
    @mienzillaz 2 дні тому

    In excel I was doing basically the same thing. Divide and take whole part and repeat ( reduce() ).
    Btw, shame you didn't use "dec" and "elf".

  • @nanamacapagal8342
    @nanamacapagal8342 3 дні тому +1

    "Translate from base 6 to base 12 by using 10 as in intermediate"
    Be a rebel. Cut out the middle man. Do math in base 13, if necessary.

    • @ComboClass
      @ComboClass  2 дні тому

      You can do division in another base's arithmetic if you want to "cut out the middle man" but if you want to use the base ten arithmetic you're familiar with, it's easier to stop by base ten in the middle (which also lets you know what quantity it represents).

  • @bjorntorlarsson
    @bjorntorlarsson 2 дні тому

    Wait now, please!
    Why wouldn't 0 (zero) work as a base? Then we have two thingies:
    The impossible, and the definition of the impossible. And thus having two things, we can start the count down, and can go hunt primes together.

  • @heterotic
    @heterotic 3 дні тому

    Hmm.... Some digit.... ANY digit? Like, it DOESN'T matter the Digit, if we know the Base, we can Parse the Representation, if we know what quantity the Digit is? My new digit is 'Iophiel'.

  • @heterotic
    @heterotic 3 дні тому

    Huh, the Denominator is like a Bas(is)...

  • @bjorntorlarsson
    @bjorntorlarsson 2 дні тому

    I hate looong division! and I don't even know what it is supposed to be. If I were tought it in school, I've forgotten it. I too count from the front, much like I have six. And 1200+something is a good start for the lazy.

  • @heterotic
    @heterotic 3 дні тому

    ua-cam.com/video/7PCkvCPvDXk/v-deo.html