A005117: Squarefree numbers

SquarefreeR 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 n entries from the sequence.

gmp

a logical; TRUE to use large number representation, FALSE otherwise.

Value

a vector of length n containing first entries from the sequence.

Examples

## generate first 30 Squarefree numbers
print(Squarefree(30))


kisungyou/Zseq documentation built on Sept. 13, 2022, 5:12 a.m.