We're dividing 397890 by 5 
We're looking to find how many times 5 goes into 397890.

On to step 1:
If we divide 3 by 5, we get 0 and a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Append the next digit (9) from the dividend to 3 and continue with: 39 / 5

Step 2:
39 divided by 5 is 7 with a remainder of 4.
Put 7 as the next digit of the answer. 
Result so far: 7.0
Subtract 35 from 39 to get 4.
Grab the next digit (7) from the dividend, add it to 4, then carry on: 47 / 5

Moving on to step 3:
When dividing 47 by 5, we get 9 with a remainder of 2.
Write down 9 as next digit of the result. 
Result so far: 79.0
If we take 45 away from 47, we end up with 2.
Take the next digit (8) from the dividend and append it to 2, then repeat: 28 / 5

On to step 4:
5 can be fit into 28 5 times, resulting in a remainder of 3.
The number 5 becomes the next digit in our result. 
Result so far: 795.0
Subtract 25 from 28 to get 3.
Grab the next digit (9) from the dividend, add it to 3, then carry on: 39 / 5

Going ahead to step 5:
5 can be fit into 39 7 times, resulting in a remainder of 4.
Record the quotient 7 as the next digit in the result. 
Result so far: 7957.0
Subtracting 35 from 39 leaves us with 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 5

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

On to step 7:
5 goes into 0 0 times with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 79578.0
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.

Going ahead to step 8:
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: 79578.0
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 79578.0 and a remainder of 0.0.