Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Cipher Some Numbers | Binary Numeral System
Numeral Systems 101

Cipher Some NumbersCipher Some Numbers

You are one step closer to becoming a computer geek 🤓

You are going to stand out with such knowledge because working with different programs will be light work. For instance, you are going to have the possibility to correct a lot of mistakes program-wise because you are into all these processes. Probably, you came across built-in python functions, such as min, max. I guess you understand that to deal with them it is better to understand the way it is working. Therefore, the useful thing is to be aware of the "interior" of all actions due to the reason that it will be easy for you to recognize and correct mistakes. However, I don't want to bring any depth into it so let's just dive deeper into binary numbers.

  1. You need to divide the number by 2 and take down the remainder of the division
  2. Then you should calculate the received number and implement the first step to it.
  3. You can stop if division results in 0.
  4. Rewrite remainders in the reversed order.

The best way to get the idea of binary numbers is to convert them by yourself. The rule is pretty simple! We are going to try it with the number 14.

Binary numeral system

Task

Convert the decimal number 73 to a binary numeral system. You should follow the instructions and fill the gaps. The explanation why this number was chosen is waiting for you at the end of this chapter.

  1. Create an empty list for storing binary digits.
  2. Print the decimal_number.
  3. Define the loop that executes till the decimal_number is 0.
  4. Count the remainder of division decimal_number by 2.
  5. Append the remainder to the list of binary numbers.
  6. Decrease decimal_number using integer division by 2.
  7. Make the list of binary numbers reversed.
  8. Print the list of binary numbers.

Note

The fans of "Big Bang Theory" may be guessed why this number is special.
Yeah, it is Sheldon Cooper's favorite number. He explains that 73 is the 21st prime number, and its mirror,37, is the 12th prime number which is the mirror of 21, and 21 is the product of 7 and 3. Also, you've proved that last Sheldon's statement that in binary representation it is 1001001 that is a palindrome number.

Everything was clear?

Section 1. Chapter 5
toggle bottom row
course content

Course Content

Numeral Systems 101

Cipher Some NumbersCipher Some Numbers

You are one step closer to becoming a computer geek 🤓

You are going to stand out with such knowledge because working with different programs will be light work. For instance, you are going to have the possibility to correct a lot of mistakes program-wise because you are into all these processes. Probably, you came across built-in python functions, such as min, max. I guess you understand that to deal with them it is better to understand the way it is working. Therefore, the useful thing is to be aware of the "interior" of all actions due to the reason that it will be easy for you to recognize and correct mistakes. However, I don't want to bring any depth into it so let's just dive deeper into binary numbers.

  1. You need to divide the number by 2 and take down the remainder of the division
  2. Then you should calculate the received number and implement the first step to it.
  3. You can stop if division results in 0.
  4. Rewrite remainders in the reversed order.

The best way to get the idea of binary numbers is to convert them by yourself. The rule is pretty simple! We are going to try it with the number 14.

Binary numeral system

Task

Convert the decimal number 73 to a binary numeral system. You should follow the instructions and fill the gaps. The explanation why this number was chosen is waiting for you at the end of this chapter.

  1. Create an empty list for storing binary digits.
  2. Print the decimal_number.
  3. Define the loop that executes till the decimal_number is 0.
  4. Count the remainder of division decimal_number by 2.
  5. Append the remainder to the list of binary numbers.
  6. Decrease decimal_number using integer division by 2.
  7. Make the list of binary numbers reversed.
  8. Print the list of binary numbers.

Note

The fans of "Big Bang Theory" may be guessed why this number is special.
Yeah, it is Sheldon Cooper's favorite number. He explains that 73 is the 21st prime number, and its mirror,37, is the 12th prime number which is the mirror of 21, and 21 is the product of 7 and 3. Also, you've proved that last Sheldon's statement that in binary representation it is 1001001 that is a palindrome number.

Everything was clear?

Section 1. Chapter 5
toggle bottom row
some-alt