21 Hexadecimal to Ternary
21 hexadecimal = 1020 ternary
21 written in ternary is 1020, the number 33 in everyday decimal.
21 hexadecimal = 1020 ternary
How to convert 21 to ternary
Step 1: Hexadecimal to decimal
Multiply each digit by 16 to the power of its position (0 on the right), then add:
| Digit | Place value | Digit × place |
|---|---|---|
2 | 161 = 16 | 32 |
1 | 160 = 1 | 1 |
32 + 1 = 33
Step 2: Decimal to ternary
Divide by 3 repeatedly and keep the remainders. Reading the remainders from the last one to the first gives the ternary digits:
| Division | Quotient | Remainder (digit) |
|---|---|---|
| 33 ÷ 3 | 11 | 0 |
| 11 ÷ 3 | 3 | 2 |
| 3 ÷ 3 | 1 | 0 |
| 1 ÷ 3 | 0 | 1 |
Result: 33 = 1020 in ternary.
21 (hexadecimal) in other systems
| Binary | 100001 |
| Decimal | 33 |
| Roman numerals | XXXIII |
| Octal | 41 |
| Duodecimal | 29 |
| Base 36 | X |
| Vigesimal | 1D |
| Quaternary | 201 |
| Quinary | 113 |
| Senary | 53 |
Nearby hexadecimal to ternary conversions
| 1C to ternary | 1001 |
| 1D to ternary | 1002 |
| 1E to ternary | 1010 |
| 1F to ternary | 1011 |
| 20 to ternary | 1012 |
| 22 to ternary | 1021 |
| 23 to ternary | 1022 |
| 24 to ternary | 1100 |
| 25 to ternary | 1101 |
| 26 to ternary | 1102 |
About the number 33
- 33 is an odd number.
- 33 is not a prime number.
- Written in binary it needs 6 bits, so it fits in one byte.
Reverse conversion
Frequently asked questions
What is 21 in ternary?
21 in hexadecimal is 1020 in ternary (the number 33 in decimal).