partition-integer
Integer partitions, see https://zh.wikipedia.org/wiki/整數分拆.
usage
$ npm install partition-integer --save
var partitionInteger = partitionInteger;//4, due to 3=(3)=(1+1+2)=(2+2)=(1+1+1+1)//, due to (4)=(2+2)=(1+3)
author
license
Apache License 2.0