Question: Prove that Russian multiplication does what it needs to do, i.e. the result is the product of the two integers. Do not use the

Prove that Russian multiplication does what it needs to do, i.e. the 

Prove that Russian multiplication does what it needs to do, i.e. the result is the product of the two integers. Do not use the proof of the book. It is mainly an exercise in understanding the binary system and that is what you need to do - analyze the product of the two natural written in binary. See below. Let a, b = N To calculate the product a. b: P+0 While = if a 1 a [ a 1 do (mod 2) then p+p+b bb*2 return P Example 36, b = 7 (ab=252) a = a b 36 7 0 18 14 0 9 28 28 4 56 28 2 112 28 1 224 252

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!