We're dividing 400838 by 89 
We want to divide 400838 by 89.

Let's proceed to step 1:
If we divide 4 by 89, we get 0 and a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 89

Going ahead to step 2:
40 divided by 89 is 0 with a remainder of 40.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 40 after subtracting 0 from 40.
Append the next digit (0) from the dividend to 40 and continue with: 400 / 89

Moving on to step 3:
89 goes into 400 4 times with a remainder of 44.
Use 4 as the next digit of our solution. 
Result so far: 4.0
Deduct 356 from 400 and we're left with 44.
Bring next digit (8) of the dividend behind the 44 and repeat the process: 448 / 89

Advancing to step 4:
The number 89 fits into 448 5 times, leaving a remainder of 3.
Record the quotient 5 as the next digit in the result. 
Result so far: 45.0
Subtracting 445 from 448 leaves us with 3.
Include the next digit (3) from the dividend after 3, then repeat: 33 / 89

On to step 5:
If we divide 33 by 89, we get 0 and a remainder of 33.
The next digit of our result is 0. 
Result so far: 450.0
If we subtract 0 from 33, we get 33.
Bring next digit (8) of the dividend behind the 33 and repeat the process: 338 / 89

On to step 6:
89 can be fit into 338 3 times, resulting in a remainder of 71.
Use 3 as the next digit of our solution. 
Result so far: 4503.0
If we take 267 away from 338, we end up with 71.
Since there are no more digits in the dividend, we add a zero to the remainder making it 710, and continue the process.

Moving on to step 7:
When dividing 710 by 89, we get 7 with a remainder of 87.
Write down 7 as next digit of the result. 
Result so far: 4503.7
Subtracting 623 from 710 leaves us with 87.
Since there are no more digits in the dividend, we add a zero to the remainder making it 870, and continue the process.

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

Advancing to step 9:
690 divided by 89 is 7 with a remainder of 67.
Record the quotient 7 as the next digit in the result. 
Result so far: 4503.797
If we subtract 623 from 690, we get 67.
Since there are no more digits in the dividend, we add a zero to the remainder making it 670, and continue the process.

Going ahead to step 10:
89 goes into 670 7 times with a remainder of 47.
Write down 7 as next digit of the result. 
Result so far: 4503.7977
Subtracting 623 from 670 leaves us with 47.
Since there are no more digits in the dividend, we add a zero to the remainder making it 470, and continue the process.

The final outcome is 4503.7977, with a leftover of 0.00047.