We divide 501061 by 45
Let's see how many times 45 fits into 501061.

On to step 1:
The number 45 fits into 5 0 times, leaving a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Include the next digit (0) from the dividend after 5, then repeat: 50 / 45

Advancing to step 2:
The number 45 fits into 50 1 times, leaving a remainder of 5.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
If we take 45 away from 50, we end up with 5.
Take the next digit (1) from the dividend and append it to 5, then repeat: 51 / 45

Step 3:
45 goes into 51 1 times with a remainder of 6.
Use 1 as the next digit of our solution. 
Result so far: 11.0
If we subtract 45 from 51, we get 6.
Bring next digit (0) of the dividend behind the 6 and repeat the process: 60 / 45

Going ahead to step 4:
60 divided by 45 is 1 with a remainder of 15.
The number 1 becomes the next digit in our result. 
Result so far: 111.0
Subtract 45 from 60 to get 15.
Fetch the next digit (6) from the dividend, attach it to 15 and continue: 156 / 45

Going ahead to step 5:
The number 45 fits into 156 3 times, leaving a remainder of 21.
Put 3 as the next digit of the answer. 
Result so far: 1113.0
Subtracting 135 from 156 leaves us with 21.
Bring next digit (1) of the dividend behind the 21 and repeat the process: 211 / 45

Going ahead to step 6:
211 divided by 45 is 4 with a remainder of 31.
Put 4 as the next digit of the answer. 
Result so far: 11134.0
Subtracting 180 from 211 leaves us with 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

Step 7:
310 divided by 45 is 6 with a remainder of 40.
Record the quotient 6 as the next digit in the result. 
Result so far: 11134.6
Subtract 270 from 310 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.

Moving on to step 8:
When dividing 400 by 45, we get 8 with a remainder of 40.
The next digit of our result is 8. 
Result so far: 11134.68
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 number 8 becomes the next digit in our result. 
Result so far: 11134.688
The remainder is 40 after subtracting 360 from 400.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

The final result is 11134.688 with a remainder of 0.004.