An open API service indexing awesome lists of open source software.

https://github.com/arkantrust/kaprekar_constant

Kaprekar's constant implementation on python.
https://github.com/arkantrust/kaprekar_constant

Last synced: 10 months ago
JSON representation

Kaprekar's constant implementation on python.

Awesome Lists containing this project

README

          

# Kaprekar's constant - 6174

For any 4-digit number with at least 2 different digits:

1. if arranged in descending and ascending order,
2. subtracted the smaller number from the bigger one,
3. Kaprekar's constant (6174) will be returned
4. (many iterations may be needed).

## Objective

1. I like mathematics, it's just for fun lol
2. It's been practical to learn how to make GUI's

## See also

- [Kaprekar's Constant](https://en.wikipedia.org/wiki/6174#:~:text=The%20number%206174%20is%20known,(leading%20zeros%20are%20allowed).)
- [Algorithm](https://en.wikipedia.org/wiki/Kaprekar%27s_routine)