How to multiply 2 Binary Numbers? \(\displaystyle{a}={a}_{{{\frac{{N}}{{2}}}}}{a}_{{{\frac{{N}}{{2}}}-{1}}}\ldots{a}_{{1}},\qquad{b}={b}_{{{\frac{{N}}{{2}}}}}{b}_{{{\frac{{N}}{{2}}}-{1}}}\ldots{b}_{{1}}\)

Henry Winters

Henry Winters

Answered question

2022-04-06

How to multiply 2 Binary Numbers?
a=aN2aN21a1,b=bN2bN21b1

Answer & Explanation

granfury90210birm

granfury90210birm

Beginner2022-04-07Added 10 answers

Step 1
In base 10, the digit a1 can take values from 0 to 9. Any numbers higher than that can only displayed if you also use a2. In your setting, a1 can take values from 0 to 65535 (which is 1111111111111111 in binary). Any numbers higher than that can only displayed if you also use a2. So, in summary, we should consider base 65536 (instead of base 10).
The formula becomes
ab=aN2aN21abN2bN21b1
=i=1N2j=1N2(aibj)65536i+j2,
where instead of 65536i+j2 we can also write (216)i+j2, which is the same as 216(i+j2). The number 16(i+j2) in the exponent of the last expressions is the number of bits that you need to shift by. to do (because if you multiply by 2k this corresponds to a shift by k bits).

Do you have a similar question?

Recalculate according to your conditions!

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?