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

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
Subtracting 0 from 5 leaves us with 5.
Take the next digit (2) from the dividend and append it to 5, then repeat: 52 / 87

Let's proceed to step 2:
When dividing 52 by 87, we get 0 with a remainder of 52.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 52 to get 52.
Take the next digit (1) from the dividend and append it to 52, then repeat: 521 / 87

Going ahead to step 3:
521 divided by 87 is 5 with a remainder of 86.
The next digit of our result is 5. 
Result so far: 5.0
If we take 435 away from 521, we end up with 86.
Include the next digit (1) from the dividend after 86, then repeat: 861 / 87

Step 4:
The number 87 fits into 861 9 times, leaving a remainder of 78.
Put 9 as the next digit of the answer. 
Result so far: 59.0
Deduct 783 from 861 and we're left with 78.
Append the next digit (5) from the dividend to 78 and continue with: 785 / 87

Step 5:
When dividing 785 by 87, we get 9 with a remainder of 2.
The number 9 becomes the next digit in our result. 
Result so far: 599.0
If we take 783 away from 785, we end up with 2.
Take the next digit (8) from the dividend and append it to 2, then repeat: 28 / 87

Advancing to step 6:
The number 87 fits into 28 0 times, leaving a remainder of 28.
Write down 0 as next digit of the result. 
Result so far: 5990.0
The remainder is 28 after subtracting 0 from 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Moving on to step 7:
280 divided by 87 is 3 with a remainder of 19.
Write down 3 as next digit of the result. 
Result so far: 5990.3
Subtract 261 from 280 to get 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Step 8:
The number 87 fits into 190 2 times, leaving a remainder of 16.
Use 2 as the next digit of our solution. 
Result so far: 5990.32
Subtract 174 from 190 to get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Going ahead to step 9:
When dividing 160 by 87, we get 1 with a remainder of 73.
Use 1 as the next digit of our solution. 
Result so far: 5990.321
Subtract 87 from 160 to get 73.
Since there are no more digits in the dividend, we add a zero to the remainder making it 730, and continue the process.

On to step 10:
730 divided by 87 is 8 with a remainder of 34.
Put 8 as the next digit of the answer. 
Result so far: 5990.3218
Subtract 696 from 730 to get 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Let's proceed to step 11:
The number 87 fits into 340 3 times, leaving a remainder of 79.
The number 3 becomes the next digit in our result. 
Result so far: 5990.32183
Subtracting 261 from 340 leaves us with 79.
Since there are no more digits in the dividend, we add a zero to the remainder making it 790, and continue the process.

Advancing to step 12:
790 divided by 87 is 9 with a remainder of 7.
Use 9 as the next digit of our solution. 
Result so far: 5990.321839
Deduct 783 from 790 and we're left with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

On to step 13:
When dividing 70 by 87, we get 0 with a remainder of 70.
Use 0 as the next digit of our solution. 
Result so far: 5990.321839
If we subtract 0 from 70, we get 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 700, and continue the process.

Advancing to step 14:
The number 87 fits into 700 8 times, leaving a remainder of 4.
Record the quotient 8 as the next digit in the result. 
Result so far: 5990.32183908
If we take 696 away from 700, we end up with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

In conclusion, the division gives 5990.32183908 with a balance of 4e-09.