The digits of the base 8 representation can be found by checking the remainder upon dividing the original number and the integer parts of its successive quotients by increasing powers of 8.
First digit (from the right):

Second digit:

Third digit:

Fourth digit:

Since there's no remainder here, move on to the next power of 8:
Fifth digit:

Again, no remainder, so move on to the next power.
Sixth digit:

Now the base 8 representation will have digits matching the remainders above.
