Let's divide 400389 by 8
We want to divide 400389 by 8.

Moving on to step 1:
If we divide 4 by 8, we get 0 and a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 8

Let's proceed to step 2:
The number 8 fits into 40 5 times, leaving a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 5.0
Subtracting 40 from 40 leaves us with 0.
Take the next digit (0) from the dividend and append it to 0, then repeat: 0 / 8

Going ahead to step 3:
The number 8 fits into 0 0 times, leaving a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 50.0
If we subtract 0 from 0, we get 0.
Take the next digit (3) from the dividend and append it to 0, then repeat: 3 / 8

Let's proceed to step 4:
3 divided by 8 is 0 with a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 500.0
Subtract 0 from 3 to get 3.
Include the next digit (8) from the dividend after 3, then repeat: 38 / 8

Step 5:
When dividing 38 by 8, we get 4 with a remainder of 6.
Record the quotient 4 as the next digit in the result. 
Result so far: 5004.0
Subtract 32 from 38 to get 6.
Fetch the next digit (9) from the dividend, attach it to 6 and continue: 69 / 8

Advancing to step 6:
8 can be fit into 69 8 times, resulting in a remainder of 5.
The next digit of our result is 8. 
Result so far: 50048.0
If we subtract 64 from 69, we get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Let's proceed to step 7:
If we divide 50 by 8, we get 6 and a remainder of 2.
Use 6 as the next digit of our solution. 
Result so far: 50048.6
The remainder is 2 after subtracting 48 from 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Going ahead to step 8:
8 can be fit into 20 2 times, resulting in a remainder of 4.
Write down 2 as next digit of the result. 
Result so far: 50048.62
Deduct 16 from 20 and we're left with 4.
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 9:
8 can be fit into 40 5 times, resulting in a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 50048.625
Deduct 40 from 40 and we're left with 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:
The number 8 fits into 0 0 times, leaving a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 50048.625
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.

Step 11:
If we divide 0 by 8, we get 0 and a remainder of 0.
The next digit of our result is 0. 
Result so far: 50048.625
Deduct 0 from 0 and we're left with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The final outcome is 50048.625, with a leftover of 0.0.