We look at the division of 501460 by 40 
We want to figure out the number of times 501460 can be divided by 40.

Let's proceed to step 1:
5 divided by 40 is 0 with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Bring next digit (0) of the dividend behind the 5 and repeat the process: 50 / 40

Step 2:
When dividing 50 by 40, we get 1 with a remainder of 10.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Deduct 40 from 50 and we're left with 10.
Bring next digit (1) of the dividend behind the 10 and repeat the process: 101 / 40

Going ahead to step 3:
The number 40 fits into 101 2 times, leaving a remainder of 21.
Write down 2 as next digit of the result. 
Result so far: 12.0
Subtract 80 from 101 to get 21.
Append the next digit (4) from the dividend to 21 and continue with: 214 / 40

Step 4:
If we divide 214 by 40, we get 5 and a remainder of 14.
Record the quotient 5 as the next digit in the result. 
Result so far: 125.0
If we take 200 away from 214, we end up with 14.
Fetch the next digit (6) from the dividend, attach it to 14 and continue: 146 / 40

Advancing to step 5:
When dividing 146 by 40, we get 3 with a remainder of 26.
The number 3 becomes the next digit in our result. 
Result so far: 1253.0
If we subtract 120 from 146, we get 26.
Fetch the next digit (0) from the dividend, attach it to 26 and continue: 260 / 40

Going ahead to step 6:
The number 40 fits into 260 6 times, leaving a remainder of 20.
The next digit of our result is 6. 
Result so far: 12536.0
If we subtract 240 from 260, we 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 7:
40 goes into 200 5 times with a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 12536.5
The remainder is 0 after subtracting 200 from 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Step 8:
The number 40 fits into 0 0 times, leaving a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 12536.5
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.

Moving on to step 9:
0 divided by 40 is 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 12536.5
Subtract 0 from 0 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.

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