503113 divided by 40 
Our goal is to divide 503113 by 40.

Moving on to step 1:
If we divide 5 by 40, we get 0 and a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Bring next digit (0) of the dividend behind the 5 and repeat the process: 50 / 40

On to step 2:
If we divide 50 by 40, we get 1 and a remainder of 10.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Subtracting 40 from 50 leaves us with 10.
Take the next digit (3) from the dividend and append it to 10, then repeat: 103 / 40

Advancing to step 3:
103 divided by 40 is 2 with a remainder of 23.
The next digit of our result is 2. 
Result so far: 12.0
If we subtract 80 from 103, we get 23.
Grab the next digit (1) from the dividend, add it to 23, then carry on: 231 / 40

Going ahead to step 4:
40 can be fit into 231 5 times, resulting in a remainder of 31.
The number 5 becomes the next digit in our result. 
Result so far: 125.0
Deduct 200 from 231 and we're left with 31.
Take the next digit (1) from the dividend and append it to 31, then repeat: 311 / 40

Going ahead to step 5:
When dividing 311 by 40, we get 7 with a remainder of 31.
The next digit of our result is 7. 
Result so far: 1257.0
If we take 280 away from 311, we end up with 31.
Grab the next digit (3) from the dividend, add it to 31, then carry on: 313 / 40

Moving on to step 6:
40 goes into 313 7 times with a remainder of 33.
Write down 7 as next digit of the result. 
Result so far: 12577.0
Subtract 280 from 313 to get 33.
Since there are no more digits in the dividend, we add a zero to the remainder making it 330, and continue the process.

Let's proceed to step 7:
40 goes into 330 8 times with a remainder of 10.
Write down 8 as next digit of the result. 
Result so far: 12577.8
The remainder is 10 after subtracting 320 from 330.
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 40, we get 2 and a remainder of 20.
Put 2 as the next digit of the answer. 
Result so far: 12577.82
If we subtract 80 from 100, 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 9:
200 divided by 40 is 5 with a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 12577.825
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 10:
The number 40 fits into 0 0 times, leaving a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 12577.825
If we subtract 0 from 0, we 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.

Let's proceed to step 11:
The number 40 fits into 0 0 times, leaving a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 12577.825
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 12577.825 with a balance of 0.0.