Text this: Kaprekar's transformations. Part I—theoretical discussion