{"id":119,"date":"2006-08-16T14:45:56","date_gmt":"2006-08-16T14:45:56","guid":{"rendered":"http:\/\/scientopia.org\/blogs\/goodmath\/2006\/08\/16\/roman-numerals-and-arithmetic\/"},"modified":"2006-08-16T14:45:56","modified_gmt":"2006-08-16T14:45:56","slug":"roman-numerals-and-arithmetic","status":"publish","type":"post","link":"http:\/\/www.goodmath.org\/blog\/2006\/08\/16\/roman-numerals-and-arithmetic\/","title":{"rendered":"Roman Numerals and Arithmetic"},"content":{"rendered":"<p>I&#8217;ve always been perplexed by roman numerals.<br \/>\nFirst of all, they&#8217;re just *weird*. Why would anyone come up with something so strange as a way of writing numbers?<br \/>\nAnd second, given that they&#8217;re so damned weird, hard to read, hard to work with, why do we still use them for so many things today?<\/p>\n<p><!--more--><br \/>\nThe Roman Numeral System<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\nI expect most people already know this, but it never hurts to be complete. The roman numeral system is non-positional. It assigns numeric values to letters. The basic system is:<br \/>\n1. &#8220;I&#8221; stands for 1.<br \/>\n2. &#8220;V&#8221; stands for 5.<br \/>\n3. &#8220;X&#8221; stands for 10.<br \/>\n4. &#8220;L&#8221; stands for 50.<br \/>\n5. &#8220;C&#8221; stands for 100.<br \/>\n6. &#8220;D&#8221; stands for 500.<br \/>\n7. &#8220;M&#8221; stands for 1000.<br \/>\nStandard roman numerals don&#8217;t have any symbols for representing numbers larger than 1000. Some modern usages add an overbar, so that &#8220;V&#8221; with a horizontal line floating over it represents 5000, etc. But that&#8217;s a modern innovation.<br \/>\nThe symbols are combined in a bizarre way. Take a number symbol, like X. A group of that symbol appearing together are added together, so &#8220;III&#8221; = 3, and &#8220;XXX&#8221; = 30. Any symbol *smaller* than it that precedes it is subtracted from it; any symbol smaller than it that *follows* it is added to it. The notation for a number is structured around the *largest* number symbol used in writing that number. In general (though not always), you do not precede a symbol by anything smaller than 1\/10th its value. So you wouldn&#8217;t write &#8220;IC&#8221; for 99.<br \/>\nSo:<br \/>\n1. IV = 4; V=5, I=1, I precedes V so it&#8217;s subtracted, so IV = 5 &#8211; 1.<br \/>\n2. VI = 6; V=5, I=1, I follows V so it&#8217;s added, so VI = 5 + 1 = 6.<br \/>\n3. XVI = 15. X=10, V = 5, I=1. VI is a number starting with a symbol whose value is smaller than X, so we take its value and add it. Since VI=6, then XVI=10+6 = 16.<br \/>\n4. XCIX = 99. C=100. The &#8220;X&#8221; preceeding the C is subtracted, so XC=90. Then the IX following it is added. X is ten, preceeded by &#8220;I&#8221;, so &#8220;IX&#8221; = 9. Xo XCIX = 99. *(This example was corrected because I screwed up.)*<br \/>\n5. MCMXCIX = 1999. M = 1000. &#8220;CM&#8221; is 1000-100=900, so MCM = 1900. C = 50, XC = 90. IX=9.<br \/>\nFor some reason (there are a number of theories of why), 4 is sometimes written IV, and sometimes IIII.<br \/>\nWhere did this mess come from?<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nThe roman numerals date back to shepherds, who counted their flocks by marking notches on their staffs. They didn&#8217;t original use roman letters, but just notches on the staff.<br \/>\nSo when counting their sheep, they would mark four notches; and then on the fifth one, they would cut a diagonal notch, the way that in tallying we commonly write four lines, and then a diagonal strike-through. But instead of striking through the preceeding notches, they just used the diagonal to turn a &#8220;\/&#8221; notch into &#8220;V&#8221;. Every tenth notch was marked by a strike-through, so it looked like &#8220;X&#8221;. Every tenth V got an extra overlapping notch, so it looked sort of like a &Psi;; and every tenth &#8220;X&#8221; got an extra overlapping notch, so it looked like an X with a vertical line through the center.<br \/>\nIn this system, if you had 8 sheep, that would be &#8220;IIIIVIII&#8221;. But the leading IIII are not really needed. So you could just use &#8220;VIII&#8221; instead, which became important when you wanted to do a big number.<br \/>\nWhen this system moved to writing, the simple notches became &#8220;I&#8221; and &#8220;V&#8221;; the strike-through became &#8220;X&#8221;, The &Psi;-like thing became &#8220;L&#8221;, Beyond that, they started using mnemonics; so C, D, and M are all based on the latin words for 100, 500, and 1000.<br \/>\nThe prefix-subtraction stuff came as it transitioned to writing. The problem with an ordinal system like this is that it involves a lot of repeated characters, which are very difficult for people to read correctly. Keeping the number of repetitions small reduces the number of errors that people make reading the numbers. It&#8217;s more compact to write &#8220;IX&#8221; than &#8220;VIIII&#8221;; and it&#8217;s a lot easier to read, because of fewer repetitions. So scribes started using the prefix-subtraction form.<br \/>\nArithmetic in Roman Numerals<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nThe most basic arithmetic in roman numerals is actually pretty easy: addition and subtraction are simple, and it&#8217;s obvious why they work. On the other hand, multiplication and division are *not* easy in roman numerals.<br \/>\n### Addition<br \/>\nTo add two roman numerals, what you do is:<br \/>\n1. Convert any subtractive prefixes to additive suffixes. So, for example, IX would be rewritten to VIIII.<br \/>\n2. Concatenate the two numbers to add.<br \/>\n3. Sort the letters, large to small.<br \/>\n4. Do internal sums (e.g., replace &#8220;IIIII&#8221; with &#8220;V&#8221;)<br \/>\n5. Convert back to subtractive prefixes.<br \/>\nSo, for example:    123 + 69. In roman numerals, that&#8217;s &#8220;CXXIII + &#8220;LXIX&#8221;.<br \/>\n1. &#8220;CXXIII&#8221; has no subtractive prefixes. &#8220;LXIX&#8221; becomes &#8220;LXVIIII&#8221;.<br \/>\n2. Concatenate: &#8220;CXXIIILXVIIII&#8221;<br \/>\n3. Sort: &#8220;CLXXXVIIIIIII&#8221;.<br \/>\n4. Internal sum: reduce the &#8220;IIIIIII&#8221; to &#8220;VII&#8221; giving &#8220;CLXXXVVII&#8221;; then reduce the &#8220;VV&#8221; to &#8220;X&#8221;: &#8220;CLXXXXII&#8221;<br \/>\n5. Switch to subtractive prefix: &#8220;XXXX&#8221; = &#8220;XL&#8221;, giving &#8220;CLXLII&#8221;. &#8220;LXL&#8221;=&#8221;XC&#8221;, giving &#8220;CXCII&#8221;, or 192.<br \/>\n### Subtraction<br \/>\nSubtraction isn&#8217;t any harder than addition. To subtract A-B:<br \/>\n1. Convert subtractive prefixes to additive suffixes.<br \/>\n2. Eliminate any common symbols that appear in both A and B.<br \/>\n3. For the largest remaining symbol in B, take the first symbol in A larger than it, and expand it. Then go back to step two, until there&#8217;s nothing left.<br \/>\n4. Convert back to subtractive prefixes.<br \/>\nSo 192-69 = &#8220;CXCII-LXIX&#8221;.<br \/>\n1. Remove prefixes: CLXXXXII &#8211; LXVIIII.<br \/>\n2. Remove common symbols. CXXX &#8211; VII.<br \/>\n3. Expand an &#8220;X&#8221; in &#8220;CXXX&#8221;: CXXVIIIII &#8211; VII.<br \/>\n4. Remove common symbols: CXXIII = 123.<br \/>\n### Multiplication<br \/>\nMultiplication using roman numerals is not particularly easy or obvious. You can do the trivial thing, which is repeated addition. But it should be pretty obvious that that&#8217;s not practical for large numbers. The trick that they used was actually pretty nifty. It&#8217;s basically a strange version of binary multiplication. You need to be able to add and divide by two, but those are both pretty easy things to do. So here goes:<br \/>\nGiven A&times;B, you create two columns, and write A in the left column, and B in the right. Then:<br \/>\n1. Divide the number in the left column by two, discarding the remainder. Write it down in the next row of the left column.<br \/>\n2. Multiply the number in the right column by two. Write it down in the right column next the the result from step 1.<br \/>\n3. Repeat from step 1 until the value in the left column is 1.<br \/>\n4. Go down the table, and cross out every row where the number in the left column is *even*.<br \/>\n5. Add up the remaining values in the right column.<br \/>\nLet&#8217;s look at an example: 21 * 17; XXI * XVII in roman numerals<br \/>\nWe build the table:<br \/>\nLeft          Right<br \/>\nXXI(21)       XVII (17)<br \/>\nX(10)         XXXIV (34)<br \/>\nV(5)          LXVIII  (68)<br \/>\nII(2)         CXXXVI (136)<br \/>\nI(1)          CCLXXII (272)<br \/>\nThen strike out the rows where the left hand side are even:<br \/>\nLeft          Right<br \/>\nXXI(21)       XVII (17)<br \/>\nV(5)          LXVIII (68)<br \/>\nI(1)          CCLXXII (272)<br \/>\nNow add the right hand column:<br \/>\nXVII + LXVIII + CCLXXII = CCLLXXXXVVIIIIIII = CCCXXXXXVII = CCCLVII = 357<br \/>\nWhy does it work? It&#8217;s binary arithmetic.  In binary arithmetic, to multiply A by B, you start with 0 for the result, nad then for each digit d<sub>n<\/sub> of A, if d<sub>n<\/sub>=1, then add *B* with n 0s appended to the result.<br \/>\nThe divide-by-two is giving you the binary digit of A for each position: if it&#8217;s odd, then the digit there was 1, if it&#8217;s even, the digit in that position was 0. The *multiply by 2* on the right is giving you the results of appending the zeros in binary &#8211; for the Nth digit, you&#8217;ve multiplied by two *n* times.<br \/>\n### Division in Roman Numerals<br \/>\nDivision is the biggest problem in roman numerals. There is no good trick that works in general. It really comes down to repeated subtraction. The only thing you can do to simplify is variations on finding a common factor of both numbers that&#8217;s easy to factor out. For example, if both numbers are even, you can divide each of them by two before starting the repeated subtraction. It&#8217;s also fairly easy to recognize when both numbers are multiples of 5 or 10, and to do the division by 5 or 10 on both numbers. But beyond that, you take a guess, do the multiplication, subtract, repeat.<br \/>\nSome Common Questions<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n* **Why does a clock use IIII instead of IV?**  There are a surprising number of<br \/>\ntheories for that. The top contenders are:<br \/>\n* IV are the first letters of the name of Jupiter (I don&#8217;t buy this one,<br \/>\nbecause the romans weren&#8217;t particularly concerned about writing down<br \/>\nJupiter&#8217;s name) or the first letters of Jehovah in latin (more convincing,<br \/>\nsince early christians did follow the jewish practice of not writing god&#8217;s<br \/>\nname.)<br \/>\n* IIII is more symmetric with VIII on the clock face.<br \/>\n* IIII allows clockmakers to use fewer molds to make the numbers for the<br \/>\nclock face.<br \/>\n* The king of France liked the way that &#8220;IIII&#8221; looked better that &#8220;IV&#8221;.<br \/>\n* Coincidence. Technically, &#8220;IIII&#8221; is as correct as &#8220;IV&#8221;. So someone who<br \/>\nstarted making clocks just happened to be someone who used &#8220;IIII&#8221; instead of &#8220;IV&#8221;. In fact, the Romans themselves generally preferred &#8220;IIII&#8221;.<br \/>\n* **Why do we still use roman numerals?** No *practical* reason. Our society tends to be rather worshipful of the romans, and to consider Latin to be the language of scholars. So anything that wants to *look* impressive has traditionally used roman numerals, because that&#8217;s what they used in latin.<br \/>\n* **Is there a roman numeral 0?** Yes, but it&#8217;s not authentic. During the middle ages, monks using roman numerals used &#8220;N&#8221;, for &#8220;nullae&#8221; to represent 0. But it wasn&#8217;t the positional zero of arabic numbers; it was just a roman numeral to fill into the astronomical tables used to compute the date of Easter rather than leaving the column blank.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve always been perplexed by roman numerals. First of all, they&#8217;re just *weird*. Why would anyone come up with something so strange as a way of writing numbers? And second, given that they&#8217;re so damned weird, hard to read, hard to work with, why do we still use them for so many things today?<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[43],"tags":[],"class_list":["post-119","post","type-post","status-publish","format-standard","hentry","category-numbers"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4lzZS-1V","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/posts\/119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/comments?post=119"}],"version-history":[{"count":0,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/posts\/119\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/media?parent=119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/categories?post=119"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/tags?post=119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}