Question

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

Official answer and solution
Official answer
3
From
Official GATE 2014 answer key

Solution

Convert both sides of the base-equation to decimal and enforce constraints on valid radix digits.

Given (123)5=(x8)y(123)_5 = (x8)_y.

  1. Convert to Decimal:

    • Left-hand side in base 5:
      (123)5=1×52+2×51+3×50=25+10+3=38.(123)_5 = 1 \times 5^2 + 2 \times 5^1 + 3 \times 5^0 = 25 + 10 + 3 = 38.
    • Right-hand side in base yy:
      (x8)y=x⋅y+8.(x8)_y = x \cdot y + 8.
  2. Set up the Equation:

    x⋅y+8=38  ⟹  x⋅y=30.x \cdot y + 8 = 38 \implies x \cdot y = 30.
  3. Apply Base and Digit Constraints:

    • In base yy, the digit 88 appears, so the base must be strictly greater than 88:
      y>8.y > 8.
    • xx is the leading digit, so 1≤x<y1 \le x < y.
    • xx and yy must be positive integers.
  4. Factor Pairs of 30 with y>8y > 8:

    • If y=30y = 30: x=1x = 1 (1<301 < 30, valid).
    • If y=15y = 15: x=2x = 2 (2<152 < 15, valid).
    • If y=10y = 10: x=3x = 3 (3<103 < 10, valid).
    • If y=6y = 6: violates y>8y > 8.
  5. There are exactly 3 valid solutions: (x,y)∈{(1,30),(2,15),(3,10)}(x, y) \in \{(1, 30), (2, 15), (3, 10)\}.

Final answer

3

Common trap

Including y = 6 (with x = 5), which is invalid because digit 8 cannot exist in base 6.

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2014 Computer Science and Information Technology (CS) Session 2
Question
18 of 65, printed as CS Q.8
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.