Let's divide 31987 by 84
We want to figure out the number of times 31987 can be divided by 84.

Step 1:
84 can be fit into 3 0 times, resulting in a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Append the next digit (1) from the dividend to 3 and continue with: 31 / 84

Advancing to step 2:
84 goes into 31 0 times with a remainder of 31.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 31 to get 31.
Take the next digit (9) from the dividend and append it to 31, then repeat: 319 / 84

Let's proceed to step 3:
If we divide 319 by 84, we get 3 and a remainder of 67.
The next digit of our result is 3. 
Result so far: 3.0
Deduct 252 from 319 and we're left with 67.
Include the next digit (8) from the dividend after 67, then repeat: 678 / 84

Going ahead to step 4:
84 can be fit into 678 8 times, resulting in a remainder of 6.
Write down 8 as next digit of the result. 
Result so far: 38.0
The remainder is 6 after subtracting 672 from 678.
Include the next digit (7) from the dividend after 6, then repeat: 67 / 84

Moving on to step 5:
The number 84 fits into 67 0 times, leaving a remainder of 67.
Use 0 as the next digit of our solution. 
Result so far: 380.0
Subtracting 0 from 67 leaves us with 67.
Since there are no more digits in the dividend, we add a zero to the remainder making it 670, and continue the process.

Advancing to step 6:
When dividing 670 by 84, we get 7 with a remainder of 82.
Put 7 as the next digit of the answer. 
Result so far: 380.7
Deduct 588 from 670 and we're left with 82.
Since there are no more digits in the dividend, we add a zero to the remainder making it 820, and continue the process.

On to step 7:
When dividing 820 by 84, we get 9 with a remainder of 64.
The next digit of our result is 9. 
Result so far: 380.79
If we subtract 756 from 820, we get 64.
Since there are no more digits in the dividend, we add a zero to the remainder making it 640, and continue the process.

On to step 8:
When dividing 640 by 84, we get 7 with a remainder of 52.
Write down 7 as next digit of the result. 
Result so far: 380.797
If we subtract 588 from 640, we get 52.
Since there are no more digits in the dividend, we add a zero to the remainder making it 520, and continue the process.

On to step 9:
84 goes into 520 6 times with a remainder of 16.
Write down 6 as next digit of the result. 
Result so far: 380.7976
Subtracting 504 from 520 leaves us with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Let's proceed to step 10:
If we divide 160 by 84, we get 1 and a remainder of 76.
The next digit of our result is 1. 
Result so far: 380.79761
If we take 84 away from 160, we end up with 76.
Since there are no more digits in the dividend, we add a zero to the remainder making it 760, and continue the process.

Moving on to step 11:
If we divide 760 by 84, we get 9 and a remainder of 4.
Use 9 as the next digit of our solution. 
Result so far: 380.797619
Subtract 756 from 760 to get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Moving on to step 12:
40 divided by 84 is 0 with a remainder of 40.
Put 0 as the next digit of the answer. 
Result so far: 380.797619
If we take 0 away from 40, we end up with 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Let's proceed to step 13:
84 can be fit into 400 4 times, resulting in a remainder of 64.
Put 4 as the next digit of the answer. 
Result so far: 380.79761904
The remainder is 64 after subtracting 336 from 400.
Since there are no more digits in the dividend, we add a zero to the remainder making it 640, and continue the process.

The final result is 380.79761904 with a remainder of 6.4e-08.