We divide 396742 by 5
We want to divide 396742 by 5.

Going ahead to step 1:
When dividing 3 by 5, we get 0 with a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Take the next digit (9) from the dividend and append it to 3, then repeat: 39 / 5

Going ahead to step 2:
If we divide 39 by 5, we get 7 and a remainder of 4.
Use 7 as the next digit of our solution. 
Result so far: 7.0
Subtract 35 from 39 to get 4.
Fetch the next digit (6) from the dividend, attach it to 4 and continue: 46 / 5

Going ahead to step 3:
46 divided by 5 is 9 with a remainder of 1.
Write down 9 as next digit of the result. 
Result so far: 79.0
Subtract 45 from 46 to get 1.
Fetch the next digit (7) from the dividend, attach it to 1 and continue: 17 / 5

Let's proceed to step 4:
The number 5 fits into 17 3 times, leaving a remainder of 2.
The next digit of our result is 3. 
Result so far: 793.0
The remainder is 2 after subtracting 15 from 17.
Fetch the next digit (4) from the dividend, attach it to 2 and continue: 24 / 5

Let's proceed to step 5:
5 can be fit into 24 4 times, resulting in a remainder of 4.
The number 4 becomes the next digit in our result. 
Result so far: 7934.0
Subtracting 20 from 24 leaves us with 4.
Append the next digit (2) from the dividend to 4 and continue with: 42 / 5

Moving on to step 6:
5 can be fit into 42 8 times, resulting in a remainder of 2.
The number 8 becomes the next digit in our result. 
Result so far: 79348.0
Subtract 40 from 42 to 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 7:
The number 5 fits into 20 4 times, leaving a remainder of 0.
Put 4 as the next digit of the answer. 
Result so far: 79348.4
Subtracting 20 from 20 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.

On to step 8:
0 divided by 5 is 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 79348.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.

On to step 9:
The number 5 fits into 0 0 times, leaving a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 79348.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.

The final result is 79348.4 with a remainder of 0.0.