We're dividing 502501 by 40 
We're looking to find how many times 40 goes into 502501.

Going ahead to step 1:
When dividing 5 by 40, we get 0 with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Include the next digit (0) from the dividend after 5, then repeat: 50 / 40

Advancing to step 2:
When dividing 50 by 40, we get 1 with a remainder of 10.
The next digit of our result is 1. 
Result so far: 1.0
The remainder is 10 after subtracting 40 from 50.
Append the next digit (2) from the dividend to 10 and continue with: 102 / 40

On to step 3:
40 can be fit into 102 2 times, resulting in a remainder of 22.
Put 2 as the next digit of the answer. 
Result so far: 12.0
The remainder is 22 after subtracting 80 from 102.
Take the next digit (5) from the dividend and append it to 22, then repeat: 225 / 40

On to step 4:
40 goes into 225 5 times with a remainder of 25.
The next digit of our result is 5. 
Result so far: 125.0
The remainder is 25 after subtracting 200 from 225.
Fetch the next digit (0) from the dividend, attach it to 25 and continue: 250 / 40

Let's proceed to step 5:
When dividing 250 by 40, we get 6 with a remainder of 10.
The next digit of our result is 6. 
Result so far: 1256.0
If we take 240 away from 250, we end up with 10.
Grab the next digit (1) from the dividend, add it to 10, then carry on: 101 / 40

Going ahead to step 6:
The number 40 fits into 101 2 times, leaving a remainder of 21.
Record the quotient 2 as the next digit in the result. 
Result so far: 12562.0
The remainder is 21 after subtracting 80 from 101.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Going ahead to step 7:
If we divide 210 by 40, we get 5 and a remainder of 10.
Use 5 as the next digit of our solution. 
Result so far: 12562.5
If we take 200 away from 210, we end up 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.

Advancing to step 8:
40 goes into 100 2 times with a remainder of 20.
Use 2 as the next digit of our solution. 
Result so far: 12562.52
Subtract 80 from 100 to get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Going ahead to step 9:
When dividing 200 by 40, we get 5 with a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 12562.525
Subtract 200 from 200 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Moving on to step 10:
When dividing 0 by 40, we get 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 12562.525
If we take 0 away from 0, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Going ahead to step 11:
40 goes into 0 0 times with a remainder of 0.
The next digit of our result is 0. 
Result so far: 12562.525
Subtracting 0 from 0 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

In conclusion, the division gives 12562.525 with a balance of 0.0.