GATE / CS ARCHIVE

SIMILAR QUESTIONS / DIGITAL LOGIC

Solve numeral equations for valid bases

7 questions solved the same way, newest first. Back to Digital Logic

How these are solved

Expand each numeral as a polynomial/rational expression in its base, solve the equality, then impose integer bases greater than every digit and leading-digit constraints; count or select valid solutions.

1 mark · NAT
Report issue

Number Systems & Computer Arithmetic

Question 24, GATE 2017: The quadratic x²−13x+36=0 has its coefficients written in base b. Its roots in that same base are the single digits 5 and 6. Find b.
Tap to enlarge
Answer & solution

Official answer: 8.0

Our answer: 8

Step through it (5 steps)

1. Because 5 and 6 are single digits, their numerical values are 5 and 6, while the coefficient 13_b means b+3 and 36_b means 3b+6. The base must exceed 6 to admit all displayed digits.

2. For a monic quadratic, the sum of the roots equals the coefficient subtracted from x. Thus 5+6=b+3, which gives b=8.

3. Check the product condition as well: 5·6=30, and 36_8=3·8+6=30. Both coefficient relations agree, and digits 0 through 6 are legal in base 8. Hence the answer is 8, not a decimal interpretation of 13 and 36.

Original paper, page 10 · Answer key

2 marks · NAT
Report issue

Number Systems & Computer Arithmetic

Question 59, GATE 2015: In positional notation, (43) base x equals (y3) base 8, where x is a valid integer base and y is a valid octal digit. How many (x,y) solutions are possible?
Tap to enlarge
Answer & solution

Official answer: 5

Step through it (9 steps)

1. The complete pairs are (x,y)=(6,3),(8,4),(10,5),(12,6),(14,7). The apparent pair (4,2) is invalid because digit 4 cannot occur in base 4; larger y cannot occur in base 8.

2. The equality gives 4x+3=8y+3, hence x=2y. The base must exceed its largest digit 4, so x≥5, and the octal digit y lies between 0 and 7. Thus y=3, 4, 5, 6, 7 and x=6, 8, 10, 12, 14, giving five solutions.

Original paper, page 76 · Answer key

1 mark · NAT
Report issue

Number Systems & Computer Arithmetic

Question 8, GATE 2014: All numerals in the equation (312)/(20)=13.1 use the same unknown base. Determine that base.
Tap to enlarge
Answer & solution

Official answer: 5

Step through it (5 steps)

1. Method and setup. Translate place values before doing arithmetic: 312 means 3b²+b+2, 20 means 2b, and 13.1 means b+3+b⁻¹. The base must be an integer greater than 3 because digit 3 occurs. This restriction removes algebraic roots that are not valid radices.

2. Work through the result and its assumptions. For base b, (3b²+b+2)/(2b)=b+3+1/b. Multiplication gives 3b²+b+2=2b²+6b+2, hence b(b−5)=0. A valid base exceeds the largest digit 3, so b=5.

Original paper, page 9 · Answer key

1 mark · NAT
Report issue

Number Systems & Computer Arithmetic

Question 8, GATE 2014: In the numeral equation (123) base 5 = (x8) base y, x is a leading digit and y is an integer base. How many pairs (x,y) are possible?
Tap to enlarge
Answer & solution

Official answer: 3

Step through it (9 steps)

1. Set up the reasoning. Convert the known numeral to decimal: 1×5²+2×5+3=38. The other numeral equals xy+8, so admissible pairs must satisfy xy=30.

2. Derive the result. (123)₅=25+10+3=38, so xy+8=38 and xy=30. A valid base y>8 and a leading digit 1≤x<y leave(x, y)=(1, 30),(2, 15),(3, 10). Thus3 solutions.

3. Check the interpretation. Digit validity is essential: the digit 8 requires y≥9, and x must satisfy 1≤x<y. Check the factor pairs of 30 against these constraints rather than counting every factorization.

Original paper, page 31 · Answer key

1 mark · MCQ
Report issue

Radix-independent square identity

Number Systems & Computer Arithmetic

Question 6, GATE 2008: For radix r, which r satisfy √(121ᵣ)=11ᵣ?

(A) Decimal 10
(B) Decimal 11
(C) Decimal 10 and 11
(D) Any valid radix greater than 2
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

1. Interpret the digits by place value: 121ᵣ=r²+2r+1=(r+1)², while 11ᵣ=r+1.
2. The positive square root is r+1 for every positive radix.
3. Digit 2 is valid only when the integer radix exceeds 2. Hence all valid r>2 satisfy the equation, D; there is nothing special about decimal 10 or 11.

Original paper, page 2

1 mark · MCQ
Report issue

Equality in two number bases

Number Systems & Computer Arithmetic

Question 19, GATE 2004: If the base-x numeral 73 equals the base-y numeral 54, which pair (x,y) is possible?
Options:
(A) 8,16
(B) 10,12
(C) 9,13
(D) 8,11
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

Step through it (6 steps)

1. The equation is 7x+3=5y+4, or 7x−5y=1. Among the options x=8,y=11 gives 56−55=1 and both bases exceed their digits.

2. Thus D; both numerals represent 59.

3. Teaching check: A two-digit numeral ab in base r equals ar+b, rather than a×10+b. Substitution for (8,11) gives 7×8+3=59 and 5×11+4=59. Valid bases must also exceed every digit used; algebra alone would not suffice otherwise.

Original paper, page 3

2 marks · MCQ
Report issue

Solving for a radix

Number Systems & Computer Arithmetic

Question 5.4, GATE 1997: Given sqrt ((224)r)=(13)r, find base r among 10, 8, 5, 6.
Tap to enlarge
Your answer
Answer & solution

Answer: C: 5 (no official key was published)

Step through it (6 steps)

Convert the positional numerals to values: (224)r=2r²+2r+4 and (13)r=r+3. Squaring gives 2r²+2r+4=(r+3)²=r²+6r+9. Rearranging yields r²−4r−5=(r−5)(r+1)=0. A valid positive radix containing digit 4 must exceed 4, so r=5, option C. Check 224₅=64 and 13₅=8, whose square is 64.

Original paper, page 5