# nextn

##### Highly Composite Numbers

`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.

- Keywords
- math

##### Usage

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

##### Arguments

- n
- an integer.
- factors
- a vector of positive integer factors.

##### See Also

##### Examples

`library(stats)`

```
nextn(1001) # 1024
table(sapply(599:630, nextn))
```

*Documentation reproduced from package stats, version 3.3.3, License: Part of R 3.3.3*

### Community examples

Looks like there are no examples yet.