divisors: Divisor combination generator

View source: R/divisors.R

divisorsR 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));



KOFM documentation built on April 3, 2025, 11:05 p.m.