{"id":157,"date":"2006-09-19T15:45:46","date_gmt":"2006-09-19T15:45:46","guid":{"rendered":"http:\/\/scientopia.org\/blogs\/goodmath\/2006\/09\/19\/arithmetic-on-the-abacus-part-1\/"},"modified":"2006-09-19T15:45:46","modified_gmt":"2006-09-19T15:45:46","slug":"arithmetic-on-the-abacus-part-1","status":"publish","type":"post","link":"http:\/\/www.goodmath.org\/blog\/2006\/09\/19\/arithmetic-on-the-abacus-part-1\/","title":{"rendered":"Arithmetic on the Abacus: Part 1"},"content":{"rendered":"<p>If you want to talk about mechanical computing tools, you can&#8217;t ignore the abacus. It&#8217;s the oldest computing tool in the world; and it&#8217;s still very commonly used.  It&#8217;s also about as different from the slide rule as you could imagine. The abacus is really fundamentally an addition device; the slide-rule is fundamentally a multiplier. And the slide rule is very complicated &#8211; all those different scales, in logarithmic relationships; the abacus is thoroughly simple &#8211; just beads hanging on  wires. But don&#8217;t let that fool you: the abacus is is a remarkable device, which is capable of a really huge number of computations: addition. subtraction, multiplication, division, even square and cube roots.<br \/>\nThe abacus is, basically, sort of like a *better* piece of paper. Any kind of numerical calculation that you can do using piece of paper and a pencil, you can do on an abacus; only it&#8217;s a whole lot faster on the abacus.<\/p>\n<p><!--more--><br \/>\nThere are a lot of different variants on the abacus. A few examples with pictures:<br \/>\n1. The Chinese abacus, or suan-pan. Each column on the abacus is split into two &#8220;decks&#8221;, with five beads on the lower and two on the upper.<br \/>\n2. The Japanese abacus, or Soroban. Each column is split into two decks, with 4 beads on the lower, and one on the upper.<br \/>\n3. The Roman abacus. The basic idea of the roman abacus is similar to the soroban; lower deck with four beads, upper with one. The roman generally had seven columns, plus sometimes a couple of extras for fractions. The main different mechanically is that the roman abacus doesn&#8217;t put the beads on the wires; instead it has its beads just sitting in grooves.<br \/>\n4. The Lee chinese abacus (named after its inventor, Lee Kai-Chen). This looks like two small soroban stacked on top of a suan-pan. The two upper mini-sorobans are used for place-keeping and sub-calculations, and sliding markers on the beams separating the decks. The Lee calculus is a really amazing piece of work. Unfortunately, they&#8217;re quite rare.  (I&#8217;d love to own one, but I&#8217;ve never been able to find one for less than $400!)<br \/>\n<img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"abacus.jpg\" src=\"https:\/\/i0.wp.com\/scientopia.org\/img-archive\/goodmath\/img_56.jpg?resize=362%2C232\" width=\"362\" height=\"232\" \/><br \/>\nI&#8217;m going to talk about the Chinese abacus, the suan-pan. The main reason that I<br \/>\nprefer the suan-pan is that the way that it&#8217;s beads are set 5\/2 lets you<br \/>\nsimplify some things; you can do things like delay a carry until you&#8217;re ready;<br \/>\nand it makes some 5&#8217;s complement stuff easier to do.<br \/>\nIf you&#8217;re interested in the abacus at all, I recommending looking [here][abacus-site]; it&#8217;s an absolutely wonderful website with information about all of the different kinds of abacuses (abaci?), a Java applet that simulate the suan-pan abacus; scanned images of books about how to do things on the abacus, information about where to buy yourself an abacus, and more. It&#8217;s great. The images that I&#8217;ll be using were generated using the suan-pan applet on that site.<br \/>\n&#8212;&#8212;&#8212;&#8212;-<br \/>\nSo, let&#8217;s take a look at how to do some simple arithmetic on the Chinese abacus.<br \/>\nFirst we need to see how to do basic numbers. The abacus is set to zero with all of the beads on the lower deck down against the bottom beam; and all of the beads in the upper deck pushed up against the upper beam, like so: *(Commenter JuanCarlos pointed out that I messed up the original version of this image; I didn&#8217;t line up correctly, and as a result, didn&#8217;t have any beads down in the upper deck of the fifth column, so instead of being 5, it was 0. Thanks for the catch!)*<br \/>\n<img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"zero.jpg\" src=\"https:\/\/i0.wp.com\/scientopia.org\/img-archive\/goodmath\/img_57.jpg?resize=135%2C131\" width=\"135\" height=\"131\" \/><br \/>\nTo read numbers, each column represents one decimal digit. Each bead on the lower rack moved up counts adds one to value in the column; each bead on the upper rack moved down counts adds &#8220;5&#8221; to the column value. So in the following image, the columns from left to right read 9 (4 lower + 1*5 upper); 8 (3 lower + 1*5 upper), 7, 6, 5, 4, 3, 2, 1:<br \/>\n<img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"numbers.jpg\" src=\"https:\/\/i0.wp.com\/scientopia.org\/img-archive\/goodmath\/img_58.jpg?resize=139%2C132\" width=\"139\" height=\"132\" \/><br \/>\nTo add on an abacus, you use basically the same process as adding on paper: you move from right to left, adding numbers in each column. You start by putting the first of two numbers to add in the columns to the right. Then, for each digit in the second number from right to left, you move beads to represent your addition. To add 1, move one bead from the lower deck up; when all five beads on the lower rack are up, you move them all down and lower one bead from the upper deck. When both beads on the upper deck are down, you can move both of them back up, and raise one bead from the lower deck of the next digit to the left.<br \/>\nThat will become clearer after an example. Suppose we want to add 47281 + 23153. We&#8217;ll start by putting 47281 onto the abacus:<br \/>\n<img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"add-setup.jpg\" src=\"https:\/\/i0.wp.com\/scientopia.org\/img-archive\/goodmath\/img_59.jpg?resize=137%2C133\" width=\"137\" height=\"133\" \/><br \/>\nWe start at the right-most column. We want to add three there; so we move three beads up on the lower deck:<br \/>\n<img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"add-first-digit.jpg\" src=\"https:\/\/i0.wp.com\/scientopia.org\/img-archive\/goodmath\/img_60.jpg?resize=133%2C131\" width=\"133\" height=\"131\" \/><br \/>\nNow we move to the next digit. To add 5, we can just lower one bead on top. Since that gives us two beads on the upper deck, which means that we need to carry one to the next column. So we raise both beads on the upper deck of the second column, and raise one bead from the lower deck of the third column. So  far, the abacus reads 47334:<br \/>\n<img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"add-second-column.jpg\" src=\"https:\/\/i0.wp.com\/scientopia.org\/img-archive\/goodmath\/img_61.jpg?resize=136%2C132\" width=\"136\" height=\"132\" \/><br \/>\nIn the third digit, we want to add one, so we raise one bead in the third column. The abacus now reads 47434:<br \/>\n<img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"add-third-column.jpg\" src=\"https:\/\/i0.wp.com\/scientopia.org\/img-archive\/goodmath\/img_62.jpg?resize=135%2C129\" width=\"135\" height=\"129\" \/><br \/>\nWe move on to the fourth column. We need to add 3, so we raise three beads on the lower deck. That gives us five raised beads on the lower deck. So we can lower all five beads, and also lower one bead from the upper deck. The abacus now reads 4(10)434:<br \/>\n<img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"add-fourth-column.jpg\" src=\"https:\/\/i0.wp.com\/scientopia.org\/img-archive\/goodmath\/img_63.jpg?resize=136%2C131\" width=\"136\" height=\"131\" \/><br \/>\nWith two beads down on the upper deck, we need to carry one to the left. So we shift them up, and add one to the lower deck of the next column, so that we correctly read 50434:<br \/>\n<img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"carry-fourth.jpg\" src=\"https:\/\/i0.wp.com\/scientopia.org\/img-archive\/goodmath\/img_64.jpg?resize=136%2C133\" width=\"136\" height=\"133\" \/><br \/>\nNow, we finally move on to the fifth column. Since the lower deck has 5 beads up, we can lower all of the beads on the lower deck, and one from the upper deck. Then we add two. So we wind up with 70434:<br \/>\n<img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" alt=\"add-column-five.jpg\" src=\"https:\/\/i0.wp.com\/scientopia.org\/img-archive\/goodmath\/img_65.jpg?resize=135%2C132\" width=\"135\" height=\"132\" \/><br \/>\nSee? It&#8217;s basically exactly the same as addition on paper, only we&#8217;re moving beads instead of writing down numbers. It&#8217;s the same mechanism; right-to-left adding digits, carrying one to the left each time a digit is 10 or higher.<br \/>\nThere&#8217;s one neat trick that you can use on the abacus to make things easier, based on fives-complement arithmetic. In base 5, adding a single digit in the *i*th position is equivalent to adding 1 to the the digit in the *i+1*th digit, and subtracting (5-n) to the *i*th digit. So, for example, if we have 3241 in base 5, and we want to add 4 to the third digit (2), we can do it by adding one to the fourth digit, and *subtracting* 5-4=1 from the third digit, giving us 4141.<br \/>\nOn the abacus, we can use this trick. The two decks in a single column are effectively two base-5 digits.  So adding n to a column is the same as *lowering* one bead from the upper deck of that column, and *lower* 5-n beads from the lower deck of that column.<br \/>\nFor example, if we&#8217;re adding 34 + 53, we&#8217;d start with 4 raised beads in the lower deck of the first column; and 3 raised beads in the lower deck of the second column. We want to add 3 to the first column; we can do that by lowering one bead from the upper dock, and two beads from the lower deck. That basically means adding five and subtracting two &#8211; which is adding three. Many things can be done much faster on the abacus by playing with fives-complement this way.<br \/>\n[abacus-site]: http:\/\/www.ee.ryerson.ca\/~elf\/abacus\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you want to talk about mechanical computing tools, you can&#8217;t ignore the abacus. It&#8217;s the oldest computing tool in the world; and it&#8217;s still very commonly used. It&#8217;s also about as different from the slide rule as you could imagine. The abacus is really fundamentally an addition device; the slide-rule is fundamentally a multiplier. [&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":[34],"tags":[],"class_list":["post-157","post","type-post","status-publish","format-standard","hentry","category-manual-computing-devices"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4lzZS-2x","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/posts\/157","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=157"}],"version-history":[{"count":0,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/posts\/157\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/media?parent=157"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/categories?post=157"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.goodmath.org\/blog\/wp-json\/wp\/v2\/tags?post=157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}