6 is called an evil number in mathematics because its binary representation, 110, contains an even number of 1s—specifically two. This label comes from a technical classification, not any association with superstition or religion.
What makes a number evil?
In mathematics, an evil number is any non-negative integer whose binary form contains an even number of 1s. The term is a playful label with no negative meaning. Its opposite is an odious number, which has an odd number of 1s in binary.
For example, the number 7 is odious because its binary form is 111, which has three 1s. In contrast, 6 is evil because 110 has two 1s, and two is even.
Binary representation of 6
Converting 6 to binary gives 110. Counting the 1s, we find two—making it even. This simple count determines whether a number is evil or odious.
The sequence of evil numbers starts: 0, 3, 5, 6, 9, 10, 12. Each of these has an even number of 1s in binary. This classification is used in areas like combinatorics and digital logic.
Connection to the Thue-Morse sequence
The Thue-Morse sequence is an infinite string of 0s and 1s generated by counting the parity of 1s in the binary form of each number. If a number has an even number of 1s, it gets a 0; if odd, a 1.
Since 6 has two 1s, it gets a 0 in the sequence, confirming its status as evil. This sequence appears in error-correcting codes and fractal patterns, showing the practical side of this classification.
6 is also a perfect number
While 6 is evil in binary terms, it is also one of the most admired numbers in classical mathematics. It is the first perfect number, meaning it equals the sum of its proper divisors: 1 + 2 + 3 = 6.
Ancient Greek mathematicians celebrated this property. The next perfect number is 28. This dual identity, evil in binary, perfect in divisors, shows how numbers can belong to multiple categories at once.
Common misconceptions
Many people confuse the mathematical term 'evil' with religious symbolism, especially because of 666 in the Book of Revelation. But the two ideas are unrelated. The mathematical definition is purely about binary digits.
Similarly, some think repeating 6 three times (666) intensifies its 'evil' nature. In math, however, 666 is just another number. Its binary form has eleven 1s, an odd count, making 666 odious, not evil.
Evil vs odious: a balanced system
The set of evil and odious numbers are evenly distributed across the integers. For any block of numbers from 0 to 2^n - 1, the sum of powers and other properties are balanced between the two groups.
This symmetry shows that neither category is inherently 'better' or 'worse', they are simply labels for a binary property. The terms were coined for convenience and have stuck in mathematical literature.