divisors {KOFM}R Documentation

Divisor combination generator

Description

Generating all possible divisor combination of certain length for a given positive integer.

Usage

divisors(x, d)

Arguments

x

A positive integer.

d

A vector of positive integers whose length is the length of divisor combination and each value sets the maximum of each divisor.

Value

A matrix with each row representing a divisor combination.

Examples

divisors(6, c(20,20));



[Package KOFM version 0.1.1 Index]