We divide 40707 by 5
Let's see how many times 5 fits into 40707.

Going ahead to step 1:
5 goes into 4 0 times with a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 5

Advancing to step 2:
5 can be fit into 40 8 times, resulting in a remainder of 0.
Put 8 as the next digit of the answer. 
Result so far: 8.0
Subtract 40 from 40 to get 0.
Append the next digit (7) from the dividend to 0 and continue with: 7 / 5

Advancing to step 3:
The number 5 fits into 7 1 times, leaving a remainder of 2.
Write down 1 as next digit of the result. 
Result so far: 81.0
Deduct 5 from 7 and we're left with 2.
Fetch the next digit (0) from the dividend, attach it to 2 and continue: 20 / 5

Step 4:
5 goes into 20 4 times with a remainder of 0.
Record the quotient 4 as the next digit in the result. 
Result so far: 814.0
If we take 20 away from 20, we end up with 0.
Grab the next digit (7) from the dividend, add it to 0, then carry on: 7 / 5

Let's proceed to step 5:
5 can be fit into 7 1 times, resulting in a remainder of 2.
Record the quotient 1 as the next digit in the result. 
Result so far: 8141.0
If we subtract 5 from 7, we get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Going ahead to step 6:
The number 5 fits into 20 4 times, leaving a remainder of 0.
Record the quotient 4 as the next digit in the result. 
Result so far: 8141.4
Deduct 20 from 20 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 7:
If we divide 0 by 5, we get 0 and a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 8141.4
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.

On to step 8:
If we divide 0 by 5, we get 0 and a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 8141.4
The remainder is 0 after subtracting 0 from 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 8141.4 and a remainder of 0.0.