{"id":1335,"date":"2008-09-21T12:02:07","date_gmt":"2008-09-21T04:02:07","guid":{"rendered":"http:\/\/www.intmath.com\/blog\/?p=1335"},"modified":"2014-12-06T11:32:52","modified_gmt":"2014-12-06T03:32:52","slug":"the-intmath-newsletter-21-sep-2008","status":"publish","type":"post","link":"https:\/\/www.intmath.com\/blog\/letters\/the-intmath-newsletter-21-sep-2008-1335","title":{"rendered":"The IntMath Newsletter - 21 Sep 2008"},"content":{"rendered":"<p>In this Newsletter:<\/p>\n<p>1. Math tip - Hexadecimal Numbers<br \/>\n2. Encryption - and a challenge<br \/>\n3. Current IntMath Poll - Math Anxiety<br \/>\n4. From the math blog<br \/>\n5. Final thought<\/p>\n<hr>\n<h2>1. Math tip - Hexadecimal Numbers<\/h2>\n<p>First, so we can better understand hexadecimal numbers, let's talk about our <b>normal number system<\/b>: 0, 1, 2, 3, 4, ...<\/p>\n<p>This system is called the <b>Hindu-Arabic<\/b> number system because it was developed in India (by the Hindus) and was spread throughout the Middle East and Europe by Muslim scholars around 1000 years ago. Hindu-Arabic numerals finally replaced the Roman Numeral system (I, II, III, IV, V,...) in Europe around 1500.<\/p>\n<p>The biggest contribution of the new number system was that it was <b>positional<\/b>. That is, if I have the number 439, the \"4\" really means \"4x100 = 400\", the \"3\" means \"3x10 = 30\" and the \"9\" means \"9x1 = 9 units\". The <b>position<\/b> of the digit in the number determines its <b>value<\/b>. <\/p>\n<p>Our number system uses <b>base 10<\/b>. This means that after every 10 digits, we need to add \"1\" to the column on the left. Consider 36, 37, 38, 39. The next number is 40. We have added \"1\" to the column on the left, and the 9 \"ticks over\" to 0 once again.<\/p>\n<p>Using exponents, base 10 numbers are based on the following values in each column (right to left):<\/p>\n<p>10<sup>0<\/sup> = 1<br \/>\n10<sup>1<\/sup> = 10<br \/>\n10<sup>2<\/sup> = 100<br \/>\n10<sup>3<\/sup> = 1,000<br \/>\n10<sup>4<\/sup> = 10,000<\/p>\n<p>Now let's look at an alternative number system that has important applications in computers. <\/p>\n<p>Here we learn that 100 is not always \"one hundred\"!<\/p>\n<p><b>Hexadecimal Numbers<\/b><br \/>\nHexadecimal numbers use <b>base 16<\/b> (not base 10 like our normal number system). \"Hexa-\" means \"6\" and \"deci-\" is \"ten\". <\/p>\n<p>In hexadecimal numbers, the digits 0 to 9 are used and the next number is written using the letter \"A\" (to mean \"ten\"). Continuing, \"B\" means \"eleven\", \"C\" means \"twelve\", \"D\" means \"thirteen\", \"E\" means \"fourteen\" and \"F\" means \"fifteen\".<\/p>\n<p>The next number is written \"10\" (which actually means \"sixteen\" in our normal system), and the following number is \"11\" (which is really \"seventeen\"). Next is \"12\" which means \"16+2=18\", and so on. <\/p>\n<p>Like the Hindu-Arabic decimal system, the hexadecimal system is <b>positional<\/b>. <\/p>\n<p>For example, in the hexadecimal number \"34A\", <\/p>\n<ul>\n<li>The \"3\" means \"3x16<sup>2<\/sup> = 768\", <\/li>\n<li>The \"4\" means \"4x16 = 64\", and <\/li>\n<li>The \"A\" means \"ten\". <\/li>\n<\/ul>\n<p>Altogether, the number \"34A\" has decimal value<br \/>\n768+64+10 = 842.<\/p>\n<p>The hexadecimal system is based on powers of 16, as follows:<\/p>\n<p>16<sup>0<\/sup> = 1<br \/>\n16<sup>1<\/sup> = 16<br \/>\n16<sup>2<\/sup> = 256<br \/>\n16<sup>3<\/sup> = 4,096<br \/>\n16<sup>4<\/sup> = 65,536<\/p>\n<p>So in the hexadecimal system, the number \"100\" is actually equal to 256 in the ordinary decimal system.<\/p>\n<p>Similar to the decimal system, we add \"1\" to the column on the left as we count up. In the hexadecimal system, \"E + 1 = 10\" (which means \"fifteen plus one equals sixteen\"). Or we could have the counting sequence 39, 3A, 3B, 3C, 3D, 3E, 3F, 40. That last number is obtained by adding one to the left column (giving \"4\") and the \"F\" ticks over back to \"0\".<\/p>\n<p>For an example of how hexadecimal numbers are used in computing, the <b>colors of the Web page<\/b> that you are looking at right now are coded using hexadecimal values. A white background will be written #FFFFFF, whereas the light blue used as the background for <a href=\"https:\/\/www.intmath.com\/\">Interactive Mathematics<\/a> is #E5EDEF.<\/p>\n<hr>\n<h2>2. Encryption<\/h2>\n<p>[This topic was requested by a reader. It involves ETAOIN, computers and Facebook.]<\/p>\n<p>One of the hot areas in current mathematical research is <strong>data encryption<\/strong>. With so much sensitive data floating around the Internet, encryption has become vital to protect online banking, e-commerce and even our FaceBook profiles. \ud83d\ude42<\/p>\n<p>I guess you&rsquo;re all familiar with simple encryption, like the following:<\/p>\n<table width=\"100%\">\n<tr>\n<td>K<\/td>\n<td>N<\/td>\n<td>O<\/td>\n<td>W<\/td>\n<td>L<\/td>\n<td>E<\/td>\n<td>D<\/td>\n<td>G<\/td>\n<td>E<\/td>\n<td>I<\/td>\n<td>S<\/td>\n<td>P<\/td>\n<td>O<\/td>\n<td>W<\/td>\n<td>E<\/td>\n<td>R<\/td>\n<\/tr>\n<tr>\n<td>11<\/td>\n<td>14<\/td>\n<td>15<\/td>\n<td>23<\/td>\n<td>12<\/td>\n<td>5&nbsp;<\/td>\n<td>4&nbsp;<\/td>\n<td>7&nbsp;<\/td>\n<td>5&nbsp;<\/td>\n<td>9&nbsp;<\/td>\n<td>19<\/td>\n<td>16<\/td>\n<td>15<\/td>\n<td>23<\/td>\n<td>5&nbsp;<\/td>\n<td>18<\/td>\n<\/tr>\n<\/table>\n<p>I have simply used A=1, B=2, C=3,..., Z=26 to turn my text message \"knowledge is power\" into a set of numbers. Such encoding of a message is called a \"cipher\" (or \"cypher\").<\/p>\n<p>However, this cipher is too simple and very easy to crack. One way to make it more secure is to use what is  called a \"<strong>shift cipher<\/strong>\", where we add the same number to each of the digits in our code. Let's add 9. So the first number (representing \"K\") will become 11+9=20, and N will become 14+9=23. <\/p>\n<p>When we get to \"W\", we have a little problem, since 23+9=32. There is no 32nd letter of the alphabet, so we just use <b>modulo<\/b> arithmetic. (What is the remainder when we divide 32 by 26? Answer: 6. So we say \"32 is equivalent to 6, modulo 26\").<\/p>\n<p>By applying our shift cipher and modulo arithmetic, our coded message is now:<\/p>\n<table  width=\"100%\">\n<tr>\n<td>K<\/td>\n<td>N<\/td>\n<td>O<\/td>\n<td>W<\/td>\n<td>L<\/td>\n<td>E<\/td>\n<td>D<\/td>\n<td>G<\/td>\n<td>E<\/td>\n<td>I<\/td>\n<td>S<\/td>\n<td>P<\/td>\n<td>O<\/td>\n<td>W<\/td>\n<td>E<\/td>\n<td>R<\/td>\n<\/tr>\n<tr>\n<td>20<\/td>\n<td>23<\/td>\n<td>24<\/td>\n<td>6&nbsp;<\/td>\n<td>21<\/td>\n<td>11<\/td>\n<td>13<\/td>\n<td>16<\/td>\n<td>14<\/td>\n<td>13<\/td>\n<td>2&nbsp;<\/td>\n<td>25<\/td>\n<td>24<\/td>\n<td>6&nbsp;<\/td>\n<td>14<\/td>\n<td>1&nbsp;<\/td>\n<\/tr>\n<\/table>\n<p>We could write our encrypted message using letters by translating the original letter-number equivalents:<\/p>\n<table  width=\"100%\">\n<tr>\n<td>K<\/td>\n<td>N<\/td>\n<td>O<\/td>\n<td>W<\/td>\n<td>L<\/td>\n<td>E<\/td>\n<td>D<\/td>\n<td>G<\/td>\n<td>E<\/td>\n<td>I<\/td>\n<td>S<\/td>\n<td>P<\/td>\n<td>O<\/td>\n<td>W<\/td>\n<td>E<\/td>\n<td>R<\/td>\n<\/tr>\n<tr>\n<td>T<\/td>\n<td>W<\/td>\n<td>X<\/td>\n<td>F<\/td>\n<td>U<\/td>\n<td>N<\/td>\n<td>M<\/td>\n<td>P<\/td>\n<td>N<\/td>\n<td>R<\/td>\n<td>B<\/td>\n<td>Y<\/td>\n<td>X<\/td>\n<td>F<\/td>\n<td>N<\/td>\n<td>A<\/td>\n<\/tr>\n<\/table>\n<p>This is better, but it is still easy to decode. You could study the frequency of each letter and figure out what each represents. (The letters E, T, A, O, I, N are the most common English letters, while J, X, Q and Z are the least common.)<\/p>\n<p><b>Using Hexadecimal Numbers<\/b><br \/>\nI could have made our message harder to crack by using the <strong>hexadecimal number system<\/strong> that we learned about above. <\/p>\n<p>If I use hexadecimal numbers with A=1, B=2,..., 8=H, 9=J, A=K, B=L, etc (and without the shift cipher), then my encrypted message is:<\/p>\n<table  width=\"100%\">\n<tr>\n<td>K<\/td>\n<td>N<\/td>\n<td>O<\/td>\n<td>W<\/td>\n<td>L<\/td>\n<td>E<\/td>\n<td>D<\/td>\n<td>G<\/td>\n<td>E<\/td>\n<td>I<\/td>\n<td>S<\/td>\n<td>P<\/td>\n<td>O<\/td>\n<td>W<\/td>\n<td>E<\/td>\n<td>R<\/td>\n<\/tr>\n<tr>\n<td>B&nbsp;<\/td>\n<td>E&nbsp;<\/td>\n<td>F&nbsp;<\/td>\n<td>17<\/td>\n<td>C&nbsp;<\/td>\n<td>5&nbsp;<\/td>\n<td>4&nbsp;<\/td>\n<td>7&nbsp;<\/td>\n<td>5&nbsp;<\/td>\n<td>9&nbsp;<\/td>\n<td>13<\/td>\n<td>10<\/td>\n<td>F&nbsp;<\/td>\n<td>17<\/td>\n<td>5&nbsp;<\/td>\n<td>12<\/td>\n<\/tr>\n<\/table>\n<p>We could make it harder to crack by applying the shift cipher as before.<\/p>\n<p><b>Ready for a Challenge?<\/b><br \/>\nI have used hexadecimal numbers and a shift cipher to encode a message. Can you decrypt it?<\/p>\n<p>18 C 9 16 9 17 5 B 9 12 D 19 17 D 12 5 10 10 13 A 19 17<\/p>\n<p>The answer will appear in the next Newsletter.<\/p>\n<hr>\n<h2>3. Current IntMath Poll - Math Anxiety<\/h2>\n<p>There has been a big response to the current IntMath Poll where I ask users \"How is your math anxiety?\" <\/p>\n<p>How about you? Are you math anxious right now? You can respond to the poll on any page in <a href=\"https:\/\/www.intmath.com\/\">Interactive Mathematics<\/a> (you'll see it in the right column).<\/p>\n<hr>\n<h2>4. From the Math Blog<\/h2>\n<p>1) <a href=\"https:\/\/www.intmath.com\/blog\/videos\/friday-math-movie-the-math-in-mp3-audio-files-1269\">Friday Math Movie - The Math in MP3 Audio Files<\/a><br \/>\nRemember LP records? Some purists still love them. This movie takes a look at the differences between digital and analog music recording.<\/p>\n<p>2) <a href=\"https:\/\/www.intmath.com\/blog\/mathematics\/another-misleading-credit-card-advertisement-1365\">Another misleading credit card advertisement<\/a><br \/>\nHere's another case where a bank offers what seems to be a very good deal - 0% interest on a loan. But let's have a closer look.<\/p>\n<p>3) <a href=\"https:\/\/www.intmath.com\/blog\/learning\/review-how-computer-games-help-children-learn-1338\">Review: How Computer Games Help Children Learn<\/a><br \/>\n\"How Computer Games Help Children Learn\" is an interesting look at the world of learning games. <\/p>\n<p>4) <a href=\"https:\/\/www.intmath.com\/blog\/mathematics\/tools-for-making-a-math-website-1336\">Tools for making a math website<\/a><br \/>\nA reader asked what tools I used to produce the Interactive Mathematics site. <\/p>\n<hr>\n<h2>5. Final Thought<\/h2>\n<p>Here's something to think about from A.P. Gouthey:<\/p>\n<blockquote>\n<p>To get profit without risk, experience without danger, and reward without work is as impossible as it is to live without being born.<\/p>\n<\/blockquote>\n<p>Have a good week.<\/p>\n<p class=\"alt\">See the <a href=\"https:\/\/www.intmath.com\/blog\/letters\/the-intmath-newsletter-21-sep-2008-1335#comments\" id=\"comms\">7 Comments<\/a> below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this Newsletter:<\/p>\n<p>1. Math tip - Hexadecimal Numbers<br \/>\n2. Encryption - and a challenge<br \/>\n3. Current IntMath Poll - Math Anxiety<br \/>\n4. From the math blog<br \/>\n5. Final thought<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mo_disable_npp":""},"categories":[104],"tags":[],"_links":{"self":[{"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/posts\/1335"}],"collection":[{"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/comments?post=1335"}],"version-history":[{"count":0,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/posts\/1335\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/media?parent=1335"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/categories?post=1335"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.intmath.com\/blog\/wp-json\/wp\/v2\/tags?post=1335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}