powered by
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)
a vector of length n containing first entries from the sequence.
n
the number of first n entries from the sequence.
a logical; TRUE to use large number representation, FALSE otherwise.
TRUE
FALSE
Odious
## generate first 20 Evil numbers print(Evil(20))
Run the code above in your browser using DataLab