All even-digit Kaprekar Series numbers are multiples of nine.

Let use consider a 2m-digit number, whose digits are sorted in descending order:

n1 = 10(2m - 1) x1 + 10(2m - 2) x2 + ... + 10(2m - i) xi + ... + 10 x2m-1 + x2m

sorted in ascending order, the number would be

n2 = 10(2m - 1) x2m + 10(2m - 2) x2m-1 + ... + 10(i - 1) xi + ... + 10 x2 + x1

The difference between the two numbers


Diff2m = n1 - n2

       = Σ(i = 1 to 2m) 10(2m - i) xi - Σ(i = 2m to 1) 10(i - 1) xi

       = Σ(i = 1 to 2m) {10(2m - i) - 10(i - 1)} xi

       = Σ(i = 1 to m) 10(i - 1) {10(2m - 2i + 1) - 1} xi

- Σ(i = m+1 to 2m) 10(2m - i) {10(2i - 2m - 1) - 1} xi

Where Σ stands for Sigma - the summation notation

Lets take a closer look at part of the above expression

(2m - 2i + 1) is a positive number here when 1 <= i <= m

(2i - 2m - 1) is a positive number for m + 1 <= i <= 2m

So our task is reduced to proving that (10j - 1) is divisible by 9 for a positive j.

Let us assume that this is true for a positive j.

i.e. (10j - 1) is divisible by 9 for a positive j.

Consider the next number (j + 1). For this number, the expression changes to


(10(j+1) - 1)
= 10 (10j - 1) + 9

Now since (10j - 1) is divisible by 9, (10(j+1) - 1) would also be divisible by nine.

Lets consider the case of j = 1. For this value of j, the expression reduces to

101 - 1 = 9

which obviously is divisible by 9.

Hence, by mathematical induction, (10j - 1) is divisible by 9 for all positive integers.

Hence n2 - n1 is divisible by nine for all even-digit numbers. Since every number in the Kaprekar series is obtained by subtracting two numbers, with the same digits, sorted in descending and ascending orders; we come to the conclusion that all numbers in an even-digit Kaprekar series is divisible by 9.

All odd-digit Kaprekar Series numbers are multiples of ninety nine.

Let use consider a 2m+1-digit number, whose digits are sorted in descending order:

n1 = 102m x1 + 10(2m - 1) x2 + ... + 10(2m + 1 - i) xi + ... + 10 x2m + x2m+1

sorted in ascending order, the number would be

n2 = 102m x2m+1 + 10(2m - 1) x2m + ... + 10(i - 1) xi + ... + 10 x2 + x1

The difference between the two numbers


Diff2m+1 = n1 - n2

        = Σ(i = 1 to 2m+1) 10(2m + 1 - i) xi -  Σ(i = 2m+1 to 1) 10(i - 1) xi

        = Σ(i = 1 to 2m+1) {10(2m + 1 - i) - 10(i - 1)} xi

        = Σ(i = 1 to m) 10(i - 1) {10(2m - 2i + 2) - 1} xi
             - Σ(i = m+2 to 2m+1) 10(2m + 1 - i) {10(2i - 2m - 2) - 1} xi

        = Σ(i = 1 to m) 10(i - 1) {102(m - i + 1) - 1} xi
             - Σ(i = m+2 to 2m+1) 10(2m + 1 - i) {102(i - m - 1) - 1} xi

Where Σ stands for Sigma - the summation notation

Notice that (m - i + 1) >= 0 for 1 <= i <= m
And (i - m - 1) > 0 for m + 2 <= i <= 2m + 1
And that the expression is zero for i = m + 1

Diff2m+1 = n1 - n2

So, the problem is reduced to proving that (102j - 1) is divisible by 99.

Lets assume that this is true for a positive j.
Lets consider the next number (j + 1). The expression for (j + 1) would be


102(j+1) - 1
= 100 (102j - 1) + 99

Since (102j - 1) is divisible by 99, so the expression is divisible by 99 for (j + 1) too.

Lets consider the case j = 1. The expression for this value is 102 - 1 = 99. Which is divisible by 99. Hence by mathematical induction, the expression is divisible by 99 for all positive integer j.

Hence n2 - n1 is divisible by 99 for all odd-digit numbers. Since every number in the Kaprekar series is obtained by subtracting two numbers, with the same digits, sorted in descending and ascending orders; we come to the conclusion that all numbers in an odd-digit Kaprekar series is divisible by 99.