Let's divide 560786 by 40
We're looking to find how many times 40 goes into 560786.

Going ahead to step 1:
40 can be fit into 5 0 times, resulting in a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Include the next digit (6) from the dividend after 5, then repeat: 56 / 40

Let's proceed to step 2:
If we divide 56 by 40, we get 1 and a remainder of 16.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
If we take 40 away from 56, we end up with 16.
Fetch the next digit (0) from the dividend, attach it to 16 and continue: 160 / 40

On to step 3:
40 goes into 160 4 times with a remainder of 0.
The next digit of our result is 4. 
Result so far: 14.0
If we take 160 away from 160, we end up with 0.
Bring next digit (7) of the dividend behind the 0 and repeat the process: 7 / 40

Advancing to step 4:
40 goes into 7 0 times with a remainder of 7.
Use 0 as the next digit of our solution. 
Result so far: 140.0
The remainder is 7 after subtracting 0 from 7.
Fetch the next digit (8) from the dividend, attach it to 7 and continue: 78 / 40

Moving on to step 5:
40 goes into 78 1 times with a remainder of 38.
Write down 1 as next digit of the result. 
Result so far: 1401.0
If we subtract 40 from 78, we get 38.
Bring next digit (6) of the dividend behind the 38 and repeat the process: 386 / 40

On to step 6:
When dividing 386 by 40, we get 9 with a remainder of 26.
Put 9 as the next digit of the answer. 
Result so far: 14019.0
Subtracting 360 from 386 leaves us with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Step 7:
When dividing 260 by 40, we get 6 with a remainder of 20.
Put 6 as the next digit of the answer. 
Result so far: 14019.6
Subtract 240 from 260 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.

Moving on to step 8:
If we divide 200 by 40, we get 5 and a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 14019.65
If we take 200 away from 200, 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 9:
40 goes into 0 0 times with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 14019.65
Deduct 0 from 0 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.

Let's proceed to step 10:
40 can be fit into 0 0 times, resulting in a remainder of 0.
The next digit of our result is 0. 
Result so far: 14019.65
Deduct 0 from 0 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.

After the division, we end up with 14019.65 and a remainder of 0.0.