in Digital Logic edited by
3,415 views
1 vote
1 vote
How to multiply two numbers in the given base without converting them into decimals?

$(1230)_4 \text{ and } (23)_4$
in Digital Logic edited by
3.4k views

2 Comments

You need to build Times table check this http://mathcentral.uregina.ca/QQ/database/QQ.09.07/s/imaiya1.html  it will take more time than converting to Base 10.

0
0

Thank you @Karthik Selvam

0
0

1 Answer

1 vote
1 vote
Best answer

In base 4 we can use numbers from 0 to 3.

The rules for multiplication are simple If after any arithmetic operation the numbers go beyond the base (in this case upto 3) then use the idea of carry. 

Consider multiplying 1230 with 3. 

First multiply 3 X 0 = 0 (no problem)

Then multiply 3 X 3 = 9. it is beyond base (not within 0 to 3).  9%4 = 1 which is our result and carry is $\lfloor\frac{9}{4}\rfloor$=2.

When multiplied 3 X 2 = 6 + 2(from carry) = 8 (still beyond) 8%4 = 0 which is our result and carry is $\lfloor\frac{8}{4}\rfloor$=2.

and so on..

Answer is $102210_4$

selected by

Related questions

0 votes
0 votes
0 answers
4