{"id":722,"date":"2008-12-26T08:46:01","date_gmt":"2008-12-26T08:46:01","guid":{"rendered":"http:\/\/scientopia.org\/blogs\/goodmath\/2008\/12\/26\/roman-numerals-and-arithmetic-2\/"},"modified":"2008-12-26T08:46:01","modified_gmt":"2008-12-26T08:46:01","slug":"roman-numerals-and-arithmetic-2","status":"publish","type":"post","link":"http:\/\/www.goodmath.org\/blog\/2008\/12\/26\/roman-numerals-and-arithmetic-2\/","title":{"rendered":"Roman Numerals and Arithmetic"},"content":{"rendered":"<p><em>. I&#8217;m away on vacation this week, taking my kids to Disney World. Since I&#8217;m not likely to<br \/>\nhave time to write while I&#8217;m away, I&#8217;m taking the opportunity to re-run an old classic series<br \/>\nof posts on numbers, which were first posted in the summer of 2006. These posts are mildly<br \/>\nrevised.<\/em><\/p>\n<p> I&#8217;ve always been perplexed by roman numerals.<\/p>\n<p> First of all, they&#8217;re just weird. Why would anyone come up with something so strange as a<br \/>\nway of writing numbers?<\/p>\n<p> And second, given that they&#8217;re so damned weird, hard to read, hard to work with, why do<br \/>\nwe still use them for so many things today?<\/p>\n<p><!--more--><\/p>\n<h3> The Roman Numeral System<\/h3>\n<p> I 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:<\/p>\n<ol>\n<li> &#8220;I&#8221; stands for 1.<\/li>\n<li> &#8220;V&#8221; stands for 5.<\/li>\n<li> &#8220;X&#8221; stands for 10.<\/li>\n<li> &#8220;L&#8221; stands for 50.<\/li>\n<li> &#8220;C&#8221; stands for 100.<\/li>\n<li> &#8220;D&#8221; stands for 500.<\/li>\n<li> &#8220;M&#8221; stands for 1000.<\/li>\n<\/ol>\n<p> Standard roman numerals don&#8217;t have any symbols for representing numbers larger than 1000.<br \/>\nThere are modern usages that extend roman numerals by adding over-bars for larger<br \/>\nnumbers; so, for example, &#8220;V&#8221; with a horizontal line floating over it represents 5000, etc. But that&#8217;s an inauthentic (not to mention entirely pointless) modern addition, not<br \/>\npart of the historical roman numeral system. (The goofiness of people never ceases to amaze me. For goodness sakes, <em>why<\/em> on earth would anyone feel obliged to figure out how to adapt a pointlessly complex, anachronistic number system to work with larger numbers?)<\/p>\n<p> Numbers are formed in roman numerals by combining symbols. The symbol-combination<br \/>\nrules are really pretty strange. The basic idea is that you start constructing a number<br \/>\nby choosing the largest roman numeral close to it, and you form a <em>base<\/em> using a collection of repetitions of that numeral. So, for example, to write a number like 35,<br \/>\nthe closest numeral is X for 10. Then you use repetitions of it: XXX for thirty.<\/p>\n<p> Then you modify the base by adding other numeral symbols on both sides of it, until you have a until you have the number you wanted. So you 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.<\/p>\n<p>So:<\/p>\n<ol>\n<li> IV = 4; V=5, I=1, I precedes V so it&#8217;s subtracted, so IV = 5 &#8211; 1.<\/li>\n<li> VI = 6; V=5, I=1, I follows V so it&#8217;s added, so VI = 5 + 1 = 6.<\/li>\n<li> 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.<\/li>\n<li> 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. So XCIX = 99.<\/li>\n<li> MCMXCIX = 1999. M = 1000. &#8220;CM&#8221; is 1000-100=900, so MCM = 1900. That leaves us with XCIX.  C = 100, so XC = 90, and we&#8217;ve still got IX, which is 9 &#8211; so 1900 + 90 + 9 = 1999.<\/li>\n<\/ol>\n<p> For some reason (there are a number of theories of why), 4 is sometimes written IV, and sometimes IIII. Where did this mess come from?<\/p>\n<p> The roman numerals date back to shepherds, who counted their flocks by marking notches on<br \/>\ntheir staffs. They didn&#8217;t original use roman letters, but just notches on the staff.<\/p>\n<p> So when counting their sheep, they would mark four notches; and then on the fifth one,<br \/>\nthey would cut a diagonal notch, the way that in tallying we commonly write four lines, and<br \/>\nthen a diagonal strike-through. But instead of striking through the preceeding notches, they<br \/>\njust used the diagonal to turn a &#8220;\/&#8221; notch into &#8220;V&#8221;. Every tenth notch was marked by a<br \/>\nstrike-through, so it looked like &#8220;X&#8221;. Every tenth V got an extra overlapping notch, so it<br \/>\nlooked sort of like a &psi; and every tenth &#8220;X&#8221; got an extra overlapping notch, so it looked<br \/>\nlike an X with a vertical line through the center.<\/p>\n<p> In 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.<\/p>\n<p> When 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 got replaced by an &#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.<\/p>\n<p> The 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.<\/p>\n<h3>Arithmetic in Roman Numerals<\/p>\n<h3>\n<p> The most basic arithmetic in roman numerals is actually pretty easy: addition and<br \/>\nsubtraction are simple, and it&#8217;s obvious why they work. On the other hand, multiplication and<br \/>\ndivision are not easy in roman numerals.<\/p>\n<h4> Addition<\/h4>\n<p>To add two roman numerals, what you do is:<\/p>\n<ol>\n<li> Convert any subtractive prefixes to additive suffixes. So, for example, IX would be rewritten to VIIII.<\/li>\n<li> Concatenate the two numbers to add.<\/li>\n<li> Sort the letters, large to small.<\/li>\n<li> Do internal sums (e.g., replace &#8220;IIIII&#8221; with &#8220;V&#8221;).<\/li>\n<li> Convert back to subtractive prefixes.<\/li>\n<\/ol>\n<p> So, for example: 123 + 69. In roman numerals, that&#8217;s &#8220;CXXIII + &#8220;LXIX&#8221;.<\/p>\n<ol>\n<li> &#8220;CXXIII&#8221; has no subtractive prefixes. &#8220;LXIX&#8221; becomes &#8220;LXVIIII&#8221;.<\/li>\n<li> Concatenate: &#8220;CXXIIILXVIIII&#8221;.<\/li>\n<li> Sort: &#8220;CLXXXVIIIIIII&#8221;.<\/li>\n<li> 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;.<\/li>\n<li> 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.<\/li>\n<\/ol>\n<h4>Subtraction<\/h4>\n<p>Subtraction isn&#8217;t any harder than addition. To subtract A-B:<\/p>\n<ol>\n<li> Convert subtractive prefixes to additive suffixes.<\/li>\n<li> Eliminate any common symbols that appear in both A and B.<\/li>\n<li> 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.<\/li>\n<li> Convert back to subtractive prefixes.<\/li>\n<\/ol>\n<p> So 192-69 = &#8220;CXCII-LXIX&#8221;.<\/p>\n<ol>\n<li> Remove prefixes: CLXXXXII &#8211; LXVIIII.\n<li> Remove common symbols. CXXX &#8211; VII.\n<li> Expand an &#8220;X&#8221; in &#8220;CXXX&#8221;: CXXVIIIII &#8211; VII.\n<li> Remove common symbols: CXXIII<\/li>\n<li> Convert to subtractive prefixes; in this case, there&#8217;s nothing to<br \/>\nconvert. So the answer is CXXIII, or 123.<\/li>\n<\/ol>\n<h4>Multiplication<\/h4>\n<p> Multiplication using roman numerals is not particularly easy or obvious. You can do the<br \/>\ntrivial thing, which is repeated addition. But it should be pretty obvious that that&#8217;s not<br \/>\npractical for large numbers. The trick that they used was actually pretty nifty. It&#8217;s<br \/>\nbasically a strange version of binary multiplication. You need to be able to add and divide<br \/>\nby two, but those are both pretty easy things to do. So here goes:<\/p>\n<p>Given A&times;B, you create two columns, and write A in the left column, and B in the right. Then:<\/p>\n<ol>\n<li> Divide the number in the left column by two, discarding the remainder. Write it down in the next row of the left column.<\/li>\n<li> Multiply the number in the right column by two. Write it down in the right column next the the result from step 1.<\/li>\n<li> Repeat from step 1 until the value in the left column is 1.<\/li>\n<li> Go down the table, and cross out every row where the number in the left column is even.<\/li>\n<li> Add up the remaining values in the right column.<\/li>\n<\/ol>\n<p> Let&#8217;s look at an example: 21 * 17; XXI * XVII in roman numerals.<\/p>\n<p> We build the table:<\/p>\n<table border=\"1\">\n<tr>\n<th>Left<\/th>\n<th>Right<\/th>\n<\/tr>\n<tr>\n<td>XXI(21)<\/td>\n<td>      XVII (17)<\/td>\n<\/tr>\n<tr>\n<td>X(10)    <\/td>\n<td>     XXXIV (34)<\/td>\n<\/tr>\n<tr>\n<td>V(5)      <\/td>\n<td>    LXVIII  (68)<\/td>\n<\/tr>\n<tr>\n<td>II(2)     <\/td>\n<td>    CXXXVI (136)<\/td>\n<\/tr>\n<tr>\n<td>I(1)      <\/td>\n<td>    CCLXXII (272)<\/td>\n<\/tr>\n<\/table>\n<p> Then strike out the rows where the left hand side are even:<\/p>\n<table border=\"1\">\n<tr>\n<th>Left<\/th>\n<th>Right<\/th>\n<\/tr>\n<tr>\n<td>XXI(21)<\/td>\n<td>      XVII (17)<\/td>\n<\/tr>\n<tr>\n<td><del>X(10)<\/del>    <\/td>\n<td>  <del>XXXIV (34)<\/del><\/td>\n<\/tr>\n<tr>\n<td>V(5)      <\/td>\n<td>    LXVIII  (68)<\/td>\n<\/tr>\n<tr>\n<td><del>II(2)<\/del>     <\/td>\n<td>    <del>CXXXVI (136)<\/del><\/td>\n<\/tr>\n<tr>\n<td>I(1)      <\/td>\n<td>    CCLXXII (272)<\/td>\n<\/tr>\n<\/table>\n<p> Now add the non-struck-out values in the right hand column:<\/p>\n<p>XVII + LXVIII + CCLXXII = CCLLXXXXVVIIIIIII = CCCXXXXXVII = CCCLVII = 357<\/p>\n<p> Why does it work? It&#8217;s binary arithmetic. In binary arithmetic, to multiply A by B, you start with 0 for the result, and 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.<\/p>\n<p> The 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.<\/p>\n<h4>Division in Roman Numerals<\/h4>\n<p> Division is the biggest problem in roman numerals. There is no good trick that works in<br \/>\ngeneral. It really comes down to repeated subtraction. The only thing you can do to simplify<br \/>\nis variations on finding a common factor of both numbers that&#8217;s easy to factor out. For<br \/>\nexample, if both numbers are even, you can divide each of them by two before starting the<br \/>\nrepeated subtraction. It&#8217;s also fairly easy to recognize when both numbers are multiples of 5<br \/>\nor 10, and to do the division by 5 or 10 on both numbers. But beyond that, you take a guess,<br \/>\ndo the multiplication, subtract, repeat. <\/p>\n<h3>Some Common Questions<\/h3>\n<ul>\n<li> <b>Why does a clock use IIII instead of IV?<\/b> There are a surprising number of theories for that. The top contenders are:\n<ul>\n<li> IV are the first letters of the name of Jupiter or the first letters<br \/>\nof Jehovah in latin. Neither is particularly convincing, because it&#8217;s<br \/>\nnot a general rule of the number system &#8211; it&#8217;s only on clocks.<\/li>\n<li> IIII is more symmetric with VIII on the clock face.<\/li>\n<li> IIII allows clockmakers to use fewer molds to make the numbers for the clock face.<\/li>\n<li> The king of France liked the way that &#8220;IIII&#8221; looked better that &#8220;IV&#8221;.<\/li>\n<li> Coincidence. Technically, &#8220;IIII&#8221; is as correct as &#8220;IV&#8221;. So someone who started 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;.<\/li>\n<\/ul>\n<\/li>\n<li> <b>Why do we still use roman numerals?<\/b> No practical reason. Our society tends to<br \/>\nbe rather worshipful of the romans, and to consider Latin to be the language of scholars.<br \/>\nSo anything that wants to look impressive has traditionally used roman numerals, because<br \/>\nthat&#8217;s what they used in latin.<\/li>\n<li> <b>Is there a roman numeral 0?<\/b> Yes, but it&#8217;s not entirely authentic.<br \/>\nDuring the middle ages, monks using roman numerals used &#8220;N&#8221;, for &#8220;nullae&#8221; to<br \/>\nrepresent 0. But it wasn&#8217;t the positional zero of arabic numbers; it was just<br \/>\na roman numeral to fill into the astronomical tables<br \/>\nused to compute the date of Easter rather than leaving the column blank.\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>. I&#8217;m away on vacation this week, taking my kids to Disney World. Since I&#8217;m not likely to have time to write while I&#8217;m away, I&#8217;m taking the opportunity to re-run an old classic series of posts on numbers, which were first posted in the summer of 2006. These posts are mildly revised. I&#8217;ve always [&hellip;]<\/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":[13,43],"tags":[],"class_list":["post-722","post","type-post","status-publish","format-standard","hentry","category-classics","category-numbers"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4lzZS-bE","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/posts\/722","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=722"}],"version-history":[{"count":0,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/posts\/722\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/media?parent=722"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/categories?post=722"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/tags?post=722"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}