This help topic is for R version 0.60. For the current version of R, try https://stat.ethz.ch/R-manual/R-patched/library/base/html/nextn.html
nextn {base}R Documentation

Highly Composite Numbers

Description

nextn returns the smallest integer, greater than or equal to n, which can be obtained as a product of powers of the values contained in factors. nextn is intended to be used to find a suitable length to zero-pad the argument of fft to so that the transform is computed quickly. The default value for factors ensures this.

Usage

nextn(n, factors=c(2,3,5))

Arguments

n

an integer.

factors

a vector of positive integer factors.

See Also

convolve, fft.


[Package base version 0.60 ]