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

Advancing to step 1:
When dividing 5 by 87, we get 0 with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Bring next digit (2) of the dividend behind the 5 and repeat the process: 52 / 87

Going ahead to step 2:
87 can be fit into 52 0 times, resulting in a remainder of 52.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 52, we get 52.
Append the next digit (0) from the dividend to 52 and continue with: 520 / 87

Moving on to step 3:
The number 87 fits into 520 5 times, leaving a remainder of 85.
The number 5 becomes the next digit in our result. 
Result so far: 5.0
Deduct 435 from 520 and we're left with 85.
Grab the next digit (4) from the dividend, add it to 85, then carry on: 854 / 87

Going ahead to step 4:
87 goes into 854 9 times with a remainder of 71.
Record the quotient 9 as the next digit in the result. 
Result so far: 59.0
The remainder is 71 after subtracting 783 from 854.
Bring next digit (6) of the dividend behind the 71 and repeat the process: 716 / 87

Step 5:
87 goes into 716 8 times with a remainder of 20.
The number 8 becomes the next digit in our result. 
Result so far: 598.0
Deduct 696 from 716 and we're left with 20.
Fetch the next digit (6) from the dividend, attach it to 20 and continue: 206 / 87

On to step 6:
When dividing 206 by 87, we get 2 with a remainder of 32.
Write down 2 as next digit of the result. 
Result so far: 5982.0
Subtract 174 from 206 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.

Step 7:
320 divided by 87 is 3 with a remainder of 59.
Use 3 as the next digit of our solution. 
Result so far: 5982.3
If we take 261 away from 320, we end up with 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 8:
When dividing 590 by 87, we get 6 with a remainder of 68.
The number 6 becomes the next digit in our result. 
Result so far: 5982.36
The remainder is 68 after subtracting 522 from 590.
Since there are no more digits in the dividend, we add a zero to the remainder making it 680, and continue the process.

Advancing to step 9:
If we divide 680 by 87, we get 7 and a remainder of 71.
Record the quotient 7 as the next digit in the result. 
Result so far: 5982.367
If we subtract 609 from 680, we get 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 10:
The number 87 fits into 710 8 times, leaving a remainder of 14.
Write down 8 as next digit of the result. 
Result so far: 5982.3678
Subtract 696 from 710 to get 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Moving on to step 11:
If we divide 140 by 87, we get 1 and a remainder of 53.
Write down 1 as next digit of the result. 
Result so far: 5982.36781
Subtracting 87 from 140 leaves us with 53.
Since there are no more digits in the dividend, we add a zero to the remainder making it 530, and continue the process.

Moving on to step 12:
87 can be fit into 530 6 times, resulting in a remainder of 8.
The next digit of our result is 6. 
Result so far: 5982.367816
Subtracting 522 from 530 leaves us 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 13:
87 can be fit into 80 0 times, resulting in a remainder of 80.
The next digit of our result is 0. 
Result so far: 5982.367816
The remainder is 80 after subtracting 0 from 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 800, and continue the process.

On to step 14:
87 can be fit into 800 9 times, resulting in a remainder of 17.
The number 9 becomes the next digit in our result. 
Result so far: 5982.36781609
The remainder is 17 after subtracting 783 from 800.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Our division results in 5982.36781609 with a remaining 1.7e-08.