We look at the division of 964958 by 87 
The aim is to understand the frequency of 87 in 964958.

Going ahead to step 1:
The number 87 fits into 9 0 times, leaving a remainder of 9.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 9 to get 9.
Take the next digit (6) from the dividend and append it to 9, then repeat: 96 / 87

Advancing to step 2:
When dividing 96 by 87, we get 1 with a remainder of 9.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
If we take 87 away from 96, we end up with 9.
Bring next digit (4) of the dividend behind the 9 and repeat the process: 94 / 87

On to step 3:
87 goes into 94 1 times with a remainder of 7.
Record the quotient 1 as the next digit in the result. 
Result so far: 11.0
Deduct 87 from 94 and we're left with 7.
Include the next digit (9) from the dividend after 7, then repeat: 79 / 87

Let's proceed to step 4:
79 divided by 87 is 0 with a remainder of 79.
Put 0 as the next digit of the answer. 
Result so far: 110.0
The remainder is 79 after subtracting 0 from 79.
Fetch the next digit (5) from the dividend, attach it to 79 and continue: 795 / 87

On to step 5:
87 can be fit into 795 9 times, resulting in a remainder of 12.
Write down 9 as next digit of the result. 
Result so far: 1109.0
If we subtract 783 from 795, we get 12.
Append the next digit (8) from the dividend to 12 and continue with: 128 / 87

Going ahead to step 6:
The number 87 fits into 128 1 times, leaving a remainder of 41.
The next digit of our result is 1. 
Result so far: 11091.0
Deduct 87 from 128 and we're left with 41.
Since there are no more digits in the dividend, we add a zero to the remainder making it 410, and continue the process.

Let's proceed to step 7:
410 divided by 87 is 4 with a remainder of 62.
Write down 4 as next digit of the result. 
Result so far: 11091.4
If we take 348 away from 410, we end up with 62.
Since there are no more digits in the dividend, we add a zero to the remainder making it 620, and continue the process.

Going ahead to step 8:
When dividing 620 by 87, we get 7 with a remainder of 11.
The number 7 becomes the next digit in our result. 
Result so far: 11091.47
If we take 609 away from 620, we end up with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Let's proceed to step 9:
The number 87 fits into 110 1 times, leaving a remainder of 23.
Use 1 as the next digit of our solution. 
Result so far: 11091.471
If we subtract 87 from 110, we get 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

On to step 10:
87 goes into 230 2 times with a remainder of 56.
Write down 2 as next digit of the result. 
Result so far: 11091.4712
If we take 174 away from 230, we end up with 56.
Since there are no more digits in the dividend, we add a zero to the remainder making it 560, and continue the process.

On to step 11:
If we divide 560 by 87, we get 6 and a remainder of 38.
The number 6 becomes the next digit in our result. 
Result so far: 11091.47126
Subtract 522 from 560 to get 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

On to step 12:
When dividing 380 by 87, we get 4 with a remainder of 32.
The next digit of our result is 4. 
Result so far: 11091.471264
Subtract 348 from 380 to get 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Let's proceed to step 13:
87 can be fit into 320 3 times, resulting in a remainder of 59.
Put 3 as the next digit of the answer. 
Result so far: 11091.4712643
If we subtract 261 from 320, we get 59.
Since there are no more digits in the dividend, we add a zero to the remainder making it 590, and continue the process.

Advancing to step 14:
When dividing 590 by 87, we get 6 with a remainder of 68.
Write down 6 as next digit of the result. 
Result so far: 11091.47126436
If we take 522 away from 590, we end up with 68.
Since there are no more digits in the dividend, we add a zero to the remainder making it 680, and continue the process.

After the division, we end up with 11091.47126436 and a remainder of 6.8e-08.