0.2.7 • Published 10 years ago

curiousn v0.2.7

Weekly downloads
3
License
Beerware
Repository
github
Last release
10 years ago

Curious/Automorphic Numbers

An N-digit number X, such that the last N-digits of X² == X

e.g. 2-digit "25", 25² is "625".

Usage

const cn = require('curiousn').curiousn;

const ansArray = cn(2);

// there are always 2 curious numbers of length N, so you get an array

// because the curious numbers get big quick, we use "big-integer" // which means you need toString() to see the value

console.log( ansArray0.toString() );

Notes

See

0.2.7

10 years ago

0.2.6

10 years ago

0.2.5

10 years ago

0.2.4

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago