We divide 87966 by 31
We want to figure out the number of times 87966 can be divided by 31.

Step 1:
31 goes into 8 0 times with a remainder of 8.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 8, we end up with 8.
Bring next digit (7) of the dividend behind the 8 and repeat the process: 87 / 31

Advancing to step 2:
31 goes into 87 2 times with a remainder of 25.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
Subtracting 62 from 87 leaves us with 25.
Take the next digit (9) from the dividend and append it to 25, then repeat: 259 / 31

Moving on to step 3:
If we divide 259 by 31, we get 8 and a remainder of 11.
Use 8 as the next digit of our solution. 
Result so far: 28.0
Subtract 248 from 259 to get 11.
Fetch the next digit (6) from the dividend, attach it to 11 and continue: 116 / 31

Moving on to step 4:
116 divided by 31 is 3 with a remainder of 23.
Record the quotient 3 as the next digit in the result. 
Result so far: 283.0
Subtracting 93 from 116 leaves us with 23.
Append the next digit (6) from the dividend to 23 and continue with: 236 / 31

Let's proceed to step 5:
If we divide 236 by 31, we get 7 and a remainder of 19.
Record the quotient 7 as the next digit in the result. 
Result so far: 2837.0
Deduct 217 from 236 and we're left with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Moving on to step 6:
31 goes into 190 6 times with a remainder of 4.
Put 6 as the next digit of the answer. 
Result so far: 2837.6
If we take 186 away from 190, we end up 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.

Let's proceed to step 7:
31 can be fit into 40 1 times, resulting in a remainder of 9.
The number 1 becomes the next digit in our result. 
Result so far: 2837.61
Deduct 31 from 40 and we're left with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Advancing to step 8:
The number 31 fits into 90 2 times, leaving a remainder of 28.
The number 2 becomes the next digit in our result. 
Result so far: 2837.612
Deduct 62 from 90 and we're left with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Moving on to step 9:
31 can be fit into 280 9 times, resulting in a remainder of 1.
Put 9 as the next digit of the answer. 
Result so far: 2837.6129
If we subtract 279 from 280, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Going ahead to step 10:
When dividing 10 by 31, we get 0 with a remainder of 10.
The number 0 becomes the next digit in our result. 
Result so far: 2837.6129
The remainder is 10 after subtracting 0 from 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Moving on to step 11:
The number 31 fits into 100 3 times, leaving a remainder of 7.
The next digit of our result is 3. 
Result so far: 2837.612903
Subtract 93 from 100 to get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

On to step 12:
70 divided by 31 is 2 with a remainder of 8.
The next digit of our result is 2. 
Result so far: 2837.6129032
If we subtract 62 from 70, we get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Let's proceed to step 13:
The number 31 fits into 80 2 times, leaving a remainder of 18.
Use 2 as the next digit of our solution. 
Result so far: 2837.61290322
If we take 62 away from 80, we end up with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Our division results in 2837.61290322 with a remaining 1.8e-08.