Powerful | R Documentation |
Under OEIS A001694, a Powerful number is a positive integer such that for every prime p dividing the number, p^2 also divides the number. First 6 powerful numbers are 1, 4, 8, 9, 16, 25.
Powerful(n, gmp = TRUE)
n |
the number of first |
gmp |
a logical; |
a vector of length n
containing first entries from the sequence.
## generate first 20 Powerful numbers print(Powerful(20))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.