3 ms·
No attempts at generalization to larger numbers of digits?
by ur-whale 2y ago
No attempts at generalization to larger numbers of digits?
- dmichulke 2y agoFrom https://en.wikipedia.org/wiki/D._R._Kaprekar https://en.wikipedia.org/wiki/D._R._Kaprekar A similar constant for 3 digits is 495.[7] However, in base 10 a single such constant only exists for numbers of 3 or 4 digits; for other digit lengths or bases other than 10, the Kaprekar's routine algorithm described above may in general terminate in multiple different constants or repeated cycles, depending on the starting value