Skip to main content

Number Bases

It was Christmas time when the kid and I started talking about number bases.  The air outside was more than normally chill for San Francisco.  In the winter here, thanks to the fog, the air’s still damp, so cold feels really cold, but the chill was compensated for by town being even prettier than usual; sporting all it’s holiday lights.  People on public transit were more tired than in other seasons; the holiday rush, and December’s early sunsets combined to make a sleepy, almost lethargic atmosphere.  The season also seemed to have made our generally friendly fellow bus riders even a little more affable.  Smiles swept across their faces a little more quickly.  People scooched and shuffled to help each other get into the crowded buses.

The kid and I were on one of these buses, returning to the house from who knows where when, mostly just to liven up the ride, and with only the slightest hint of an ulterior motive, I asked her, “How many numbers can you make from a single digit?”

Why’d I do it?
I did in fact have an ulterior motive even if it was just a smidgen of one.  In my work with computers I use a lot binary, a number system that only has two values per digit, 0, and 1.  I also use a number system called hexadecimal.  Hexadecimal has 16 different numbers.  They are, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b, c, d, e, and f, (seriously, not making it  up).  I wanted to be able to talk to my kids about what I do at work.  Hence the question, “How many different numbers can you make with a single digit?

Technical terms (a brief interlude)
Please excuse one more interruption in our tale.  Before we go too much further, let’s get the fancy technical terms out of the way.  Binary and hexadecimal are specific names for two specific systems of numbering.  Mathematicians, (who for various syntactic and semantic reasons are probably cringing as they read this), call these systems of numbering ‘number bases’.  The binary system is called ‘base 2’, (there are two single digit numbers in the system, 0, and 1).  Hexadecimal is called base 16.  That’s because there are 16 single digit numbers, (go ahead,count them above… yes, a - f are numbers in hexadecimal).  None of us can really escape number bases, we can just choose not to discuss them; the system we all use every day is  base 10, (0 - 9: 10 numbers).

Learning our native base
So, back to the kid’s and my conversation. You’ll recall I asked, “How many numbers can you make with one digit?”  She was unsure, so I suggested counting them.

“1, 2, 3, 4, 5, 6, 7, 8, 9, 10…”

As the bus veered off of Ocean, to enter Persia, in our little neighborhood called Excelsior, I interrupted, “Stop!  Can you write down 10 with one digit?”

“What?”

“When you write down 10, how many digits—characters—do you have to use?  What do you write down on paper for 10?”

“A 1, and a 0,” she answered.

“OK, so 10 doesn’t count because we only want to know how many single digit numbers there are.  Ten takes two digits, a one, and a zero,” I said as I wrote the digits in the air with my finger, being careful to get the one on her left, and the zero on her right as I faced her; a trick I’d learned in my college beer-money job—tutoring physics.  I continued, “So, how many number can you make with a single digit?”

“9?”

“What about 0?  It’s a single digit right?”

“Oh yeah, 0!”

“So, how many single digit numbers are there?”

 “Nine plus one more for 0,” she said counting on her fingers.  “So, 10.”

 “Awesome!  You just figured out what number base we use!  The number of single digits in a number system is called its base.  We use base 10.”

“OK,” she said with a grin.

We stopped to pick up new passengers at the corner of Persia and MIssion.  The kid and I were able to grab seats as people filed first out, and then into the bus.  As we sat down, our neighbors got on carrying pink boxes of Salvadoran pastries from the bakery near our stop.  The warmth of their aroma hit us as the boxes and their associated passengers scattered throughout the bus.  As we got back under way, I jumped back into our conversation.

“So, what number system do we use every day?  What base?”

“10,” the kid exclaimed as we got a sideways glance from a sleepy fellow passenger.

“Good job!  So, what’s the biggest number you can make with single digits?”

“10?” she pondered.

“Really?  Doesn’t that take two digits?”

“Oh yeah!  OK, 9 then.”

“Cool deal!  So, what number base do we use?”

“Base 10!”

“What’s the biggest single digit number?”

“9!”

The bus squeaked to a stop at Naples.  Lots of people live near there.  They all trundled off.  The doors closed and the bus continued to power up the hill..

