Question: Add (1101)2 and (101)2 . Write your answer in base 2.
Explanation:
When we add numbers in non-decimal system, add them as we do in decimal system but write them according to the given base system.
Step 1: Adding unit’s digits.
Add them as decimal system i.e., 1 + 1 = 2.
Now write 2 in binary system i.e., (2)10 = (11)2
Write 0 and carry over 1 as we do with normal addition.
Step 2: Adding ten’s digits.
Add them as decimal system i.e., 1 + 0 + 0 = 1.
Step 3: Adding hundred’s digits.
Add them as decimal system i.e., 1 + 1 = 2.
Now write 2 in binary system i.e., (2)10 = (10)2
Write 0 and carry over 1.
Step 4: Adding thousand’s digits.
Add them as decimal system i.e., 1 + 1 = 2.
Now write 2 in binary system i.e., (2)10 = (10)2
Hence, 10010.