We look at the division of 562582 by 40 
We want to divide 562582 by 40.

Step 1:
The number 40 fits into 5 0 times, leaving a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Include the next digit (6) from the dividend after 5, then repeat: 56 / 40

Step 2:
The number 40 fits into 56 1 times, leaving a remainder of 16.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Deduct 40 from 56 and we're left with 16.
Bring next digit (2) of the dividend behind the 16 and repeat the process: 162 / 40

Let's proceed to step 3:
40 goes into 162 4 times with a remainder of 2.
Record the quotient 4 as the next digit in the result. 
Result so far: 14.0
If we subtract 160 from 162, we get 2.
Bring next digit (5) of the dividend behind the 2 and repeat the process: 25 / 40

Advancing to step 4:
The number 40 fits into 25 0 times, leaving a remainder of 25.
The number 0 becomes the next digit in our result. 
Result so far: 140.0
Subtract 0 from 25 to get 25.
Fetch the next digit (8) from the dividend, attach it to 25 and continue: 258 / 40

Advancing to step 5:
40 goes into 258 6 times with a remainder of 18.
Record the quotient 6 as the next digit in the result. 
Result so far: 1406.0
If we subtract 240 from 258, we get 18.
Append the next digit (2) from the dividend to 18 and continue with: 182 / 40

Moving on to step 6:
When dividing 182 by 40, we get 4 with a remainder of 22.
Write down 4 as next digit of the result. 
Result so far: 14064.0
If we take 160 away from 182, we end up with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Step 7:
When dividing 220 by 40, we get 5 with a remainder of 20.
The next digit of our result is 5. 
Result so far: 14064.5
Subtract 200 from 220 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.

Step 8:
40 can be fit into 200 5 times, resulting in a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 14064.55
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.

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