We divide 983171 by 87
The aim is to understand the frequency of 87 in 983171.

On to step 1:
9 divided by 87 is 0 with a remainder of 9.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 9, we get 9.
Bring next digit (8) of the dividend behind the 9 and repeat the process: 98 / 87

Going ahead to step 2:
If we divide 98 by 87, we get 1 and a remainder of 11.
The next digit of our result is 1. 
Result so far: 1.0
Subtract 87 from 98 to get 11.
Fetch the next digit (3) from the dividend, attach it to 11 and continue: 113 / 87

Moving on to step 3:
If we divide 113 by 87, we get 1 and a remainder of 26.
The number 1 becomes the next digit in our result. 
Result so far: 11.0
If we take 87 away from 113, we end up with 26.
Fetch the next digit (1) from the dividend, attach it to 26 and continue: 261 / 87

Let's proceed to step 4:
When dividing 261 by 87, we get 3 with a remainder of 0.
Write down 3 as next digit of the result. 
Result so far: 113.0
Subtracting 261 from 261 leaves us with 0.
Include the next digit (7) from the dividend after 0, then repeat: 7 / 87

On to step 5:
87 goes into 7 0 times with a remainder of 7.
Record the quotient 0 as the next digit in the result. 
Result so far: 1130.0
Subtract 0 from 7 to get 7.
Grab the next digit (1) from the dividend, add it to 7, then carry on: 71 / 87

Moving on to step 6:
87 goes into 71 0 times with a remainder of 71.
The number 0 becomes the next digit in our result. 
Result so far: 11300.0
The remainder is 71 after subtracting 0 from 71.
Since there are no more digits in the dividend, we add a zero to the remainder making it 710, and continue the process.

Step 7:
The number 87 fits into 710 8 times, leaving a remainder of 14.
Put 8 as the next digit of the answer. 
Result so far: 11300.8
Subtracting 696 from 710 leaves us with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Step 8:
The number 87 fits into 140 1 times, leaving a remainder of 53.
Record the quotient 1 as the next digit in the result. 
Result so far: 11300.81
The remainder is 53 after subtracting 87 from 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 530, and continue the process.

Step 9:
If we divide 530 by 87, we get 6 and a remainder of 8.
Use 6 as the next digit of our solution. 
Result so far: 11300.816
Deduct 522 from 530 and we're left with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Step 10:
If we divide 80 by 87, we get 0 and a remainder of 80.
Put 0 as the next digit of the answer. 
Result so far: 11300.816
Subtracting 0 from 80 leaves us with 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 800, and continue the process.

Moving on to step 11:
When dividing 800 by 87, we get 9 with a remainder of 17.
Write down 9 as next digit of the result. 
Result so far: 11300.81609
If we subtract 783 from 800, we get 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Going ahead to step 12:
When dividing 170 by 87, we get 1 with a remainder of 83.
The next digit of our result is 1. 
Result so far: 11300.816091
If we take 87 away from 170, we end up with 83.
Since there are no more digits in the dividend, we add a zero to the remainder making it 830, and continue the process.

Step 13:
If we divide 830 by 87, we get 9 and a remainder of 47.
Put 9 as the next digit of the answer. 
Result so far: 11300.8160919
If we take 783 away from 830, we end up with 47.
Since there are no more digits in the dividend, we add a zero to the remainder making it 470, and continue the process.

On to step 14:
The number 87 fits into 470 5 times, leaving a remainder of 35.
Put 5 as the next digit of the answer. 
Result so far: 11300.81609195
Subtracting 435 from 470 leaves us with 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

The final outcome is 11300.81609195, with a leftover of 3.5e-08.