Invariants Math Example 3

Follow the full solution, then compare it with the other examples linked below.

Example 3

medium
The sum of digits of a number doesn't change modulo 9 when you add 9. Verify: 47 β†’ 47+9=56. Is the digit sum invariant mod 9?

Solution

  1. 1
    Compute the digit sum of 47: 4+7=114 + 7 = 11. Then 11mod  9=211 \mod 9 = 2.
  2. 2
    Compute the digit sum of 56: 5+6=115 + 6 = 11. Then 11mod  9=211 \mod 9 = 2.
  3. 3
    Both digit sums are congruent to 2 mod 9. This works because adding 9 to any number doesn't change its residue mod 9 (since 9≑0(mod9)9 \equiv 0 \pmod{9}), and a number's digit sum is always congruent to the number itself mod 9.

Answer

Yes, the digit sum mod 9 is invariant under adding 9. Both 47 and 56 have digit sum ≑2(mod9)\equiv 2 \pmod{9}.
The digit sum modulo 9 is a classic invariant known as 'casting out nines.' Any number n≑n \equiv (sum of its digits) (mod9)\pmod{9}, and since 9≑0(mod9)9 \equiv 0 \pmod{9}, adding 9 preserves this residue. This invariant is useful for checking arithmetic.

About Invariants

Quantities or properties that remain unchanged during a process, operation, or transformationβ€”values that stay the same no matter how the system is rearranged or acted upon.

Learn more about Invariants β†’

More Invariants Examples