Invariance Math Example 1

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

Example 1

easy
Show that the sum of the digits of a multiple of 9 is always a multiple of 9. Verify with n=198n = 198 and n=729n = 729.

Solution

  1. 1
    Any integer nn can be written as n=iai10in = \sum_i a_i \cdot 10^i where aia_i are digits. Since 101(mod9)10 \equiv 1 \pmod{9}, we get niai(mod9)n \equiv \sum_i a_i \pmod{9}.
  2. 2
    So 9n9(sum of digits)9 \mid n \Leftrightarrow 9 \mid (\text{sum of digits}) — the divisibility by 9 is an invariant property shared by nn and its digit sum.
  3. 3
    Check n=198n=198: digit sum =1+9+8=18= 1+9+8 = 18, which is a multiple of 9. And 198=9×22198 = 9 \times 22. Confirmed.
  4. 4
    Check n=729n=729: digit sum =7+2+9=18= 7+2+9 = 18, multiple of 9. And 729=9×81729 = 9 \times 81. Confirmed.

Answer

9n9(digit sum of n)9 \mid n \Leftrightarrow 9 \mid (\text{digit sum of }n)
An invariant is a property preserved across transformations. Here, taking digit sums preserves divisibility by 9 because of how 10 behaves modulo 9.

About Invariance

A property of a mathematical object that remains unchanged when the object undergoes a particular transformation or operation.

Learn more about Invariance →

More Invariance Examples