The Intriguing Case of the Number 39: An ‘Evil’ Identity

At first glance, the number 39 might not seem particularly special. It’s not a prime number, nor is it a perfect square. Yet, in certain circles, particularly within the fascinating world of mathematics, 39 is known by a rather startling name: it is an evil number. This might immediately conjure images of bad luck or dark omens, but the truth is far more logical and, frankly, quite clever. The designation of 39 as an “evil number” has absolutely nothing to do with superstition, curses, or morality.

Conclusion at the Forefront: The number 39 is called an “evil number” based on a specific property of its binary (base-2) representation. A number is classified as “evil” if it contains an even number of 1s in its binary form. The name itself is a mathematical pun on the word “even,” showcasing the often-playful nature of number theory.

This article will delve deep into the mathematical definition of an evil number, walk you through the precise steps that confirm why 39 fits this description, and explore its counterpart, the “odious number.” We will also uncover the origin of this peculiar terminology and contrast its mathematical meaning with a surprising and entirely unrelated cultural stigma attached to the number 39 in a specific part of the world. So, let’s demystify this mathematical label and understand the true nature of the number 39.

The Mathematical Heart of the Matter: Defining an ‘Evil Number’

To understand why 39 is an evil number, we first need to step away from our familiar decimal (base-10) system and into the world of binary (base-2), which is the fundamental language of computers. While we use ten digits (0-9) to represent all numbers, the binary system uses only two: 0 and 1.

The core concept behind an evil number lies in something called its population count or Hamming weight. This is simply a technical term for counting the number of 1s in a number’s binary representation. The rule is quite straightforward:

  • An integer is defined as an evil number if its Hamming weight (the count of 1s in its binary form) is an even number.
  • Conversely, an integer is defined as an odious number if its Hamming weight is an odd number.

So, the label “evil” isn’t a judgment; it’s a classification based on a simple even-or-odd test applied to a number’s binary DNA. The term itself is a mnemonic pun: “evil” sounds like “even.”

A Practical Guide: Proving 39 is an Evil Number

Now that we have the definition, let’s apply it directly to the number 39. To prove its “evil” status, we just need to follow a clear, logical process. It’s a wonderful exercise that showcases how different number systems can reveal unique properties.

Step-by-Step Breakdown:

  1. Start with the Number: Our number of interest is, of course, 39.
  2. Convert from Decimal to Binary: This is the most crucial step. We need to translate 39 from its base-10 form into its base-2 equivalent. The most common method for this is repeated division by 2, recording the remainder at each step.

    • 39 ÷ 2 = 19 with a remainder of 1
    • 19 ÷ 2 = 9 with a remainder of 1
    • 9 ÷ 2 = 4 with a remainder of 1
    • 4 ÷ 2 = 2 with a remainder of 0
    • 2 ÷ 2 = 1 with a remainder of 0
    • 1 ÷ 2 = 0 with a remainder of 1

    To get the final binary number, we read the remainders from the bottom up. Therefore, the binary representation of 39 is 100111.

  3. Count the ‘1’s (Find the Hamming Weight): Next, we simply count the occurrences of the digit ‘1’ in the binary string we just found.

    In 100111, we can see the digit ‘1’ appears four times.

  4. Check if the Count is Even or Odd: The count of 1s is 4. Is the number 4 even or odd? It is, of course, an even number.
  5. Draw the Conclusion: Because the number of 1s in the binary representation of 39 is even (a count of 4), the number 39 perfectly fits the mathematical definition of an evil number. It’s as simple as that!

The Other Side of the Coin: What are Odious Numbers?

Understanding a concept is often easier when you can compare it to its opposite. In the case of evil numbers, their counterparts are odious numbers. As you might guess, this name is also a pun, this time on “odd.”

An odious number is any integer that has an odd number of 1s in its binary representation. Let’s take a look at the number 38, which is right next to 39, to see the difference.

  • Number: 38
  • Binary Conversion: 38 in binary is 100110.
  • Count the 1s: In 100110, there are three 1s.
  • Even or Odd?: The number 3 is an odd number.
  • Conclusion: Therefore, 38 is classified as an odious number.

This simple binary opposition—evil for even, odious for odd—forms a complete classification system known as the Thue-Morse sequence, where every non-negative integer is either evil or odious. There are no other possibilities.

Evil and Odious Numbers in Practice: A Comparative Look

To further solidify the concept, let’s look at a few more examples. It helps to see the pattern emerge across a range of numbers. The first few evil numbers are 0, 3, 5, 6, 9, 10, 12, and 15. The first few odious numbers are 1, 2, 4, 7, 8, 11, 13, and 14.

Here is a table that clearly illustrates the classification for a selection of numbers, including our primary subject, 39.

