Python 3 implemantation for kaprekan routines.
Sources:
- https://en.wikipedia.org/wiki/Kaprekar%27s_routine
- https://plus.maths.org/content/os/issue38/features/nishiyama/index
- https://en.wikipedia.org/wiki/6174_(number)
Inspiration:
- D.R. Kaprekan routine function (subtract sorted digits).
- Kaprekan routine to generator. Return cycle(s) or constants according number of digits.
- Create friendly and usable python module.
- Add other sequence functions such as Kaprekan's numbers, Kaprekan's steps heatmap visualization, Karshad numbers, Autonúmeros (translate).
Contributions are welcome! Please post an issue or a pull request. Contributions will be properly recognized.