powered by
Generating all possible divisor combination of certain length for a given positive integer.
divisors(x, d)
A matrix with each row representing a divisor combination.
A positive integer.
A vector of positive integers whose length is the length of divisor combination and each value sets the maximum of each divisor.
divisors(6, c(20,20));
Run the code above in your browser using DataLab