Reverse Digits

Logic Level 2

A B C D E × 9 E D C B A \begin{array} { c c c c c c } & A & B & C & D& E \\ \times& & & & & 9 \\ \hline & E & D & C & B & A \\ \hline \end{array}

What is the only five digit number that when multiplied by 9 is its digits reversed?


The answer is 10989.

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.

7 solutions

Pi Han Goh
May 5, 2016

Relevant wiki: Cryptogram - Problem Solving

Let this 5-digit number be denoted by A B C D E \overline{ABCDE} as shown in the question, where A , B , C , D A,B,C,D and E E are not necessarily distinct single digits.

Because A B C D E × 9 = A B C D E × ( 10 1 ) = A B C D E 0 A B C D E \overline{ABCDE} \times 9 = \overline{ABCDE} \times (10-1) = \overline{ABCDE0} - \overline{ABCDE} , then the cryptogram is equivalent to the following:

A B C D E 0 A B C D E E D C B A A B C D E + E D C B A A B C D E 0 \begin{array} { c c c c c c c } & A & B & C & D& E & 0\\ - && A & B & C & D& E \\ \hline && E & D & C & B & A \\ \hline \end{array} \Leftrightarrow \begin{array} { c c c c c c c } && \color{#3D99F6} A & B & C & D& \color{#D61F06} E \\ +&& \color{#3D99F6} E & D & C & B & \color{#D61F06} A\\ \hline & A & B & C & D& E & 0 \\ \hline \end{array}

Since the cryptogram shows the sum of 2 5-digit integers to produce a 6-digit integer, then the carry over in the leftmost column (as highlighted in blue) is exactly 1. In other words, A = 1 A = 1 .

Then, looking at the rightmost column (as highlighted in red) tells us that E + A 0 ( m o d 10 ) E+A \equiv 0 \pmod {10} , because we already know that A = 1 A = 1 , then E = 9 E = 9 only. Thus the cryptogram simplifies to

1 B C D 9 + 9 D C B 1 1 B C D 9 0 \begin{array} { c c c c c c c } && 1 & B & C & D& 9 \\ +&& 9 & D & C & B & 1 \\ \hline & 1 & B & C & D& 9 & 0\\ \hline \end{array}

Since A B C D E × 9 \overline{ABCDE} \times 9 is still a 5-digit integer, then A B C D E < 1 0 5 9 = 11111 1 9 \overline{ABCDE} < \dfrac{10^5}9 = 11111 \dfrac19 . Because we already know that A = 1 A = 1 , then B B is forced to be either 0 or 1 only.

Suppose B = 0 B = 0 , then looking at the second rightmost column gives B + D + 1 9 ( m o d 10 ) D = 8 B+D+ 1 \equiv 9 \pmod{10} \Rightarrow D = 8 . Thus the cryptogram simplifies to

1 0 C D 9 + 9 D C 0 1 1 0 C D 9 0 1 0 C 8 9 + 9 8 C 0 1 1 0 C 8 9 0 \begin{array} { c c c c c c c } && 1 & 0 & C & D& 9 \\ +&& 9 & D & C & 0 & 1 \\ \hline & 1 & 0 & C & D& 9 & 0\\ \hline \end{array} \Rightarrow \begin{array} { c c c c c c c } && 1 & 0 & C & 8& 9 \\ +&& 9 & 8 & C & 0 & 1 \\ \hline & 1 & 0 & C & 8& 9 & 0\\ \hline \end{array}

To finish it off, by looking at the third rightmost column, we have 2 C 8 ( m o d 10 ) C = 4 , 9 2C \equiv 8 \pmod {10}\Rightarrow C = 4, 9 . Trial and error shows that C = 9 C = 9 only.

Thus, ( A , B , C , D , E ) = ( 1 , 0 , 9 , 8 , 9 ) (A,B,C,D,E) = (1,0,9,8,9) .

Now suppose B = 1 B = 1 , then looking at the second rightmost column gives B + D + 1 9 ( m o d 10 ) 7 B+D+1 \equiv 9 \pmod {10} \Rightarrow 7 . Thus the cryptogram simplifies to

1 1 C 7 9 + 9 7 C 1 1 1 1 C 7 9 0 \begin{array} { c c c c c c c } && 1 &1 & C & 7& 9 \\ +&& 9 & 7 & C & 1 & 1 \\ \hline & 1 & 1 & C & 7& 9 & 0\\ \hline \end{array}

However, looking at the third rightmost column tells us that 2 C 7 ( m o d 10 ) 2 C = 7 , 17 2C \equiv 7 \pmod{10} \Rightarrow 2C = 7,17 . But this is impossible because 2 C 2C has to be an even number. So B = 1 B= 1 cannot be a solution.

Hence, it is true that there is only one 5-digit integer that satisfies this condition, namely 10989 \boxed{10989} .

When you denote numbers by letters as in Algebra, you don't have two letters denoting the same number. In this case C & E are both shown to be 9. Thus the very question is faulty. Or else letters C & E are no more distinct.

Ashok Aggarwal - 5 years ago

Log in to reply

I don't understand. Can you elaborate?

Pi Han Goh - 5 years ago

Log in to reply

He seems to say you say that C and E are different numbers and because you state that they are different they shouldn't be both equal with 9. Yet note Ashok Aggarwal that in Pi Han Goh's solution it is stated what rules the notation respects , and there it says at the beginning that those letters represent not necessarily different numbers meaning therefore that they can after all all of them and not just those have the same value.

A A - 5 years ago
Pil Pinas
Apr 28, 2016

Relevant wiki: Cryptogram - Problem Solving

Cryptarithms

Let number be ABCDE

ABCDE*9=EDCBA

A must be 1 for ABCDE to be 5 digit and so that there will be no carry over (EDCBA will remain 5 digit) Consequently E must be 9 B can be either 0 or 1 since multiplying by 9 should not give a carry over for the thousandths place, (E already 9)

Case 1: B=0 Solving for D, 9*D+8 (carry over)=0 D can only be 8

Solving for C, 9*C+8 (carry over)=C C can only be 9

Rechecking, 10989*9=98901

A similar process can be done for Case 2: B=1, but we will get no solutions.

Therefore, answer is 10989

Ras Dwivedi
May 22, 2016
  • Smallest 5 digit number is 10000 10000 which when multiplied by 9 9 is 90000 90000

  • largest 5 digit number that remains a 5 5 digit when multiplied by 9 9 is 11111 11111

  • obviously A = 1 A=1 and E = 9 E=9 . and since E = 9 E=9 one of B , C , D B,C,D has to be zero as 10000 < A B C D E < 11111 10000<ABCDE<11111

  • now, A B C D E 10000 A + 1000 B + 100 C + 10 D + E ABCDE \implies 10000A+1000B+100C+10D+E ( A , B , C , D , E A,B,C,D,E all single digit integer) and E D C B A = 10000 E + 1000 D + 100 C + 10 B + A EDCBA=10000E+1000D+100C+10B+A

  • 9 × A B C D E = 90000 A + 9000 B + 900 C + 90 D + 9 E = 10000 E + 1000 D + 100 C + 10 B + A 9 \times ABCDE = 90000A+9000B+900C+90D+9E = 10000E + 1000D + 100C + 10B + A with A = 1 A = 1 and E = 9 E = 9 .

Putting values

80 + 8990 B + 800 C 910 D = 0 \implies 80 + 8990 B + 800 C - 910D = 0 . with all B , C , D B,C,D positive, single digit natural number with at least one of them 0 0 .

  • obviously D D cannot be zero. (RHS of the above equation is zero and LHS would have all positive quantities)

  • Assuming B = 0 80 + 800 C = 910 D B = 0 \implies 80 + 800C = 910D which gives C = 9 C=9 and D = 8 D=8 as integral solution.

if we assume C = 0 C=0 , no integral solution can be found. so the number is 10989 10989 .

Thank you for sharing your approach, Ras. You have presented your method of solving this problem very systematically. I upvoted your solution (+1)

I have also edited the Latex in your solution so it is easier to read and understand.

Pranshu Gaba - 5 years ago
Richard Levine
May 22, 2016
  1. ABCDE x 9 = EDCBA. It's easy to see Ax9 = E. A can't be 0, and Ax9 is 1 digit, so A=1.
  2. Ex9 = ?A = ?1, where ? is carry. E=9.
  3. Bx9 + ? has no carry, since we know Ax9 = E = 9, so B must be 0.
  4. D*9 + 8 = ?0. So, D = 8.
  5. 10C89x9 = 98C01, so 9(10089+100C) = 98001 + 100C. Solving, C=9. The answer is ABCDE = 10989
Vallabh Deshpande
Dec 10, 2016

// I wrote a C++ program for this:

include <iostream>

using namespace std;

int main() {

for(int x = 10000; x<=99999; x++){

        int r = x;
       int y = 0;
        while(r != 0){
            y = y*10 + r%10;
            r = r/10;
        }
    if(x*9 == y){
        cout<<x<<endl;
    }

}
return 0;

}

//Answer is 10989

Luis Rivera
Jun 10, 2016

Dammit ! The idiot that wrote this problem did not specify that numbers could be repeated. But this is a quote from the instructions page :

""""For simplicity and consistency, we will assume the following: 1--Each symbol represents a distinct single non-negative digit. """"

Not specifying this caused unnecessary waste of time !!!

Neelotpal Dutta
May 24, 2016

After equating ABCDE*9=EDCBA, for both numbers to have same number of digits we get A as 1 and E as 9. Express each digit as their place values, we get 8990B + 800C +80= 910D since 0<=B,D,C<=9 it is possible for B= 0 This implies, 800C + 80= 910D thus we see a clear solution for C=9 and D=8

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...