← 2023 Paper 2

UPSC 2023 Maths Optional Paper 2 Q5c-i — Step-by-Step Solution

5 marks · Section B

Algebra of Binary Numbers · Numerical Analysis · asked 2× in 13 yrs · Read the full method →

Question

Evaluate, using the binary arithmetic, the following numbers in their given system: (i) (634.235)8(132.223)8(634.235)_8-(132.223)_8

Technique

3-bit-per-octal-digit conversion; binary subtraction with borrow propagation; regroup.

Solution

The procedure:

  1. Convert each operand to binary (3 bits per octal digit).
  2. Subtract in binary using the rule ”aibibinia_i-b_i-bin_i; borrow if negative”.
  3. Re-group the binary result into octal.

Step 1 — Convert to binary.

Octal digitBinary
6110
2010
1001
2010

So

(634.235)8=110011100.0100111012,(132.223)8=001011010.0100100112.(634.235)_8=110\,011\,100\,.\,010\,011\,101_2,\qquad(132.223)_8=001\,011\,010\,.\,010\,010\,011_2.

Step 2 — Binary subtraction (rightmost to leftmost; borrow when needed).

Position292^{-9}282^{-8}272^{-7}262^{-6}252^{-5}242^{-4}232^{-3}222^{-2}212^{-1}
minuend101110010
subtrahend110010010
difference01 (borrow)0100000
Position202^0212^1222^2232^3242^4252^5262^6272^7282^8
minuend001110011
subtrahend010110100
difference01 (borrow)00001 (borrow)01

Reading bits from 282^8 down to 292^{-9}: 101000010.0000010102\boxed{101\,000\,010\,.\,000\,001\,010_2}.

Step 3 — Regroup in threes back to octal.

101  000  010.000  001  0102=(502.012)8.101\;000\;010\,.\,000\;001\;010_2=(5\,0\,2\,.\,0\,1\,2)_8.

Answer

  (634.235)8(132.223)8=(502.012)8.  \boxed{\;(634.235)_8-(132.223)_8=(502.012)_8.\;}
We post more of this — worked solutions, CSAT trap breakdowns, guide chapters — a few times a week on Telegram. Free, no sign-in. Join

This solution is part of the Maths Coverage Map — 13 years, mapped. Get the take-away PDF free.