Four-Digit Subtraction - Revised

Algebra Level 2

D C B A A B C D C A D B \large \begin{array}{c}& D & C & B & A \\ - & A & B & C & D \\ \hline & C & A & D & B \end{array}

In the image above we have a subtraction. All alphabets represents a different digit and A < B < C < D A<B<C<D .

What is the value of A + B + C + D A+B+C+D ?


The answer is 18.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

3 solutions

Hugh Sir
Nov 29, 2018

Rewrite the equation:

C A D B + A B C D = D C B A CADB + ABCD = DCBA

For the unit digits, since A < B < D A < B < D , it must follow that B + D = A + 10 B+D = A+10 .

For the tens digits, since B < C < D B < C < D , it must follow that D + C + 1 = B + 10 D+C+1 = B+10 .

For the hundreds digits, since A < B < C A < B < C , it must follow that A + B + 1 = C A+B+1 = C .

For the thousands digits, we have C + A = D C+A = D .

Adding all the four equations yields 2 ( A + B + C + D ) + 2 = ( A + B + C + D ) + 20 2(A+B+C+D)+2 = (A+B+C+D)+20 .

Therefore, A + B + C + D = 20 2 = 18 A+B+C+D = 20-2 = \boxed{18} .

Note: the solution to the system of equations is ( A , B , C , D ) = ( 1 , 4 , 6 , 7 ) (A,B,C,D) = (1,4,6,7) .

This process of sorting the digits by size and then subtracting the ascending order from the descending order has been studied. There is exactly one four digit number that whose difference is itself, which is the Kaprekar constant 6174.

Henry U - 2 years, 6 months ago
Jordan Cahn
Nov 30, 2018

The sum of the digits of a number is congruent to its remainder modulo 9. That is,

A + B + C + D A B C D D C B A C A D B m o d 9 A + B + C + D \equiv \overline{ABCD} \equiv \overline{DCBA} \equiv \overline{CADB} \mod 9

Since A B C D D C B A m o d 9 \overline{ABCD} \equiv \overline{DCBA} \bmod 9 , A B C D D C B A 0 m o d 9 \overline{ABCD} - \overline{DCBA} \equiv 0\bmod 9 . Thus C A D B 0 m o d 9 \overline{CADB} \equiv 0\bmod 9 and, indeed, all our numbers are divisible by 9. This means that the sum A + B + C + D A+B+C+D must be divisible by 9.

The only digit that could be zero is A A , but that would give us a leading zero in A B C D \overline{ABCD} . Thus, the smallest possible value of A + B + C + D A+B+C+D is 1 + 2 + 3 + 4 = 10 > 9 1+2+3+4=10>9 . Similarly, the greatest possible value is 6 + 7 + 8 + 9 = 30 < 36 6+7+8+9 = 30<36 . Thus, the only possible sums are 18 18 and 27 27 .

A + B + C + D = 27 A+B+C+D=27 is only possible if D = 9 D=9 and A 3 A\geq 3 . But then the leftmost digit in the subtraction would imply that C 6 C\leq 6 . Since 4 + 5 + 6 + 9 = 24 4+5+6+9=24 , this is impossible.

Thus the only possibility is A + B + C + D = 18 A+B+C+D=\boxed{18} .

Chew-Seong Cheong
Nov 30, 2018

The difference can be represented by

1000 D + 100 C + 10 B + A 1000 A 100 B 10 C D = 1000 C + 100 A + 10 D + B 1099 A + 91 B + 910 C = 989 D 7 ( 157 A + 13 B + 130 C ) = 23 × 43 × D D = 7 \begin{aligned} 1000D+100C+10B+A - 1000A-100B-10C-D & = 1000C+100A+10D+B \\ \implies 1099A+91B+910C & = 989D \\ {\color{#3D99F6}7}(157A+13B+130C) & = 23 \times 43\times \color{#3D99F6}D \\ \implies D & = 7 \end{aligned}

Since the LHS is a multiple of 7, the RHS must also be a multiple of 7, therefore, D = 7 D=7 . Since A < B < C < D A<B<C<D , we note 1 A 4 1 \le A \le 4 , 2 B 5 2 \le B \le 5 , and 3 C 6 3 \le C \le 6 . From the above, we have:

157 A + 13 B + 130 C = 989 Consider the last digit 7 A + 3 B 9 (mod 10) \begin{aligned} 157A+13B+130C & = 989 & \small \color{#3D99F6} \text{Consider the last digit} \\ \implies 7A + 3B & \equiv 9 \text{ (mod 10)} \end{aligned}

{ A = 1 B = 4 Acceptable A = 2 B = 5 Acceptable A = 3 B = 6 Unacceptable A = 4 B = 7 Unacceptable \implies \begin{cases} A=1 & \implies \color{#3D99F6} B = 4 & \small \color{#3D99F6} \text{Acceptable} \\ A=2 & \implies \color{#3D99F6} B = 5 & \small \color{#3D99F6} \text{Acceptable} \\ A=3 & \implies \color{#D61F06} B = 6 & \small \color{#D61F06} \text{Unacceptable} \\ A=4 & \implies \color{#D61F06} B = 7 & \small \color{#D61F06} \text{Unacceptable} \end{cases}

From C = 989 157 A 13 B 130 C = \dfrac {989 - 157A-13B}{130} { A = 1 , B = 4 C = 6 A = 2 , B = 5 C = 4 9 13 No integer solution \implies \begin{cases} A=1, & B = 4 & \color{#3D99F6} \implies C = 6 \\ A=2, & B = 5 & \color{#D61F06} \implies C = 4\frac 9{13} \quad \small \text{No integer solution} \end{cases}

Therefore, A + B + C + D = 1 + 4 + 6 + 7 = 18 A+B+C+D=1+4+6+7 = \boxed{18} .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...