{"id":2361,"date":"2013-08-30T21:01:35","date_gmt":"2013-08-30T21:01:35","guid":{"rendered":"http:\/\/www.oracletutoring.ca\/blog\/?p=2361"},"modified":"2013-08-30T21:01:35","modified_gmt":"2013-08-30T21:01:35","slug":"math-numbers-in-other-bases","status":"publish","type":"post","link":"https:\/\/www.oracletutoring.ca\/blog\/math-numbers-in-other-bases\/","title":{"rendered":"Math:  Numbers in other bases"},"content":{"rendered":"<h1>Tutoring math, you rarely hear of this now. \u00a0For computer science students, the math tutor gives a five-minute read on it.<\/h1>\n<p>In everyday life, the number system we use is base ten.<\/p>\n<p>The number 4062 means<\/p>\n<p>4&#215;1000 + 0x100 + 6&#215;10 + 2&#215;1<\/p>\n<p>More specifically, it means<\/p>\n<p>4&#215;10<sup><span style=\"font-size:medium\">3<\/span><\/sup>+0x10<sup><span style=\"font-size:medium\">2<\/span><\/sup>+6&#215;10<sup><span style=\"font-size:medium\">1<\/span><\/sup>+2&#215;10<sup><span style=\"font-size:medium\">0<\/span><\/sup><\/p>\n<p>Recall, of course, that x<sup><span style=\"font-size:medium\">0<\/span><\/sup>=1, x being any real number.<\/p>\n<p>So, what is the number 57 in base 2?<\/p>\n<p>Well, the powers of 2 are as as follows:<\/p>\n<p>2<sup><span style=\"font-size:medium\">0<\/span><\/sup>=1<\/p>\n<p>2<sup><span style=\"font-size:medium\">1<\/span><\/sup>=2<\/p>\n<p>2<sup><span style=\"font-size:medium\">2<\/span><\/sup>=2&#215;2=4<\/p>\n<p>2<sup><span style=\"font-size:medium\">3<\/span><\/sup>=2x2x2=8<\/p>\n<p>2<sup><span style=\"font-size:medium\">4<\/span><\/sup>=2x2x2x2=16<\/p>\n<p>2<sup><span style=\"font-size:medium\">5<\/span><\/sup>=32<\/p>\n<p>2<sup><span style=\"font-size:medium\">6<\/span><\/sup>=64<\/p>\n<p>and so on.<\/p>\n<p>57, written as a combination of powers of 2, can be thought of as<\/p>\n<p>1&#215;32 + 1&#215;16 + 1&#215;8 + 0x4 + 0x2 + 1&#215;1<\/p>\n<p>or, in other words,<\/p>\n<p>1&#215;2<sup><span style=\"font-size:medium\">5<\/span><\/sup> + 1&#215;2<sup><span style=\"font-size:medium\">4<\/span><\/sup>+1&#215;2<sup><span style=\"font-size:medium\">3<\/span><\/sup>+0x2<sup><span style=\"font-size:medium\">2<\/span><\/sup>+0x2<sup><span style=\"font-size:medium\">1<\/span><\/sup>+1&#215;2<sup><span style=\"font-size:medium\">0<\/span><\/sup><\/p>\n<p>Therefore, we have <\/p>\n<p>57=111001 in base 2.<\/p>\n<p><strong>Exercise:  Verify that 129, when converted into base 5, is 1004.<\/strong><\/p>\n<p>Solution:  129=1&#215;125 + 0x25 + 0x5 + 4&#215;1.  Of course, 125=5<sup><span style=\"font-size:medium\">3<\/span><\/sup>, 25=5<sup><span style=\"font-size:medium\">2<\/span><\/sup>, and so on.<\/p>\n<p>In computer science, the hexadecimal system &#8211; aka, base 16 &#8211; is often used.  We&#8217;ll take a look at that in a future post:)<\/p>\n<p>Jack of <a href=\"https:\/\/www.oracletutoring.ca\">Oracle Tutoring by Jack and Diane,<\/a> Campbell River, BC.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tutoring math, you rarely hear of this now. \u00a0For computer science students, the math tutor gives a five-minute read on it. In everyday life, the number system we use is base ten. The number 4062 means 4&#215;1000 + 0x100 + &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/www.oracletutoring.ca\/blog\/math-numbers-in-other-bases\/\"> <span class=\"screen-reader-text\">Math:  Numbers in other bases<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-2361","post","type-post","status-publish","format-standard","hentry","category-math"],"_links":{"self":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/2361","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/comments?post=2361"}],"version-history":[{"count":20,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/2361\/revisions"}],"predecessor-version":[{"id":2381,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/2361\/revisions\/2381"}],"wp:attachment":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/media?parent=2361"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/categories?post=2361"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/tags?post=2361"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}