partition-integer

1.0.0 • Public • Published

partition-integer

NPM version Downloads Build Status Dependency status Dev Dependency status

Integer partitions, see https://zh.wikipedia.org/wiki/整數分拆.

usage

$ npm install partition-integer --save
var partitionInteger = require('partition-integer').partitionInteger;
partitionInteger(3)//4, due to 3=(3)=(1+1+2)=(2+2)=(1+1+1+1)
partitionInteger(4, 2)//, due to (4)=(2+2)=(1+3)

author

license

Apache License 2.0

/partition-integer/

    Package Sidebar

    Install

    npm i partition-integer

    Weekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • yinyongcom666