Arithmetic · real student question

A three-digit number has a first digit different from its last digit. Reversing its digits gives a second number, and subtracting that from the original gives 396. Find the largest such number.

Question

A three-digit number has a first digit different from its last digit. Writing its digits in reverse order gives a second number, and subtracting the second from the first gives 396396.

Find the largest number with this property.

Step-by-step solution

  1. Write both numbers in expanded form. With digits aa, bb, cc (and a0a\ne 0):

    N=100a+10b+c,N=100c+10b+aN=100a+10b+c,\qquad N'=100c+10b+a

  2. Subtract and watch the tens digit vanish.

    NN=(100a+10b+c)(100c+10b+a)=99a99c=99(ac)N-N'=(100a+10b+c)-(100c+10b+a)=99a-99c=99(a-c)

    The middle digit bb cancels completely, which is the whole point of the problem: it is entirely free.

  3. Solve for the digit gap.

    99(ac)=396  ac=39699=499(a-c)=396\ \Longrightarrow\ a-c=\frac{396}{99}=4

    So the first digit is exactly 44 more than the last.

  4. Maximise digit by digit, from the left. Place value means the hundreds digit dominates, so take the largest aa that keeps c=a4c=a-4 a valid digit: a=9a=9, giving c=5c=5. Then maximise the tens digit. The problem only requires the first and last digits to differ — it says nothing about the middle one — so bb may be 99:

    N=995N=995

  5. Check, and see why 985 is not the answer.

    995599=396995-599=396\quad\checkmark

    A common slip is to assume all three digits must be distinct, which would rule out b=9b=9 and give the smaller 985985 (also valid: 985589=396985-589=396). But 995995 is larger and satisfies every stated condition, so it is the true maximum.

Answer

995(995599=396)995\quad(995-599=396)

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