“What if we were in base 4?  How many single digit numbers would we have?”

“What?”

“So, in base 10 we have 10 single digit numbers.  If we had another system called base 4, how many single digit numbers do you think it would have?”

“4?”

“Yup!” I beamed as we crossed Vienna.  What would they be?  Which numbers?”

“1, 2, …”

“What about zero?” I interjected.

“Oh, 0, 1, 2, 3, and 4.”

“Really 4?  How many numbers is that with 4 in there?  Count them.”

Diaze started out counting.  “1, …”

“Make sure you start with zero.”

“0, 1, 2, 3, 4,” she took time to look at her five fingers that were now up.

“Too many numbers right?  We only want four numbers for base 4 just like there were 10 single digit numbers in base 10.  Got it?”

“I think so.”

“So, how many single digit numbers in base 4?”

“4”

“What are they?”

“0, 1, 2, and 3.”

“Sweet!  What’s the biggest single digit in base 4?”

“3!”

“Cool!  So, the biggest single digit is always one less than the base.  In base 10 it was 9.  In base 4 it was 3.”  We got off the bus at our stop, and trundled up the hill, talking about number bases as we made our way through the chill night air up to the house.

The Base Game
We spent time on the next several bus rides going over all sorts of bases.  I figured worst case, the kid was working on counting and on subtracting one.  What could we lose?

Before long, she could habitually respond with the correct answers to my questions about number bases.  As the game became easy, I began to plan my next question.  What happens when you run out of room in your single digit?

Next:
When digits are all filled up.


Comments

Popular posts from this blog

The Valentine's Day Magnetic Monopole

There's an assymetry to the form of the two Maxwell's equations shown in picture 1.  While the divergence of the electric field is proportional to the electric charge density at a given point, the divergence of the magnetic field is equal to zero.  This is typically explained in the following way.  While we know that electrons, the fundamental electric charge carriers exist, evidence seems to indicate that magnetic monopoles, the particles that would carry magnetic 'charge', either don't exist, or, the energies required to create them are so high that they are exceedingly rare.  That doesn't stop us from looking for them though! Keeping with the theme of Fairbank[1] and his academic progeny over the semester break, today's post is about the discovery of a magnetic monopole candidate event by one of the Fairbank's graduate students, Blas Cabrera[2].  Cabrera was utilizing a loop type of magnetic monopole detector.  Its operation is in...

Cool Math Tricks: Deriving the Divergence, (Del or Nabla) into New (Cylindrical) Coordinate Systems

Now available as a Kindle ebook for 99 cents ! Get a spiffy ebook, and fund more physics The following is a pretty lengthy procedure, but converting the divergence, (nabla, del) operator between coordinate systems comes up pretty often. While there are tables for converting between common coordinate systems , there seem to be fewer explanations of the procedure for deriving the conversion, so here goes! What do we actually want? To convert the Cartesian nabla to the nabla for another coordinate system, say… cylindrical coordinates. What we’ll need: 1. The Cartesian Nabla: 2. A set of equations relating the Cartesian coordinates to cylindrical coordinates: 3. A set of equations relating the Cartesian basis vectors to the basis vectors of the new coordinate system: How to do it: Use the chain rule for differentiation to convert the derivatives with respect to the Cartesian variables to derivatives with respect to the cylindrical variables. The chain ...

More Cowbell! Record Production using Google Forms and Charts

First, the what : This article shows how to embed a new Google Form into any web page. To demonstrate ths, a chart and form that allow blog readers to control the recording levels of each instrument in Blue Oyster Cult's "(Don't Fear) The Reaper" is used. HTML code from the Google version of the form included on this page is shown and the parts that need to be modified are highlighted. Next, the why : Google recently released an e-mail form feature that allows users of Google Documents to create an e-mail a form that automatically places each user's input into an associated spreadsheet. As it turns out, with a little bit of work, the forms that are created by Google Docs can be embedded into any web page. Now, The Goods: Click on the instrument you want turned up, click the submit button and then refresh the page. Through the magic of Google Forms as soon as you click on submit and refresh this web page, the data chart will update immediately. Turn up the:...