TITLE(nextn @@ Highly Composite Numbers)
USAGE(
nextn(n, factors=c(2,3,5))
)
ALIAS(nextn)
ARGUMENTS(
ARG(n @@ an integer.)
ARG(factors @@ a vector of positive integer factors.)
)
DESCRIPTION(
LANG(nextn) returns the smallest integer,
greater than or equal to LANG(n), which can be obtained
as a product of powers of the values contained in LANG(factors).
LANG(nextn) is intended to be used to find a suitable length
to zero-pad the argument of LANG(fft) to
so that the transform is computed quickly.
The default value for LANG(factors) ensures this.
)
SEEALSO(
LANG(LINK(convolve)), LANG(LINK(fft)).
)
