Nice Numbers
Installation
Using npm:
$ npm i nice-numbers
Usage
Checks
https://en.wikipedia.org/wiki/Composite_number
CompositecheckComposite(number: number) => boolean
https://en.wikipedia.org/wiki/Cube_(algebra)
CubecheckCube(number: number) => boolean
https://en.wikipedia.org/wiki/Parity_(mathematics)
EvencheckEven(number: number) => boolean
https://en.wikipedia.org/wiki/Factorial
FactorialcheckFactorial(number: number) => boolean
https://en.wikipedia.org/wiki/Fibonacci_number
FibonaccicheckFibonacci(number: number) => boolean
https://en.wikipedia.org/wiki/Negative_number
NegativecheckNegative(number: number) => boolean
https://en.wikipedia.org/wiki/Parity_(mathematics)
OddcheckOdd(number: number) => boolean
https://en.wikipedia.org/wiki/Prime_number
PrimecheckPrime(number: number) => boolean
https://en.wikipedia.org/wiki/Positive_real_numbers
PositivecheckPositive(number: number) => boolean
https://en.wikipedia.org/wiki/Square_number
SquarecheckSquare(number: number) => boolean
Sequences
http://oeis.org/A000578
CubecubeSequence(start?: number, length?: number) => number[]
http://oeis.org/A000578
CubecubeSequence(start?: number, length?: number) => number[]
http://oeis.org/A005843
EvenevenSequence(start?: number, length?: number)
http://oeis.org/A000142
FactorialfactorialSequence(start?: number, length?: number)
http://oeis.org/A000045
FibonaccifibonacciSequence(start?: number, length?: number)
http://oeis.org/A000027
NaturalnaturalSequence(start?: number, length?: number)
http://oeis.org/A005408
OddoddSequence(start?: number, length?: number)
https://oeis.org/A000079
Powers of twopowers2Sequence(start?: number, length?: number)
http://oeis.org/A000290
SquaresquareSequence(start?: number, length?: number)
http://oeis.org/A003154
StarstarSequence(start?: number, length?: number)
https://oeis.org/A000217
TriangulartriangularSequence(start?: number, length?: number)