Highest possible 4-digit number

CAT 2021 Slot 2 · QA · Medium · Number Theory

For a 4-digit number, the sum of its digits in the thousands, hundreds and tens places is 14, the sum of its digits in the hundreds, tens and units places is 15, and the tens place digit is 4 more than the units place digit. Then the highest possible 4-digit number satisfying the above conditions is

Answer

4195

Explanation

Let the 4-digit number be abcdabcd.

  • a+b+c=14a + b + c = 14
  • b+c+d=15b + c + d = 15
  • c=d+4c = d + 4

Subtracting the first equation from the second: (b+c+d)(a+b+c)=1514    da=1    d=a+1(b + c + d) - (a + b + c) = 15 - 14 \implies d - a = 1 \implies d = a + 1

Since c=d+4c = d + 4, we have c=a+5c = a + 5. To maximize the 4-digit number abcdabcd, we want to maximize the thousands digit aa.

Constraints on digits (0a,b,c,d90 \le a, b, c, d \le 9 and a1a \ge 1): c=a+59    a4c = a + 5 \le 9 \implies a \le 4.

Let's test a=4a = 4:

  • d=a+1=5d = a + 1 = 5
  • c=a+5=9c = a + 5 = 9
  • b=14ac=1449=1b = 14 - a - c = 14 - 4 - 9 = 1

Digits are a=4,b=1,c=9,d=5a = 4, b = 1, c = 9, d = 5. Checking constraints:

  • a+b+c=4+1+9=14a+b+c = 4+1+9 = 14
  • b+c+d=1+9+5=15b+c+d = 1+9+5 = 15
  • cd=95=4c - d = 9 - 5 = 4

All conditions satisfied. The highest number is 4195.

Practise this under exam conditions

Sign in to solve it with a live timer, the on-screen CAT calculator, and streak and accuracy tracking across every question you attempt.

Solve in the workspace