We divide 40074 by 5
We want to divide 40074 by 5.

Let's proceed to step 1:
4 divided by 5 is 0 with a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 4 after subtracting 0 from 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 5

Let's proceed to step 2:
The number 5 fits into 40 8 times, leaving a remainder of 0.
Record the quotient 8 as the next digit in the result. 
Result so far: 8.0
Subtracting 40 from 40 leaves us with 0.
Fetch the next digit (0) from the dividend, attach it to 0 and continue: 0 / 5

Moving on to step 3:
5 goes into 0 0 times with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 80.0
If we take 0 away from 0, we end up with 0.
Fetch the next digit (7) from the dividend, attach it to 0 and continue: 7 / 5

Moving on to step 4:
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: 801.0
Subtracting 5 from 7 leaves us with 2.
Take the next digit (4) from the dividend and append it to 2, then repeat: 24 / 5

Advancing to step 5:
The number 5 fits into 24 4 times, leaving a remainder of 4.
Put 4 as the next digit of the answer. 
Result so far: 8014.0
Deduct 20 from 24 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Going ahead to step 6:
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: 8014.8
Subtracting 40 from 40 leaves us 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:
5 goes into 0 0 times with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 8014.8
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.

Moving on to step 8:
5 goes into 0 0 times with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 8014.8
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.

Our division results in 8014.8 with a remaining 0.0.