We're dividing 400747 by 45 
Let's see how many times 45 fits into 400747.

Step 1:
4 divided by 45 is 0 with a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Include the next digit (0) from the dividend after 4, then repeat: 40 / 45

Moving on to step 2:
40 divided by 45 is 0 with a remainder of 40.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 40 to get 40.
Take the next digit (0) from the dividend and append it to 40, then repeat: 400 / 45

Let's proceed to step 3:
45 can be fit into 400 8 times, resulting in a remainder of 40.
Use 8 as the next digit of our solution. 
Result so far: 8.0
Subtracting 360 from 400 leaves us with 40.
Bring next digit (7) of the dividend behind the 40 and repeat the process: 407 / 45

On to step 4:
When dividing 407 by 45, we get 9 with a remainder of 2.
Write down 9 as next digit of the result. 
Result so far: 89.0
The remainder is 2 after subtracting 405 from 407.
Bring next digit (4) of the dividend behind the 2 and repeat the process: 24 / 45

Let's proceed to step 5:
45 goes into 24 0 times with a remainder of 24.
The next digit of our result is 0. 
Result so far: 890.0
Deduct 0 from 24 and we're left with 24.
Bring next digit (7) of the dividend behind the 24 and repeat the process: 247 / 45

Going ahead to step 6:
247 divided by 45 is 5 with a remainder of 22.
The number 5 becomes the next digit in our result. 
Result so far: 8905.0
The remainder is 22 after subtracting 225 from 247.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Let's proceed to step 7:
220 divided by 45 is 4 with a remainder of 40.
Put 4 as the next digit of the answer. 
Result so far: 8905.4
Subtract 180 from 220 to get 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Advancing to step 8:
45 can be fit into 400 8 times, resulting in a remainder of 40.
Write down 8 as next digit of the result. 
Result so far: 8905.48
If we subtract 360 from 400, we get 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

On to step 9:
When dividing 400 by 45, we get 8 with a remainder of 40.
The next digit of our result is 8. 
Result so far: 8905.488
Subtract 360 from 400 to get 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

After the division, we end up with 8905.488 and a remainder of 0.004.