Skip to content
Official PYQ · 2014

GATE CS 2014 Set 2 Q8 — Number Representations (Fixed and Floating Point)

Explain with AI
Consider the equation (123)5=(x8)y(123)_5=(x8)_y with xx and yy as unknown. The number of possible solutions is _____ .
View worked solution

Answer: 3

To find the number of possible solutions for the equation (123)5=(x8)y(123)_5 = (x8)_y, we first convert both sides of the equation to decimal (base 10).

Step 1: Convert the LHS to decimal
(123)5=1×52+2×51+3×50=25+10+3=3810(123)_5 = 1 \times 5^2 + 2 \times 5^1 + 3 \times 5^0 = 25 + 10 + 3 = 38_{10}

Step 2: Convert the RHS to decimal
(x8)y=x⋅y1+8⋅y0=xy+8(x8)_y = x \cdot y^1 + 8 \cdot y^0 = xy + 8

Step 3: Set up the equation
xy+8=38  ⟹  xy=30xy + 8 = 38 \implies xy = 30

Step 4: Apply the constraints of positional number systems

  1. Since the digit 8 is used in the base yy representation (x8)y(x8)_y, the base yy must be strictly greater than 8: y≥9y \ge 9
  2. Since xx is a digit in base yy, it must satisfy: 0≤x<y0 \le x < y

Step 5: Find the valid integer pairs (x,y)(x, y)
We look for positive integer factors of 3030 such that xy=30xy = 30 and y≥9y \ge 9:

  • If y=10y = 10, then x=3x = 3 (Valid, since 3<103 < 10 and 10≥910 \ge 9)
  • If y=15y = 15, then x=2x = 2 (Valid, since 2<152 < 15 and 15≥915 \ge 9)
  • If y=30y = 30, then x=1x = 1 (Valid, since 1<301 < 30 and 30≥930 \ge 9)
Any other factor of 30 (like y=6,5,3,2,1y = 6, 5, 3, 2, 1) violates the constraint y≥9y \ge 9.

Thus, there are exactly 3 possible solutions: (3,10)(3, 10), (2,15)(2, 15), and (1,30)(1, 30).

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Number Representations (Fixed and Floating Point) questions