All numbers are numbers for the computer. "octal" and "binary" are simply ways to show a number for the human.
Loop repeats some operations. Loop condition states how many repeats will occur. You did not show any loop. Perhaps you should write one first? But then you would know what the loop does ...
One octal digit corresponds to three binary digits:
0 000
1 001
2 010
3 011
4 100
5 101
6 110
7 111
A conversion of octal value could repeat the conversion of one octal digit into binary digits for each digit in the ortal value.