UPSC PYQPrelims 2017

Civil Services Examination · Question 49

Certain 3-digit numbers have the following characteristics : 1. All the three digits are different. 2. The number is divisible by 7. 3. The number on reversing the digits is also divisible by 7. How many such 3-digit numbers are there?

  1. 2

  2. 4

  3. 6

  4. 8

Show answer & explanationShow explanation

Answer: (B) 4

Explanation

Given: A 3-digit number N = 100a + 10b + c has distinct digits (a ≠ b ≠ c, with a, c ≥ 1 so both N and its reverse R = 100c + 10b + a are valid 3-digit numbers), and both N and R are divisible by 7. Difference Condition: Since 7 divides both N and R, 7 must divide |N − R| = 99|a − c|. As gcd(99, 7) = 1 and a ≠ c, we must have |a − c| = 7 ⇒ {a, c} = {1, 8} or {2, 9}. Find Middle Digit b: For {1, 8}, 100(1) + 10b + 8 = 108 + 10b ≡ 3 + 3b (mod 7) ⇒ b = 6 (since b ≠ 1, 8 gives 168 and 861). For {2, 9}, 209 + 10b ≡ 6 + 3b (mod 7) ⇒ b = 5 (gives 259 and 952; b ≠ 2, 9). Result: There are 4 such numbers: 168, 259, 861 and 952. Correct Answer: (b) 4

Diagram explaining the answer