We're dividing 39864 by 5 
Our goal is to divide 39864 by 5.

Let's proceed to step 1:
If we divide 3 by 5, we get 0 and a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Grab the next digit (9) from the dividend, add it to 3, then carry on: 39 / 5

Going ahead to step 2:
39 divided by 5 is 7 with a remainder of 4.
Record the quotient 7 as the next digit in the result. 
Result so far: 7.0
Subtracting 35 from 39 leaves us with 4.
Include the next digit (8) from the dividend after 4, then repeat: 48 / 5

Step 3:
5 can be fit into 48 9 times, resulting in a remainder of 3.
Put 9 as the next digit of the answer. 
Result so far: 79.0
Subtract 45 from 48 to get 3.
Grab the next digit (6) from the dividend, add it to 3, then carry on: 36 / 5

Let's proceed to step 4:
36 divided by 5 is 7 with a remainder of 1.
Put 7 as the next digit of the answer. 
Result so far: 797.0
The remainder is 1 after subtracting 35 from 36.
Take the next digit (4) from the dividend and append it to 1, then repeat: 14 / 5

Advancing to step 5:
When dividing 14 by 5, we get 2 with a remainder of 4.
Write down 2 as next digit of the result. 
Result so far: 7972.0
Deduct 10 from 14 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.

Step 6:
When dividing 40 by 5, we get 8 with a remainder of 0.
Use 8 as the next digit of our solution. 
Result so far: 7972.8
Subtract 40 from 40 to 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 7:
5 can be fit into 0 0 times, resulting in a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 7972.8
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.

Going ahead to step 8:
If we divide 0 by 5, we get 0 and a remainder of 0.
The next digit of our result is 0. 
Result so far: 7972.8
Subtract 0 from 0 to 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 quotient of the division is 7972.8, and the remainder is 0.0.