Decimal to Octal Conversion

Dividing the given number repeatedly by 8 until it becomes 0 can do this conversion from decimal system to octal.  The example given below explains it:

Example

Convert decimal number 247 into octal. This process is shown as follows:

divide 247 by 8 remainder 7 (Quotient 30)

divide 30 by 8 remainder 6 (Quotient 3)

divide 3 by 8 remainder 3 (Quotient 0)

hence (247)10 = (367)8