News for hackers. Stuff that matters.
Re:Kaprekar's Magic 6174 by ur-whale on Friday June 14, 2024 @10:12AM (#40681114)
No attempts at generalization to larger numbers of digits?
Re:Kaprekar's Magic 6174 by dmichulke on Friday June 14, 2024 @10:18AM (#40681156)
From 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