We're dividing 366038 by 8 
We want to divide 366038 by 8.

On to step 1:
If we divide 3 by 8, we get 0 and a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Take the next digit (6) from the dividend and append it to 3, then repeat: 36 / 8

Advancing to step 2:
8 goes into 36 4 times with a remainder of 4.
Write down 4 as next digit of the result. 
Result so far: 4.0
The remainder is 4 after subtracting 32 from 36.
Fetch the next digit (6) from the dividend, attach it to 4 and continue: 46 / 8

On to step 3:
The number 8 fits into 46 5 times, leaving a remainder of 6.
The number 5 becomes the next digit in our result. 
Result so far: 45.0
If we take 40 away from 46, we end up with 6.
Bring next digit (0) of the dividend behind the 6 and repeat the process: 60 / 8

Let's proceed to step 4:
60 divided by 8 is 7 with a remainder of 4.
The number 7 becomes the next digit in our result. 
Result so far: 457.0
The remainder is 4 after subtracting 56 from 60.
Fetch the next digit (3) from the dividend, attach it to 4 and continue: 43 / 8

Step 5:
8 can be fit into 43 5 times, resulting in a remainder of 3.
Use 5 as the next digit of our solution. 
Result so far: 4575.0
If we take 40 away from 43, we end up with 3.
Append the next digit (8) from the dividend to 3 and continue with: 38 / 8

Step 6:
When dividing 38 by 8, we get 4 with a remainder of 6.
Put 4 as the next digit of the answer. 
Result so far: 45754.0
Deduct 32 from 38 and we're left with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Going ahead to step 7:
The number 8 fits into 60 7 times, leaving a remainder of 4.
Record the quotient 7 as the next digit in the result. 
Result so far: 45754.7
The remainder is 4 after subtracting 56 from 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Advancing to step 8:
40 divided by 8 is 5 with a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 45754.75
Subtract 40 from 40 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Going ahead to step 9:
0 divided by 8 is 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 45754.75
If we subtract 0 from 0, we get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Going ahead to step 10:
If we divide 0 by 8, we get 0 and a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 45754.75
Subtract 0 from 0 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

After the division, we end up with 45754.75 and a remainder of 0.0.