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

Step 1:
If we divide 5 by 87, we get 0 and 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.
Append the next digit (4) from the dividend to 5 and continue with: 54 / 87

Step 2:
54 divided by 87 is 0 with a remainder of 54.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 54, we get 54.
Include the next digit (0) from the dividend after 54, then repeat: 540 / 87

Step 3:
87 goes into 540 6 times with a remainder of 18.
Put 6 as the next digit of the answer. 
Result so far: 6.0
If we take 522 away from 540, we end up with 18.
Include the next digit (1) from the dividend after 18, then repeat: 181 / 87

Advancing to step 4:
87 can be fit into 181 2 times, resulting in a remainder of 7.
Use 2 as the next digit of our solution. 
Result so far: 62.0
Subtract 174 from 181 to get 7.
Grab the next digit (7) from the dividend, add it to 7, then carry on: 77 / 87

On to step 5:
If we divide 77 by 87, we get 0 and a remainder of 77.
The number 0 becomes the next digit in our result. 
Result so far: 620.0
Subtracting 0 from 77 leaves us with 77.
Include the next digit (7) from the dividend after 77, then repeat: 777 / 87

On to step 6:
87 goes into 777 8 times with a remainder of 81.
Write down 8 as next digit of the result. 
Result so far: 6208.0
If we take 696 away from 777, we end up with 81.
Since there are no more digits in the dividend, we add a zero to the remainder making it 810, and continue the process.

On to step 7:
When dividing 810 by 87, we get 9 with a remainder of 27.
The next digit of our result is 9. 
Result so far: 6208.9
If we subtract 783 from 810, we get 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Moving on to step 8:
If we divide 270 by 87, we get 3 and a remainder of 9.
The number 3 becomes the next digit in our result. 
Result so far: 6208.93
Subtracting 261 from 270 leaves us 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.

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

Moving on to step 10:
If we divide 30 by 87, we get 0 and a remainder of 30.
The number 0 becomes the next digit in our result. 
Result so far: 6208.931
Subtracting 0 from 30 leaves us with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Let's proceed to step 11:
300 divided by 87 is 3 with a remainder of 39.
The number 3 becomes the next digit in our result. 
Result so far: 6208.93103
If we take 261 away from 300, we end up with 39.
Since there are no more digits in the dividend, we add a zero to the remainder making it 390, and continue the process.

On to step 12:
390 divided by 87 is 4 with a remainder of 42.
Write down 4 as next digit of the result. 
Result so far: 6208.931034
If we subtract 348 from 390, we get 42.
Since there are no more digits in the dividend, we add a zero to the remainder making it 420, and continue the process.

Advancing to step 13:
The number 87 fits into 420 4 times, leaving a remainder of 72.
Record the quotient 4 as the next digit in the result. 
Result so far: 6208.9310344
Subtracting 348 from 420 leaves us with 72.
Since there are no more digits in the dividend, we add a zero to the remainder making it 720, and continue the process.

In conclusion, the division gives 6208.9310344 with a balance of 7.2e-07.