21 Ternary to Quaternary
21 ternary = 13 quaternary
21 written in quaternary is 13, the number 7 in everyday decimal.
21 ternary = 13 quaternary
How to convert 21 to quaternary
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 quaternary
Divide by 4 repeatedly and keep the remainders. Reading the remainders from the last one to the first gives the quaternary digits:
| Division | Quotient | Remainder (digit) |
|---|---|---|
| 7 ÷ 4 | 1 | 3 |
| 1 ÷ 4 | 0 | 1 |
Result: 7 = 13 in quaternary.
21 (ternary) in other systems
| Binary | 111 |
| Decimal | 7 |
| Roman numerals | VII |
| Hexadecimal | 7 |
| Octal | 7 |
| Duodecimal | 7 |
| Base 36 | 7 |
| Vigesimal | 7 |
| Quinary | 12 |
| Senary | 11 |
Nearby ternary to quaternary conversions
| 2 to quaternary | 2 |
| 10 to quaternary | 3 |
| 11 to quaternary | 10 |
| 12 to quaternary | 11 |
| 20 to quaternary | 12 |
| 22 to quaternary | 20 |
| 100 to quaternary | 21 |
| 101 to quaternary | 22 |
| 102 to quaternary | 23 |
| 110 to quaternary | 30 |
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 quaternary?
21 in ternary is 13 in quaternary (the number 7 in decimal).