## How to convert Octal to Quaternary

The octal numeral system, or oct for short, is the base-8 number system, and uses the digits 0 to 7. Octal is sometimes used in computing instead of hexadecimal, perhaps most often in modern times in conjunction with file permissions under Unix systems. It has the advantage of not requiring any extra symbols as digits. It is also used for digital displays.Quaternary is the base-4 numeral system. It uses the digits 0, 1, 2 and 3 to represent any real number. Four is the largest number within the subitizing range and one of two numbers that is both a square and a highly composite number, making quaternary a convenient choice for a base at this scale. Despite being twice as large, its radix economy is equal to that of binary.

**Formula**

Follow these steps to convert a octal number into quaternary form:

The simplest way is to convert the octal number into decimal, then the decimal into quaternary form.

- Write the powers of 8 (1, 8, 64, 512, 4096, and so on) beside the octal digits from bottom to top.
- Multiply each digit by it's power.
- Add up the answers. This is the decimal solution.
- Divide the decimal number by 4.
- Get the integer quotient for the next iteration (if the number will not divide equally by 4, then round down the result to the nearest whole number).
- Keep a note of the remainder, it should be between 0 and 3.
- Repeat the steps from step 4. until the quotient is equal to 0.
- Write out all the remainders, from bottom to top. This is the quaternary solution.

Digit | Power | Multiplication |
---|---|---|

3 | 512 | 1536 |

6 | 64 | 384 |

0 | 8 | 0 |

2 | 1 | 2 |

Division | Quotient | Remainder |
---|---|---|

1922 / 4 | 480 | 2 |

480 / 4 | 120 | 0 |

120 / 4 | 30 | 0 |

30 / 4 | 7 | 2 |

7 / 4 | 1 | 3 |

1 / 4 | 0 | 1 |