21 Ternary to Octal

21 ternary = 7 octal

21 written in octal is 7, the number 7 in everyday decimal.

21 ternary = 7 octal

How to convert 21 to octal

Step 1: Ternary to decimal

Multiply each digit by 3 to the power of its position (0 on the right), then add:

DigitPlace valueDigit × place
231 = 36
130 = 11

6 + 1 = 7

Step 2: Decimal to octal

Divide by 8 repeatedly and keep the remainders. Reading the remainders from the last one to the first gives the octal digits:

DivisionQuotientRemainder (digit)
7 ÷ 807

Result: 7 = 7 in octal.

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 octal?

21 in ternary is 7 in octal (the number 7 in decimal).