Complicated algebra problem? A number subtracted by The same number but its digits scrambled is always a. Multiple of 9. Please give me a proof?

Can you please give me a proof and explain why this is always correct? Thanks

Hello, I have a question about math. You have a number (integer) and you subtract it by just moving any digits around, like 2139-1239 (1239 is just 2 and 1 switched) and the answer to that is always a multiple of 9. Like 234567891-123456789 is a mult of 9

1 Answer
Nov 21, 2017

See below.

Explanation:

Fixing ideas with a three digit integer decimal number

n=a102+b10+c

Let ns=c102+a10+b the scrambled number.

We have

nns=a102+b10+cc102a10b=a(10210)+b(101)(1021)c=90a+9b99c=9(10a+b11c)

Note that after scrambling and adding, the digits a,b,c are multiplied by numbers of the form

10n10m which always are divisible by 9

NOTE:

10n10m=10m(10nm1) and

10nm1=(101)(1+10++10nm1)