31 in Binary
31 in binary is 11111. Unlike the decimal number system where we use the digits 0 to 9 to represent a number, in a binary system, we use only 2 digits that are 0 and 1 (bits). We have used 5 bits to represent 31 in binary. In this article, let us learn how to convert the decimal number 31 to binary.
How to Convert 31 in Binary?
Step 1: Divide 31 by 2. Use the integer quotient obtained in this step as the dividend for the next step. Repeat the process until the quotient becomes 0.
Dividend | Remainder |
---|---|
31/2 = 15 | 1 |
15/2 = 7 | 1 |
7/2 = 3 | 1 |
3/2 = 1 | 1 |
1/2 = 0 | 1 |
Step 2: Write the remainder from bottom to top i.e. in the reverse chronological order. This will give the binary equivalent of 31.
Therefore, the binary equivalent of decimal number 31 is 11111.
☛ Decimal to Binary Calculator
Let us have a look at the value of the decimal number 31 in the different number systems.
- 31 in Binary: 31₁₀ = 11111₂
- 31 in Octal: 31₁₀ = 37₈
- 31 in Hexadecimal: 31₁₀ = 1F₁₆
- 11111₂ in Decimal: 31₁₀
Problem Statements:
What is 31 in Binary? - (Base 2) | (11111)₂ |
What is 31 in Hexadecimal? - (Base 16) | (1F)₁₆ |
What is 31 in Octal? - (Base 8) | (37)₈ |
Is 31 a Perfect Square? | No |
Is 31 a Perfect Cube? | No |
Square Root of 31 | 5.567764 |
Is 31 a Prime Number? | Yes |
Cube Root of 31 | 3.141381 |
Is 31 a Composite Number? | No |
FAQs on 31 in Binary
What is 31 in Binary?
31 in binary is 11111. To find decimal to binary equivalent, divide 31 successively by 2 until the quotient becomes 0. The binary equivalent can be obtained by writing the remainder in each division step from the bottom to the top.
How to Convert 31 to Binary Equivalent?
We can divide 31 by 2 and continue the division till we get 0. Note down the remainder in each step.
- 31 mod 2 = 1 - LSB (Least Significant Bit)
- 15 mod 2 = 1
- 7 mod 2 = 1
- 3 mod 2 = 1
- 1 mod 2 = 1 - MSB (Most Significant Bit)
Write the remainders from MSB to LSB. Therefore, the decimal number 31 in binary can be represented as 11111.
Find the Value of 2 × 31 in Binary Form.
We know that 31 in binary is 11111 and 2 is 10. Using the binary multiplication rules (0 × 0 = 0; 0 × 1 = 0 ; 1 × 0 = 0 and 1 × 1 = 1), we can multiply 11111 × 10 = 111110 which is 62 in the decimal number system. [31 × 2 = 62]
How Many Bits Does 31 in Binary Have?
We can count the number of zeros and ones to see how many bits are used to represent 31 in binary i.e. 11111. Therefore, we have used 5 bits to represent 31 in binary.
What is the Binary Equivalent of 31 + 94?
31 in binary number system is 11111 and 94 is 1011110. We can add the binary equivalent of 31 and 94 using binary addition rules [0 + 0 = 0, 0 + 1 = 1, 1 + 1 = 10 note that 1 is a carry over to the next bit]. Therefore, (11111)₂ + (1011110)₂ = (1111101)₂ which is nothing but 125.
☛ Also Check:
- 151 in Binary - 10010111
- 152 in Binary - 10011000
- 156 in Binary - 10011100
- 180 in Binary - 10110100
- 173 in Binary - 10101101
- 35 in Binary - 100011
- 158 in Binary - 10011110
visual curriculum