We divide 503563 by 40
Our goal is to divide 503563 by 40.

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
Subtract 0 from 5 to get 5.
Include the next digit (0) from the dividend after 5, then repeat: 50 / 40

Going ahead to step 2:
If we divide 50 by 40, we get 1 and a remainder of 10.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Subtract 40 from 50 to get 10.
Append the next digit (3) from the dividend to 10 and continue with: 103 / 40

Advancing to step 3:
40 can be fit into 103 2 times, resulting in a remainder of 23.
Use 2 as the next digit of our solution. 
Result so far: 12.0
If we subtract 80 from 103, we get 23.
Fetch the next digit (5) from the dividend, attach it to 23 and continue: 235 / 40

Moving on to step 4:
40 goes into 235 5 times with a remainder of 35.
Use 5 as the next digit of our solution. 
Result so far: 125.0
Subtracting 200 from 235 leaves us with 35.
Take the next digit (6) from the dividend and append it to 35, then repeat: 356 / 40

Moving on to step 5:
The number 40 fits into 356 8 times, leaving a remainder of 36.
Use 8 as the next digit of our solution. 
Result so far: 1258.0
The remainder is 36 after subtracting 320 from 356.
Include the next digit (3) from the dividend after 36, then repeat: 363 / 40

On to step 6:
40 goes into 363 9 times with a remainder of 3.
Record the quotient 9 as the next digit in the result. 
Result so far: 12589.0
The remainder is 3 after subtracting 360 from 363.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

On to step 7:
40 can be fit into 30 0 times, resulting in a remainder of 30.
Record the quotient 0 as the next digit in the result. 
Result so far: 12589.0
If we subtract 0 from 30, we get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Advancing to step 8:
40 goes into 300 7 times with a remainder of 20.
Record the quotient 7 as the next digit in the result. 
Result so far: 12589.07
Deduct 280 from 300 and we're left with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 9:
The number 40 fits into 200 5 times, leaving a remainder of 0.
The next digit of our result is 5. 
Result so far: 12589.075
Deduct 200 from 200 and we're left 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.

Advancing to step 10:
When dividing 0 by 40, we get 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 12589.075
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.

Let's proceed to step 11:
0 divided by 40 is 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 12589.075
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.

The final outcome is 12589.075, with a leftover of 0.0.