Evil | R Documentation |
Under OEIS A001969, an Evil number has an even number of 1's in its binary expansion. First 6 Evil numbers are 0, 3, 5, 6, 9, 10.
Evil(n, gmp = TRUE)
n |
the number of first |
gmp |
a logical; |
a vector of length n
containing first entries from the sequence.
Odious
## generate first 20 Evil numbers print(Evil(20))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.