501040 ÷ 45 
We want to divide 501040 by 45.

Advancing to step 1:
45 goes into 5 0 times with a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Grab the next digit (0) from the dividend, add it to 5, then carry on: 50 / 45

Let's proceed to step 2:
When dividing 50 by 45, we get 1 with a remainder of 5.
The next digit of our result is 1. 
Result so far: 1.0
Subtract 45 from 50 to get 5.
Fetch the next digit (1) from the dividend, attach it to 5 and continue: 51 / 45

Going ahead to step 3:
51 divided by 45 is 1 with a remainder of 6.
Write down 1 as next digit of the result. 
Result so far: 11.0
The remainder is 6 after subtracting 45 from 51.
Take the next digit (0) from the dividend and append it to 6, then repeat: 60 / 45

Let's proceed to step 4:
45 goes into 60 1 times with a remainder of 15.
Use 1 as the next digit of our solution. 
Result so far: 111.0
If we take 45 away from 60, we end up with 15.
Grab the next digit (4) from the dividend, add it to 15, then carry on: 154 / 45

Advancing to step 5:
The number 45 fits into 154 3 times, leaving a remainder of 19.
Put 3 as the next digit of the answer. 
Result so far: 1113.0
If we take 135 away from 154, we end up with 19.
Grab the next digit (0) from the dividend, add it to 19, then carry on: 190 / 45

Moving on to step 6:
190 divided by 45 is 4 with a remainder of 10.
Write down 4 as next digit of the result. 
Result so far: 11134.0
Deduct 180 from 190 and we're left with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Moving on to step 7:
100 divided by 45 is 2 with a remainder of 10.
The number 2 becomes the next digit in our result. 
Result so far: 11134.2
The remainder is 10 after subtracting 90 from 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Advancing to step 8:
If we divide 100 by 45, we get 2 and a remainder of 10.
The number 2 becomes the next digit in our result. 
Result so far: 11134.22
The remainder is 10 after subtracting 90 from 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

The final result is 11134.22 with a remainder of 0.01.