Evil number
In number theory, an evil number is a non-negative integer that has an even number of 1s in its binary expansion.[src] These numbers give the positions of the zero values in the Thue–Morse sequence, and for this reason they have also been called the Thue–Morse set.[src] Non-negative integers that are not evil are called odious numbers.[src]
In number theory, an evil number is a non-negative integer that has an even number of 1s in its binary expansion.[src] These numbers give the positions of the zero values in the Thue–Morse sequence, and for this reason they have also been called the Thue–Morse set.[src] Non-negative integers that are not evil are called odious numbers.[src] ==Examples== The first evil numbers are 0, 3, 5, 6, 9, 10, 12, 15, 17, 18, 20, 23, 24, 27, 29, 30, 33, 34, 36, 39, and so on.[src] ==Equal sums== The partition of the non-negative integers into the odious and evil numbers is the unique partition of these numbers into two sets that have equal multisets of pairwise sums.[src] As 19th-century mathematician Eugène Prouhet showed, the partition into evil and odious numbers of the numbers from 0 to 2^k-1 , for any k , provides a solution to the Prouhet–Tarry–Escott problem of finding sets of numbers whose sums of powers are equal up to the k th power.[src] ==In computer science== In computer science, an evil number is said to have even parity.[src] ==References==[src]
11 sentences · 11 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Evil number." encyclopegia.org, 2026, https://encyclopegia.org/wiki/evil-number. Accessed 01 December 2026.
Chicago
"Evil number." encyclopegia.org. Accessed December 1, 2026. https://encyclopegia.org/wiki/evil-number.
APA
encyclopegia.org. (2026). Evil number. Retrieved December 1, 2026, from https://encyclopegia.org/wiki/evil-number
Accessed December 1, 2026 · CC BY-SA 4.0 · citation page · JSON