Reversing Numbers: Why Does Answer = 0 or Divisible by 3?

  • Context: High School 
  • Thread starter Thread starter V8Maverick
  • Start date Start date
  • Tags Tags
    Numbers
Click For Summary

Discussion Overview

The discussion explores the mathematical property of reversing digits in numbers and the resulting differences, specifically why these differences are always either zero or divisible by 3. The scope includes mathematical reasoning and conceptual exploration of number properties in base 10.

Discussion Character

  • Exploratory
  • Mathematical reasoning
  • Conceptual clarification

Main Points Raised

  • One participant notes that reversing a number and subtracting the reversed number from the original yields results that are always divisible by 3, providing examples to illustrate this.
  • Another participant proposes an inductive proof to show that if the property holds for a number, it also holds for the next number, suggesting that the difference is congruent to zero modulo 3.
  • A different participant mentions that the digit sum of a base-10 number is congruent to the number modulo 9, implying that both the original number and its reverse are congruent modulo 9.
  • Another contribution explains that the digit movements during reversal result in changes that can be expressed as multiples of 9, thus supporting the claim that the difference is divisible by 9.
  • One participant emphasizes the need for a more intuitive understanding of the property, detailing how the movement of digits contributes to the overall change in value and its relation to multiples of 9.
  • It is noted that this property is not unique to reversals but applies to any rearrangement of digits, with implications for different bases beyond base 10.

Areas of Agreement / Disagreement

Participants present multiple perspectives and approaches to the problem, with no consensus reached on a single explanation or proof. Disagreement exists on the level of formality and intuition desired in the explanations.

Contextual Notes

Some participants reference properties of numbers in base 10 and congruences, but the discussion does not resolve the implications of these properties across different bases or the completeness of the proofs presented.

V8Maverick
Messages
6
Reaction score
0
Okay, this one is probably going to get laughed out of town, but it's annoying me so I shall ask it anyway.

1. Take any number of 2 digits or greater, reverse it (i.e. 12 becomes 21 or 4765 becomes 5674).
2. Take the 'reversed' number away from the original number.
3. Why is the answer to this simple sum ALWAYS either 0* or divisible by 3?

Try it with any random numbers
12-21 = -9
4765-5674 = -909
863789532 - 235987368 = 627802164

All of these answers are divisible by 3. WHY?

* I had to put in the bit about it could be 0 for those who will point out that 121 or anything similar when reversed is still 121 and hence taken away from itself results in 0.
 
Mathematics news on Phys.org
I think it is easy to prove this by induction.

Let n be a natural number and let L be its length (number of digits). Denote by n' its "reversed" number.
Suppose that for n it is true that n - n' = 0 (mod 3).
Now add 1 to n. Then if we take the reverse of n + 1, we have to add 10L to n'. So:
(n + 1) - (n + 1)' = (n + 1) - (n' + 10L) = (n - n') + (1 - 10L) = 0 + 10L - 1 (mod 3).
For the last expression is easy to see that it is always 0 mod 3 (in fact I think it will be divisible by 9, because it consists of only 9's).

Check the base case => done
(For the base case you might want to take 12 or something, because for all numbers < 12 it is completely trivial, although in principle checking it for n = 1 is sufficient).
 
Last edited:
It also follows immediately from the property of base 10 natural numbers, that they are congruent with their digit sum modulo 9.
 
The digit sum of a base-b number is congruent to the number mod b-1, so in base 10 the number and its reverse are congruent mod 9 (since they're mutually congruent mod 9 to their shared digit sum). Thus the number minus its reverse is divisible by 9.
 
While the answers given here, proofs of the assertion, will be most pleasing to the professional mathematician who always seeks to provide answers in the form of a proof, I think the original asker, in asking "WHY?", was likely looking for something a little less formal and a little more intuitive, so that is what I'll attempt to provide here.

Let's look at the number 1234. When we reverse it, what happens?
We go from 1234 to 4321. The "4" moves from the 1's place to the 1000's place. Before the move it represented 4 * 1, or 4 * 10^0. Now it represents 4 * 10^3. We gained the latter and lost the former; so the "movement" of the digit "4" produces a change in value of +4000-4 = +4*10^3-4*10^0 = 4*(10^3-10^0).

Examination of the movement of the other digits shows that each digit's movement brings about a change in value of the form

digit*(10^n-10^m)

where n and m are non-negative integers. If you factor out the smaller term, you end up with something of the form

+/- digit*(10^p - 1)*10^q where p is a positive integer and q a nonnegative integer. The portion (10^p - 1) can be shown by simple algebra to be a multiple of (10 - 1) or 9.

So, every movement of a digit in the number brings about a change in the value of the overall number that is a multiple of 9; therefore the sum of all digit-movements is also a multiple of 9.

Note that this doesn't apply to just reversals; any scrambling of the digits of a number produces a similar multiple-of-9 change in the number's value. For example, 1234 and 2341 differ by a multiple of 9.

It gets even more interesting if we consider "leading zeros". For example, 23010 can be considered a rearrangement of the digits in the number 123, because we might write 123 as 00123. (These leading zeros "add" 0 thousands and 0 ten thousands to the value of 123, thus not changing the value at all.) Differences between numbers paired in this way will be multiples of 9.

And as the others mentioned, the thing that makes "9" so special is that we use a base 10 number system. If we used base 16, for example, we'd find all digit-reversal pairs to differ by a multiple of (16-1), or 15.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 11 ·
Replies
11
Views
6K
  • · Replies 24 ·
Replies
24
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K