1.0.1 • Published 9 years ago

recmath v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

recmath

Functions from the world of recreational mathematics.

Installing

$ npm install recmath

API

var recmath = require('recmath');

Happy Number

recmath.happy(19);

Response:

{
    n: 19,
    "happy": true,
    "seq": [19, 82, 68, 100, 1]
}

Harshad Number

recmath.harshad(18);

Response:

{
    n: 18,
    "harshad": true,
    "seq": [9, 2]
}