JeffM said, initially, "There is an easy way and a hard way to do this problem". Changing from base 2 to base 10 and then changing that to base 8 is the "hard way". And, there is an easier way to go from base 10 to base 8 than directly using the definition. For example, if I divide, say, 733 by 8 I find that it divides 91 times with remainder 5: 733= 8(91)+ 5. Now divide 91 by 8. The quotient is 11 with remainder 3. 91= 8(11)+ 3 so \(\displaystyle 733= 8(8(11)+ 3)+ 5= 8^2(11)+ 8(3)+ 5\). Now divide 11 by 8. The quotient is 1 with remainder 3. 11= 8(1)+ 3 so \(\displaystyle 733= 8^2(8(1)+ 3)+ 8(3)+ 5= 8^3(1)+ 8^2(3)+ 8(3)+ 5\). That is, since the "digits" in base 8 are the coefficients of the powers of 8, 733 in base 8 is \(\displaystyle 1335_8\). That is, the digits are just the remainders in those divisions.
We can do the same thing with base 2: 2 divides into 733 366 times with remainder 1, 2 divides into 366 183 times with remainder 0, 2 divides into 183 91 times with remainder 1, 1 divides into 91 45 times with remainder 1, 2 divides into 45 22 times with remainder 1, 2 divides into 22 11 times with remainder 0, 2 divides into 11 5 times with remainder 1, 2 divides into 5 2 times with remainder 1, 2 divides into 2 1 time with remainder 0, and, finally, 2 divides into 1 0 times with remainder 1. Reversing the order of those, 733 in base 2, 1011011101.
But even simpler is the fact that 8 is a power of 2: \(\displaystyle 8= 2^3\). 1, 10, 11, and 100, in base 2, are, of course, 1, 2, 3, and 4 in base 10. Continuing 101, 110, 111, and 1000 are 5, 6, 7, and 8. Notice that when we get to powers of two we have a new digit just as happens, in base 10, when we have powers of 10: \(\displaystyle 10= 10^1\), \(\displaystyle 100= 10^2\), \(\displaystyle 1000= 10^3\), etc. So, separating those binary digits ("bits") into groups of 3, we have 001 011 011 101. Separately, those would be 1 3 3 5. But since they are all less than 8, they are also digits in base 8. And, using the fact that \(\displaystyle 8= 2^3\), we can include the powers of 8 as \(\displaystyle (1\times 8^3)+ (3\times 8^2)+ (3\times 8)+ 5\). That is, 1011011101, in base 2, is the same as 1335 in base 8.