4.0.0 • Published 9 months ago

zeckendorf v4.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
9 months ago

zeckendorf

Calculate the Zeckendorf representation of an integer.

Example

var zeckendorf = require('zeckendorf');

zeckendorf(33);
// => 1010101

Installation

$ npm install zeckendorf

API

var zeckendorf = require('zeckendorf');

zeckendorf(n)

Calculates and returns the Zeckendorf form of Number n. The returned Number represents a table of Fibonacci numbers, so zeckendorf(11) returns 10100, which represents: 1*8 + 0*5 + 1*3 + 0*2 + 0*1.

4.0.0

9 months ago

3.0.0

1 year ago

2.0.0

2 years ago

1.0.2

8 years ago

1.0.1

10 years ago

1.0.0

10 years ago