31 in binary
31 in binary is 11111. In hexadecimal it is 1F and in octal 37.
31 in binary
Pick any whole number from 1 to 10,000.
How to work it out
- 1
Divide 31 by 2 again and again, writing down the remainder each time, until you reach 0.
- 2
Read the remainders from the bottom up: 11111.
- 3
Check by adding powers of 2: 16 + 8 + 4 + 2 + 1 = 31.
LaTeX source of the formulas on this page
\[ 31_{10} = 11111_{2} \]Dividing 31 by 2
| Number | Division | Remainder |
|---|---|---|
| 31 | 31 ÷ 2 = 15 | 1 |
| 15 | 15 ÷ 2 = 7 | 1 |
| 7 | 7 ÷ 2 = 3 | 1 |
| 3 | 3 ÷ 2 = 1 | 1 |
| 1 | 1 ÷ 2 = 0 | 1 |
Questions
What is 31 in binary?
11111.
What is 31 in hexadecimal?
1F.
What is 31 in octal?
37.
How many bits does 31 need?
5 bits.