Squarefree {Zseq} | R Documentation |
Squarefree numbers
Description
Under OEIS A005117, a Squarefree number is a number that are not divisible by a square of a smaller integer greater than 1. First 6 Squarefree numbers are 1, 2, 3, 5, 6, 7.
Usage
Squarefree(n, gmp = TRUE)
Arguments
n |
the number of first |
gmp |
a logical; |
Value
a vector of length n
containing first entries from the sequence.
Examples
## generate first 30 Squarefree numbers
print(Squarefree(30))
[Package Zseq version 0.2.1 Index]