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

Moving on to step 1:
The number 87 fits into 5 0 times, leaving a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Fetch the next digit (0) from the dividend, attach it to 5 and continue: 50 / 87

On to step 2:
87 goes into 50 0 times with a remainder of 50.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 50 and we're left with 50.
Include the next digit (6) from the dividend after 50, then repeat: 506 / 87

Step 3:
87 goes into 506 5 times with a remainder of 71.
The number 5 becomes the next digit in our result. 
Result so far: 5.0
If we subtract 435 from 506, we get 71.
Include the next digit (0) from the dividend after 71, then repeat: 710 / 87

Advancing to step 4:
The number 87 fits into 710 8 times, leaving a remainder of 14.
The next digit of our result is 8. 
Result so far: 58.0
Subtracting 696 from 710 leaves us with 14.
Fetch the next digit (8) from the dividend, attach it to 14 and continue: 148 / 87

Step 5:
87 goes into 148 1 times with a remainder of 61.
Write down 1 as next digit of the result. 
Result so far: 581.0
If we take 87 away from 148, we end up with 61.
Include the next digit (9) from the dividend after 61, then repeat: 619 / 87

Moving on to step 6:
The number 87 fits into 619 7 times, leaving a remainder of 10.
Write down 7 as next digit of the result. 
Result so far: 5817.0
Deduct 609 from 619 and we're left with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Going ahead to step 7:
If we divide 100 by 87, we get 1 and a remainder of 13.
The number 1 becomes the next digit in our result. 
Result so far: 5817.1
If we take 87 away from 100, we end up with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Moving on to step 8:
When dividing 130 by 87, we get 1 with a remainder of 43.
The number 1 becomes the next digit in our result. 
Result so far: 5817.11
If we take 87 away from 130, we end up with 43.
Since there are no more digits in the dividend, we add a zero to the remainder making it 430, and continue the process.

After the division, we end up with 5817.11 and a remainder of 0.043.