Learn R Programming

KOFM (version 1.1.1)

divisors: Divisor combination generator

Description

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

Usage

divisors(x, d)

Value

A matrix with each row representing a divisor combination.

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.

Examples

Run this code
divisors(6, c(20,20));


Run the code above in your browser using DataLab