21 Ternary to Hexadecimal
21 ternary = 7 hexadecimal
21 written in hexadecimal is 7, the number 7 in everyday decimal.
21 ternary = 7 hexadecimal
How to convert 21 to hexadecimal
Step 1: Ternary to decimal
Multiply each digit by 3 to the power of its position (0 on the right), then add:
| Digit | Place value | Digit × place |
|---|---|---|
2 | 31 = 3 | 6 |
1 | 30 = 1 | 1 |
6 + 1 = 7
Step 2: Decimal to hexadecimal
Divide by 16 repeatedly and keep the remainders. Reading the remainders from the last one to the first gives the hexadecimal digits:
| Division | Quotient | Remainder (digit) |
|---|---|---|
| 7 ÷ 16 | 0 | 7 |
Result: 7 = 7 in hexadecimal.
21 (ternary) in other systems
| Binary | 111 |
| Decimal | 7 |
| Roman numerals | VII |
| Octal | 7 |
| Duodecimal | 7 |
| Base 36 | 7 |
| Vigesimal | 7 |
| Quaternary | 13 |
| Quinary | 12 |
| Senary | 11 |
Nearby ternary to hexadecimal conversions
| 2 to hexadecimal | 2 |
| 10 to hexadecimal | 3 |
| 11 to hexadecimal | 4 |
| 12 to hexadecimal | 5 |
| 20 to hexadecimal | 6 |
| 22 to hexadecimal | 8 |
| 100 to hexadecimal | 9 |
| 101 to hexadecimal | A |
| 102 to hexadecimal | B |
| 110 to hexadecimal | C |
About the number 7
- 7 is an odd number.
- 7 is a prime number.
- Written in binary it needs 3 bits, so it fits in one byte.
Reverse conversion
Frequently asked questions
What is 21 in hexadecimal?
21 in ternary is 7 in hexadecimal (the number 7 in decimal).