Skip to content

edgarpf/parasitic-numbers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

parasitic-numbers Build Status codecov Maintainability

A simple function that generates a n-parasitic number(in base 10).

Installation

npm i -S parasitic-numbers

Usage

var parasiticNumber = require('parasitic-numbers');

//Use parasiticNumber(n, k) with k >= n 

console.log(parasiticNumber(1,1)); // 1
console.log(parasiticNumber(2,2)); // 105263157894736842
console.log(parasiticNumber(3,3)); // 1034482758620689655172413793
console.log(parasiticNumber(3,5)); // 1724137931034482758620689655

About

A simple function that generates a parasitic number

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published