509861 divided by 87 
The aim is to understand the frequency of 87 in 509861.

Advancing to step 1:
The number 87 fits into 5 0 times, leaving a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Take the next digit (0) from the dividend and append it to 5, then repeat: 50 / 87

Moving 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.
Grab the next digit (9) from the dividend, add it to 50, then carry on: 509 / 87

Advancing to step 3:
87 can be fit into 509 5 times, resulting in a remainder of 74.
Put 5 as the next digit of the answer. 
Result so far: 5.0
If we subtract 435 from 509, we get 74.
Fetch the next digit (8) from the dividend, attach it to 74 and continue: 748 / 87

Advancing to step 4:
If we divide 748 by 87, we get 8 and a remainder of 52.
Use 8 as the next digit of our solution. 
Result so far: 58.0
The remainder is 52 after subtracting 696 from 748.
Grab the next digit (6) from the dividend, add it to 52, then carry on: 526 / 87

On to step 5:
526 divided by 87 is 6 with a remainder of 4.
Put 6 as the next digit of the answer. 
Result so far: 586.0
If we subtract 522 from 526, we get 4.
Grab the next digit (1) from the dividend, add it to 4, then carry on: 41 / 87

Advancing to step 6:
The number 87 fits into 41 0 times, leaving a remainder of 41.
Record the quotient 0 as the next digit in the result. 
Result so far: 5860.0
Deduct 0 from 41 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.

Going ahead to step 7:
The number 87 fits into 410 4 times, leaving a remainder of 62.
Write down 4 as next digit of the result. 
Result so far: 5860.4
If we subtract 348 from 410, we get 62.
Since there are no more digits in the dividend, we add a zero to the remainder making it 620, and continue the process.

Step 8:
The number 87 fits into 620 7 times, leaving a remainder of 11.
Put 7 as the next digit of the answer. 
Result so far: 5860.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.

Going ahead to step 9:
87 goes into 110 1 times with a remainder of 23.
The number 1 becomes the next digit in our result. 
Result so far: 5860.471
Subtracting 87 from 110 leaves us with 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:
If we divide 230 by 87, we get 2 and a remainder of 56.
The number 2 becomes the next digit in our result. 
Result so far: 5860.4712
Deduct 174 from 230 and we're left 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.

Step 11:
87 goes into 560 6 times with a remainder of 38.
The number 6 becomes the next digit in our result. 
Result so far: 5860.47126
If we take 522 away from 560, we end up with 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Let's proceed 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: 5860.471264
If we subtract 348 from 380, we 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 13:
The number 87 fits into 320 3 times, leaving a remainder of 59.
Put 3 as the next digit of the answer. 
Result so far: 5860.4712643
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.

On to step 14:
When dividing 590 by 87, we get 6 with a remainder of 68.
The next digit of our result is 6. 
Result so far: 5860.47126436
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.

The quotient of the division is 5860.47126436, and the remainder is 6.8e-08.