By signing in you confirm you are 18 or older, or have your parent’s or guardian’s consent.

UPSC Prelims 2017 CSAT, question 49

Topic: Number system

Q49

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. (a) 2
  2. (b) 4Correct answer
  3. (c) 6
  4. (d) 8

Solution.

Answer: (b) 4

  1. Let the 33-digit number with distinct digits be N=abc‾=100a+10b+cN = \overline{abc} = 100a + 10b + c and its reverse be R=cba‾=100c+10b+aR = \overline{cba} = 100c + 10b + a (a,c≥1a, c \ge 1). Since 7∣N7 \mid N and 7∣R7 \mid R, 77 divides N−R=99(a−c)N - R = 99(a - c); since gcd⁡(99,7)=1\gcd(99, 7) = 1 and a≠ca \ne c, we must have ∣a−c∣=7|a - c| = 7, giving {a,c}∈{{1,8},{2,9}}\{a, c\} \in \{\{1, 8\}, \{2, 9\}\}.
  2. Testing middle digits bb: for {1,8}\{1, 8\}, 7∣1b8‾7 \mid \overline{1b8} holds only for b=6b = 6, giving 168168 and 861861; for {2,9}\{2, 9\}, 7∣2b9‾7 \mid \overline{2b9} holds only for b=5b = 5, giving 259259 and 952952. Thus, there are 44 such numbers.