Beginner's Guide to Coding and Data

Level: Beginner

5 Patterns with Numbers - Binary to Base-36 | Numerals across bases

video

expand_more chevron_left

text

expand_more chevron_left

Understanding Numeral Systems in Different Bases

Have you ever wondered how numbers are expressed in different bases? We're here to explore the fascinating world of numeral systems and how they work across various bases, from base 2 to base 36.

To begin our journey, let's address a simple question: What numeral is used to express the number 17 in base 16?

  • 17
  • 1
  • 11
  • 2

We'll answer this question and unlock the secrets of numeral systems. Soon, you'll be able to confidently solve questions like the one above for any base. This knowledge stems from recognizing patterns inherent in numeral systems.

These patterns apply universally, from binary (base 2) to hexadecimal (base 16) to duotrigesimal (base 32) and beyond.

Pattern 1: The Universal Zero

The first pattern is all about the number 0. Interestingly, the representation of 0 remains the same across every base. It's a universal constant in numeral systems.

Pattern 2: Unity in Ones

Similar to the first pattern, the number 1 also holds a special place. Just like 0, the numeral for 1 remains consistent across positional numeral system bases.

Pattern 3: The Base Identity

Now, let's address the question we encountered earlier. For any base, the numeral representing the base itself is 10. This pattern emerges from the carryover process we discussed in previous lessons. So, whether you're in base 2 or base 36, the answer to the numeral for the base in that base is 10.

Take a moment to look at the numeral for the number 2 in base 2, and observe how the numeral 10 shifts down the list as we increment the number.

The key to answering questions like the one at the beginning of this lesson is to watch the number 10 and see who's trailing behind. If you can spot it, let us know in the comments.

Pattern 4: Less is More

When the base is higher than the number itself, only one digit is required to represent the number. It's a concise way to encode values in bases where the base exceeds the number.

Pattern 5: Magnitude and Digits

The fifth pattern relates to the magnitude of the number and the number of digits required to represent it in each base. Let's take a massive number like 1 quadrillion. As we move through different bases, we'll notice that the number of digits required to encode 1 quadrillion decreases. This phenomenon is due to the constraints of representing numbers with a finite number of digits in computer systems. Higher bases allow us to represent more significant values with a single digit.

  • In base 2 (binary): 111011100110101100101000000000
  • In base 8 (octal): 73425420000
  • In base 10 (decimal): 1,000,000,000,000 (One Quadrillion)
  • In base 16 (hexadecimal): 3B2E19C200
  • In base 32: 1CKGDK0
  • In base 64: 3iJpLK0

Feel free to explore this notebook on your own and see if you can discover any other intriguing patterns in numeral systems. If you do, share your findings in the comments section.

quiz

expand_more chevron_left
deeplizard logo DEEPLIZARD Message notifications

Quiz Results

resources

expand_more chevron_left
What numeral is used to express the number 17 in base-16. a) 17 b) 1 c) 11 d) 2 Soon you'll be able to snap answer questions like this one for any base. This is due to one of the patterns I'm about show you for numeral systems. Let's check it out. Notebook: https://beta.observablehq.com/@deeplizard/base-table-base-2-through-base-36 Prerequisites videos: Numerical data explained - https://youtu.be/YDDqe60omL0 Numeral vs Number - https://youtu.be/RSdnNZBj8HQ Binary vs Decimal - https://youtu.be/-MM6PcEQnWc Hexadecimal explained - https://youtu.be/JlLnt4aJEK0 Next video: Is your name also a NUMBER? - https://youtu.be/jxYi4RGlIV4 πŸ•’πŸ¦Ž VIDEO SECTIONS πŸ¦ŽπŸ•’ 00:00 Welcome to DEEPLIZARD - Go to deeplizard.com for learning resources 00:30 Help deeplizard add video timestamps - See example in the description 04:00 Collective Intelligence and the DEEPLIZARD HIVEMIND πŸ’₯🦎 DEEPLIZARD COMMUNITY RESOURCES 🦎πŸ’₯ πŸ‘‹ Hey, we're Chris and Mandy, the creators of deeplizard! πŸ‘€ CHECK OUT OUR VLOG: πŸ”— https://youtube.com/deeplizardvlog πŸ’ͺ CHECK OUT OUR FITNESS CHANNEL: πŸ”— https://www.youtube.com/channel/UCdCxHNCexDrAx78VfAuyKiA 🧠 Use code DEEPLIZARD at checkout to receive 15% off your first Neurohacker order: πŸ”— https://neurohacker.com/shop?rfsn=6488344.d171c6 ❀️🦎 Special thanks to the following polymaths of the deeplizard hivemind: Mano Prime πŸ‘€ Follow deeplizard: Our vlog: https://youtube.com/deeplizardvlog Fitness: https://www.youtube.com/channel/UCdCxHNCexDrAx78VfAuyKiA Facebook: https://facebook.com/deeplizard Instagram: https://instagram.com/deeplizard Twitter: https://twitter.com/deeplizard Patreon: https://patreon.com/deeplizard YouTube: https://youtube.com/deeplizard πŸŽ“ Deep Learning with deeplizard: AI Art for Beginners - https://deeplizard.com/course/sdcpailzrd Deep Learning Dictionary - https://deeplizard.com/course/ddcpailzrd Deep Learning Fundamentals - https://deeplizard.com/course/dlcpailzrd Learn TensorFlow - https://deeplizard.com/course/tfcpailzrd Learn PyTorch - https://deeplizard.com/course/ptcpailzrd Natural Language Processing - https://deeplizard.com/course/txtcpailzrd Reinforcement Learning - https://deeplizard.com/course/rlcpailzrd Generative Adversarial Networks - https://deeplizard.com/course/gacpailzrd Stable Diffusion Masterclass - https://deeplizard.com/course/dicpailzrd πŸŽ“ Other Courses: DL Fundamentals Classic - https://deeplizard.com/learn/video/gZmobeGL0Yg Deep Learning Deployment - https://deeplizard.com/learn/video/SI1hVGvbbZ4 Data Science - https://deeplizard.com/learn/video/d11chG7Z-xk Trading - https://deeplizard.com/learn/video/ZpfCK_uHL9Y πŸ›’ Check out products deeplizard recommends on Amazon: πŸ”— https://amazon.com/shop/deeplizard πŸ“• Get a FREE 30-day Audible trial and 2 FREE audio books using deeplizard's link: πŸ”— https://amzn.to/2yoqWRn 🎡 deeplizard uses music by Kevin MacLeod πŸ”— https://youtube.com/channel/UCSZXFhRIx6b0dFX3xS8L1yQ ❀️ Please use the knowledge gained from deeplizard content for good, not evil.

updates

expand_more chevron_left
deeplizard logo DEEPLIZARD Message notifications

Update history for this page

Did you know you that deeplizard content is regularly updated and maintained?

  • Updated
  • Maintained

Spot something that needs to be updated? Don't hesitate to let us know. We'll fix it!


All relevant updates for the content on this page are listed below.