For example, is evil since the sum of its binary digits is 4.
For 2$">, the number of evil and odious numbers of with binary digits is the same, and the two sets have also the same sum, i.e., .
The first evil numbers are 3, 5, 6, 9, 10, 12, 15, 17, 18, 20, 23, 24, 27, 29, 30, 33, 34, 36, 39, 40, 43, 45, 46, 48, 51, 53, 54, 57, 58, 60 more terms
The smallest 3 × 3 magic square whose entries are evil numbers is
18 | 45 | 9 |
15 | 24 | 33 |
39 | 3 | 30 |
Below, the spiral pattern of evil numbers up to 2500. See the page on prime numbers for an explanation and links to similar pictures.