partit.icn: Procedures to partition integer

link partit
December 5, 1995; Ralph E. Griswold
This file is in the public domain.

partit(i, min, max) generates, as lists, the partitions of i; that is the
ways that i can be represented as a sum of positive integers with
minimum and maximum values.

partcount(i, min, max) returns just the number of partitions.

fibpart(i) returns a list of Fibonacci numbers that is a partition of i.

Source code | Program Library Page | Icon Home Page