GATE / CS ARCHIVE

GATE CSE 2023 / QUESTION 32

GATE CSE 2023 Q32

Digital Logic · Number Systems & Computer Arithmetic · Full GATE CSE 2023 paper

GATE 2023, Q32 1 mark · NAT
Report issue

Number Systems & Computer Arithmetic

Question 32, GATE 2023: Convert the number (132)₄ to radix 5; enter its base-5 digits.
Tap to enlarge
Answer & solution

Official answer: 110

Step through it (9 steps)

132 base4 equals 1×16+3×4+2=30 decimal. Dividing30 by 5 gives quotient 6 remainder 0, and 6 by 5 gives quotient 1 remainder 1. Thus30=1×25+1×5+0, or 110 base5.

Teaching detail. The digits of a positional numeral are coefficients of powers of the base, starting at exponent zero from the right. Thus the conversion first obtains the underlying integer and then re-expresses it with powers of 5. The final check is 1·5²+1·5+0=30, equal to the original 1·4²+3·4+2. Do not enter 30 as the answer: that is the decimal intermediary, whereas the question requests the digit string in radix 5. All digits of 110 are valid in base 5.

Original paper, page 30 · Answer key