We look at the division of 501945 by 45 
We're looking to find how many times 45 goes into 501945.

Going ahead to step 1:
5 divided by 45 is 0 with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Grab the next digit (0) from the dividend, add it to 5, then carry on: 50 / 45

Moving on to step 2:
The number 45 fits into 50 1 times, leaving a remainder of 5.
Put 1 as the next digit of the answer. 
Result so far: 1.0
If we subtract 45 from 50, we get 5.
Include the next digit (1) from the dividend after 5, then repeat: 51 / 45

On to step 3:
If we divide 51 by 45, we get 1 and a remainder of 6.
The next digit of our result is 1. 
Result so far: 11.0
The remainder is 6 after subtracting 45 from 51.
Take the next digit (9) from the dividend and append it to 6, then repeat: 69 / 45

Moving on to step 4:
The number 45 fits into 69 1 times, leaving a remainder of 24.
The next digit of our result is 1. 
Result so far: 111.0
If we subtract 45 from 69, we get 24.
Bring next digit (4) of the dividend behind the 24 and repeat the process: 244 / 45

Moving on to step 5:
45 goes into 244 5 times with a remainder of 19.
The number 5 becomes the next digit in our result. 
Result so far: 1115.0
Subtract 225 from 244 to get 19.
Include the next digit (5) from the dividend after 19, then repeat: 195 / 45

Step 6:
When dividing 195 by 45, we get 4 with a remainder of 15.
Put 4 as the next digit of the answer. 
Result so far: 11154.0
Subtracting 180 from 195 leaves us with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

On to step 7:
150 divided by 45 is 3 with a remainder of 15.
The number 3 becomes the next digit in our result. 
Result so far: 11154.3
Subtract 135 from 150 to get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

On to step 8:
If we divide 150 by 45, we get 3 and a remainder of 15.
The number 3 becomes the next digit in our result. 
Result so far: 11154.33
Subtracting 135 from 150 leaves us with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

In conclusion, the division gives 11154.33 with a balance of 0.015.