nice-numbers
v1.0.0
Published
Integer sequences, number types and more
Downloads
17
Maintainers
Readme
Nice Numbers
Installation
Using npm:
$ npm i nice-numbers
Usage
Checks
Composite https://en.wikipedia.org/wiki/Composite_number
checkComposite(number: number) => boolean
Cube https://en.wikipedia.org/wiki/Cube_(algebra)
checkCube(number: number) => boolean
Even https://en.wikipedia.org/wiki/Parity_(mathematics)
checkEven(number: number) => boolean
Factorial https://en.wikipedia.org/wiki/Factorial
checkFactorial(number: number) => boolean
Fibonacci https://en.wikipedia.org/wiki/Fibonacci_number
checkFibonacci(number: number) => boolean
Negative https://en.wikipedia.org/wiki/Negative_number
checkNegative(number: number) => boolean
Odd https://en.wikipedia.org/wiki/Parity_(mathematics)
checkOdd(number: number) => boolean
Prime https://en.wikipedia.org/wiki/Prime_number
checkPrime(number: number) => boolean
Positive https://en.wikipedia.org/wiki/Positive_real_numbers
checkPositive(number: number) => boolean
Square https://en.wikipedia.org/wiki/Square_number
checkSquare(number: number) => boolean
Sequences
Cube http://oeis.org/A000578
cubeSequence(start?: number, length?: number) => number[]
Cube http://oeis.org/A000578
cubeSequence(start?: number, length?: number) => number[]
Even http://oeis.org/A005843
evenSequence(start?: number, length?: number)
Factorial http://oeis.org/A000142
factorialSequence(start?: number, length?: number)
Fibonacci http://oeis.org/A000045
fibonacciSequence(start?: number, length?: number)
Natural http://oeis.org/A000027
naturalSequence(start?: number, length?: number)
Odd http://oeis.org/A005408
oddSequence(start?: number, length?: number)
Powers of two https://oeis.org/A000079
powers2Sequence(start?: number, length?: number)
Square http://oeis.org/A000290
squareSequence(start?: number, length?: number)
Star http://oeis.org/A003154
starSequence(start?: number, length?: number)
Triangular https://oeis.org/A000217
triangularSequence(start?: number, length?: number)