Decimal Number Binary Representation Number of ‘1’s (Hamming Weight) Classification
3 11 2 Evil (Even)
4 100 1 Odious (Odd)
13 1101 3 Odious (Odd)
38 100110 3 Odious (Odd)
39 100111 4 Evil (Even)
40 101000 2 Evil (Even)

Where Did the ‘Evil’ Name Come From?

The names “evil” and “odious” sound more like they belong in a fairy tale than a mathematics textbook. Their origin is a testament to the fact that even the most serious mathematicians can have a sense of humor. These terms are widely believed to have been popularized, if not coined, by the brilliant and famously playful mathematician John Horton Conway and his colleagues at the University of Cambridge.

Conway, renowned for inventing the “Game of Life,” had a knack for giving whimsical names to profound mathematical concepts. The choice of “evil” and “odious” was a deliberate and clever play on words. It serves as a mnemonic device—a memory aid—that is far more memorable than a dry, technical term like “even-parity integer.” By associating “even” with “evil” and “odd” with “odious,” the definitions become surprisingly easy to recall.

Beyond the Math: Is 39 Unlucky in Any Culture?

While we have firmly established that the mathematical label “evil” is harmless, a fascinating coincidence arises when we look at cultural beliefs. In most of the world, the number 39 carries no particular significance, positive or negative. It doesn’t have the superstitious weight of 13 in the West or the phonetic dread of 4 (which sounds like “death”) in some East Asian cultures.

However, there is one place where the number 39 is genuinely considered “evil” or cursed: Afghanistan.

The ‘Curse of 39’ in Afghanistan

In Afghan culture, the number 39 has become strongly associated with prostitution and corruption. The origin of this stigma is often traced back to a well-known pimp from the city of Herat, whose car license plate and apartment number allegedly contained the number 39. The association became so potent that “39” evolved into a derogatory slang term for a pimp.

This cultural belief has tangible consequences for everyday life in Afghanistan:

  • People actively avoid license plates, phone numbers, and addresses containing the number 39.
  • A car with a “39” plate can be worth thousands of dollars less than an identical model without it.
  • Individuals celebrating their 39th birthday might joke about being “one year away from 40” to avoid saying the number.

It is crucial to understand that this is a remarkable coincidence. The Afghan cultural aversion to 39 and the mathematical classification of 39 as an “evil number” are completely unrelated phenomena. One is born from modern urban legend and social stigma, while the other is born from the abstract principles of number theory and a playful pun.

Why Does This Classification Matter? Applications in Science and Computing

One might wonder if classifying numbers as evil or odious is just a mathematical game. While the names are playful, the underlying concept—known as parity—is incredibly important in computer science, cryptography, and information theory.

Parity refers to the property of an integer being even or odd. The process of counting 1s in a binary string is a form of parity check. Here’s why that matters:

  1. Error Detection in Data Transmission: This is the most classic application. When data is sent from one computer to another, it can be corrupted by electrical interference, flipping a 0 to a 1 or vice versa. To detect such errors, a “parity bit” is often added to the end of a binary string. The sender ensures that the total number of 1s (including the parity bit) is always even (or always odd, depending on the system). If the receiver gets a string with the wrong parity, it knows the data has been corrupted and can request a re-send. This is a simple yet powerful form of quality control.
  2. Cryptography and Hash Functions: Many cryptographic algorithms rely on complex manipulations of binary data. Properties like Hamming weight can be used in designing functions that are difficult to reverse, which is a cornerstone of modern security.
  3. Game Theory and Combinatorics: The sequence of evil and odious numbers (0 for evil, 1 for odious, for instance) creates the Thue-Morse sequence. This sequence (0110100110010110…) has fascinating properties, such as being “cubefree” (it never contains three identical consecutive blocks of digits). It appears in diverse fields, from studying patterns in chess to designing fair “I-cut-you-choose” division schemes.

Conclusion: The True Nature of the ‘Evil’ Number 39

So, why is 39 an evil number? The answer is clear, logical, and stripped of all superstition. The number 39 is “evil” because its binary representation, 100111, contains four 1s. Since four is an even number, 39 falls into the mathematical category of evil numbers.

The name itself is a delightful piece of mathematical wordplay, a pun on “even” that makes the concept sticky and memorable. It reminds us that mathematics is not always a domain of dry, rigid formulas; it is also a landscape of human creativity, elegance, and even humor. The curious case of 39 is a perfect example of this, where a simple binary property gives a number a fearsome-sounding name.

The fact that this number also carries a genuinely negative connotation in Afghanistan is a striking coincidence—a testament to how meaning can be attached to numbers in vastly different ways, through both universal mathematical logic and specific cultural evolution. Ultimately, the evil of 39 is not a curse to be feared, but a characteristic to be understood, revealing the hidden patterns that lie beneath the surface of the numbers we use every day.

By admin