Let's divide 187165 by 987
The aim is to understand the frequency of 987 in 187165.

On to step 1:
When dividing 1 by 987, we get 0 with a remainder of 1.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 1 and we're left with 1.
Include the next digit (8) from the dividend after 1, then repeat: 18 / 987

Step 2:
When dividing 18 by 987, we get 0 with a remainder of 18.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 18 to get 18.
Append the next digit (7) from the dividend to 18 and continue with: 187 / 987

Advancing to step 3:
If we divide 187 by 987, we get 0 and a remainder of 187.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 187 leaves us with 187.
Grab the next digit (1) from the dividend, add it to 187, then carry on: 1871 / 987

Step 4:
987 goes into 1871 1 times with a remainder of 884.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtracting 987 from 1871 leaves us with 884.
Append the next digit (6) from the dividend to 884 and continue with: 8846 / 987

Step 5:
When dividing 8846 by 987, we get 8 with a remainder of 950.
The number 8 becomes the next digit in our result. 
Result so far: 18.0
If we subtract 7896 from 8846, we get 950.
Bring next digit (5) of the dividend behind the 950 and repeat the process: 9505 / 987

Let's proceed to step 6:
987 can be fit into 9505 9 times, resulting in a remainder of 622.
The next digit of our result is 9. 
Result so far: 189.0
The remainder is 622 after subtracting 8883 from 9505.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6220, and continue the process.

On to step 7:
If we divide 6220 by 987, we get 6 and a remainder of 298.
Use 6 as the next digit of our solution. 
Result so far: 189.6
Subtract 5922 from 6220 to get 298.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2980, and continue the process.

Moving on to step 8:
When dividing 2980 by 987, we get 3 with a remainder of 19.
The next digit of our result is 3. 
Result so far: 189.63
Subtracting 2961 from 2980 leaves us 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 9:
987 goes into 190 0 times with a remainder of 190.
Use 0 as the next digit of our solution. 
Result so far: 189.63
Deduct 0 from 190 and we're left with 190.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1900, and continue the process.

Step 10:
If we divide 1900 by 987, we get 1 and a remainder of 913.
Write down 1 as next digit of the result. 
Result so far: 189.6301
The remainder is 913 after subtracting 987 from 1900.
Since there are no more digits in the dividend, we add a zero to the remainder making it 9130, and continue the process.

Advancing to step 11:
The number 987 fits into 9130 9 times, leaving a remainder of 247.
The number 9 becomes the next digit in our result. 
Result so far: 189.63019
Deduct 8883 from 9130 and we're left with 247.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2470, and continue the process.

Going ahead to step 12:
987 can be fit into 2470 2 times, resulting in a remainder of 496.
Put 2 as the next digit of the answer. 
Result so far: 189.630192
Subtract 1974 from 2470 to get 496.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4960, and continue the process.

Advancing to step 13:
If we divide 4960 by 987, we get 5 and a remainder of 25.
The next digit of our result is 5. 
Result so far: 189.6301925
If we subtract 4935 from 4960, we get 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Going ahead to step 14:
If we divide 250 by 987, we get 0 and a remainder of 250.
Use 0 as the next digit of our solution. 
Result so far: 189.6301925
If we subtract 0 from 250, we get 250.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2500, and continue the process.

The final outcome is 189.6301925, with a leftover of 2.5e-07.