Math O' Man : The Blog of Mathematics

Let's multiply!




One should think that elementary school taught us all that is to be known about basic operations on numbers: adding, substracting, multiplying and dviding. But there are still some surpises left! Here are three distinct ways to compute the product of two integers.

  • The classical multiplication of the perfect pupil
  • written multiplication of two numbers


  • The lazy pupil's method (or Ancient egyptian multiplication)
  •  
    The lazy man masters multiplication and division only by 2.

    How to use the peasant multiplication method

    Instruction: In the left column take the half in each step; round-down if necessary. In the right column always double from one line to the next. Then erase all lines that begin with an even number (black) and add the remains on the right side (red).
     
     
  • Method of Karatsuba (published in 1962)

  • Separate each factor on two halfs
    Multiplication with Algorithm of Anatolii Karatsuba, Karatsuba Algorhythmus
    and compute the following partial products:
    Karatsuba Multiplication method
    The final result is obtained like this:
    learn to multiply with Karatsuba
Remark
The up-shot of all this is the reduction of our computation to the products of one-digit numbers. On a computer the choice of an efficient algorithm can reduce considerably the time necessary to perform the program — when numbers with several milliards of digits are involved the saved time can be of the order of some days! Computing with such big numbers is not only interesting from a theoretical viewpoint, but has practical applications such as in cryptologie.
 
Exercices
  1. Why does the lazy man's method work? Both factors play different roles; when you are given two numbers what casting do you propose?
  2. With the help of the Karatsuba's multiplication compute the product 3116 x 1014. Explain in general, why the Karatsuba method works.
  3. When you use the classical multiplication of the perfect pupil to compute the product of two n-digit integers, how many multiplications of one-digit numbers do you need to do?
  4. By re-iteration of Karatsuba's method (separating the factors into, two, fours, eight, etc. parts) one constructs an slgorithm, the socalled Karatsuba-Algorithm. >When you apply it to the product of two n-digit intergers, how many single-digit products do you need? Compare the classical algorithm with the one of Karatsuba and show in particular, that the one of Karatsuba is much faster, being of the order O\left(n^{1,58}\right).
Solutions
Here are the answers to this exercice in pdf-format.

Last but not least, a video about another multiplication method which produces a beautiful calligraphy — therefore we call it chinese multiplication!

The basic idea of the so-called chinese multiplication is this: a set of n parallel lines intersects another set of m parallel lines in nxm points. So there is nothing mysterious about that so-called chinese multiplication. Note that in the examples they always choose numbers with small digits like 112 or 2131 because with numbers like 89 or 897 there would be too many lines to draw!



Circumference vs. Height - Betting With Wit


In my kitchen I have this cylindrical recipient for salt. Have a guess: what is longer its circumference or its height?

At first sight you would say, it is the height. Let's compare! My hand stretches easily to the height of the recipient but is not big enough to wrap my fingers around it. Quite surprising: the circumference is longer than the height!

We all learned in school, how to compute the circumference of a circle: you multiply the diameter by that famous number \pi, which mathematicians invented just for that purpose and whose approximate value is 22/7. And since 22/7 is greater than 3, the circumference is bigger than three times the diameter. Keeping that in mind our result above is not so suprising any more. In fact, the height really looks like less than three times the width.

Of course, most people underestimate the length of the circumference. Next time in a pub, challenge your friends with that question. Bet a beer on it, then use a napkin, for example, to compare both lengths as I do in the pictures below... I am sure you will win your bet!

The height is smaller... ...than the circumference. Mathoman wins a beer!