1.0.1 • Published 7 years ago

iskaprekar v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

iskaprekar

In mathematics, a Kaprekar number for a given base is a non-negative integer, the representation of whose square in that base can be split into two parts that add up to the original number again.

For instance, 45 is a Kaprekar number, because 45^2 = 2025 and 20 + 25 = 45.

Usage

var isKaprekar = require('iskaprekar');

isKaprekar(4950);
// -> true

License

This project is licensed under the MIT License - see the LICENSE.md file for details

1.0.1

7 years ago

1.0.0

7 years ago