Arithmetic · real student question

The digits of a four-digit number that is a multiple of 5 are written in reverse order, producing a second four-digit number. Subtracting the second number from the first gives 1458. Find one such original number.

Question

The digits of a four-digit number that is divisible by 55 are written in reverse order, and the result is again a four-digit number. Subtracting the reversed number from the original gives 14581458. Find one number with this property.

Step-by-step solution

  1. Write both numbers in expanded place-value form. Let the digits be a,b,c,da,b,c,d, so the original number is

    N=1000a+100b+10c+d,a0N=1000a+100b+10c+d,\qquad a\neq 0

    and the reversed number is

    N=1000d+100c+10b+aN'=1000d+100c+10b+a

    Turning the digit statement into arithmetic is the entire trick; everything after this is routine.

  2. Force the last digit using both conditions. Divisibility by 55 leaves d{0,5}d\in\{0,5\}. But the reversed number must also be a four-digit number, so its leading digit dd cannot be 00. Hence

    d=5d=5

    This is the step that decides the problem: with d=0d=0 the reversal would collapse to at most three digits.

  3. Subtract and simplify.

    NN=1000a+100b+10c+5(5000+100c+10b+a)N-N'=1000a+100b+10c+5-(5000+100c+10b+a)

    =999a+90b90c4995=999a+90b-90c-4995

    Setting this equal to 14581458 and moving the constant across:

    999a+90(bc)=1458+4995=6453999a+90(b-c)=1458+4995=6453

  4. Search over the single digit aa, allowing bcb-c to be negative. The term 90(bc)90(b-c) can range from 810-810 to 810810, so 999a999a must land within 810810 of 64536453: only a=7a=7 qualifies (9997=6993999\cdot 7=6993, and 9996=5994999\cdot 6=5994 is 459459 short, which is not a multiple of 9090). With a=7a=7:

    6993+90(bc)=645390(bc)=540bc=66993+90(b-c)=6453\quad\Longrightarrow\quad 90(b-c)=-540\quad\Longrightarrow\quad b-c=-6

    Note that bcb-c is negative here. Testing only nonnegative differences is the trap that makes this problem look unsolvable.

  5. List the numbers and pick one. Digits with bc=6b-c=-6 are (b,c){(0,6),(1,7),(2,8),(3,9)}(b,c)\in\{(0,6),(1,7),(2,8),(3,9)\}, giving

    7065,7175,7285,73957065,\quad 7175,\quad 7285,\quad 7395

    Any of them answers the question; the smallest is

    7065\boxed{7065}

  6. Verify. 70657065 ends in 55, so it is divisible by 55. Reversing gives the four-digit number 56075607, and

    70655607=14587065-5607=1458

    as required. The same method with a right-hand side of 13591359 gives 999a+90(bc)=6354999a+90(b-c)=6354, i.e. a=6a=6 and bc=4b-c=4, whose smallest solution is 64056405.

Answer

7065(also 7175, 7285, 7395)7065\quad(\text{also } 7175,\ 7285,\ 7395)

Need to solve a different problem like this? Open the solver →