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

Advancing to step 1:
When dividing 1 by 87, we get 0 with a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 1, we end up with 1.
Include the next digit (3) from the dividend after 1, then repeat: 13 / 87

Step 2:
87 can be fit into 13 0 times, resulting in a remainder of 13.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 13, we end up with 13.
Fetch the next digit (8) from the dividend, attach it to 13 and continue: 138 / 87

Advancing to step 3:
When dividing 138 by 87, we get 1 with a remainder of 51.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Deduct 87 from 138 and we're left with 51.
Append the next digit (8) from the dividend to 51 and continue with: 518 / 87

On to step 4:
When dividing 518 by 87, we get 5 with a remainder of 83.
The number 5 becomes the next digit in our result. 
Result so far: 15.0
The remainder is 83 after subtracting 435 from 518.
Fetch the next digit (5) from the dividend, attach it to 83 and continue: 835 / 87

Advancing to step 5:
87 goes into 835 9 times with a remainder of 52.
Use 9 as the next digit of our solution. 
Result so far: 159.0
If we subtract 783 from 835, we get 52.
Include the next digit (7) from the dividend after 52, then repeat: 527 / 87

Advancing to step 6:
87 goes into 527 6 times with a remainder of 5.
Record the quotient 6 as the next digit in the result. 
Result so far: 1596.0
Subtracting 522 from 527 leaves us with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

On to step 7:
87 can be fit into 50 0 times, resulting in a remainder of 50.
The number 0 becomes the next digit in our result. 
Result so far: 1596.0
Subtracting 0 from 50 leaves us with 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 500, and continue the process.

On to step 8:
The number 87 fits into 500 5 times, leaving a remainder of 65.
Record the quotient 5 as the next digit in the result. 
Result so far: 1596.05
Deduct 435 from 500 and we're left with 65.
Since there are no more digits in the dividend, we add a zero to the remainder making it 650, and continue the process.

Advancing to step 9:
If we divide 650 by 87, we get 7 and a remainder of 41.
Put 7 as the next digit of the answer. 
Result so far: 1596.057
Subtract 609 from 650 to get 41.
Since there are no more digits in the dividend, we add a zero to the remainder making it 410, and continue the process.

Advancing to step 10:
87 can be fit into 410 4 times, resulting in a remainder of 62.
Use 4 as the next digit of our solution. 
Result so far: 1596.0574
Subtract 348 from 410 to 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.

Advancing to step 11:
620 divided by 87 is 7 with a remainder of 11.
Record the quotient 7 as the next digit in the result. 
Result so far: 1596.05747
Subtracting 609 from 620 leaves us 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 12:
87 can be fit into 110 1 times, resulting in a remainder of 23.
Record the quotient 1 as the next digit in the result. 
Result so far: 1596.057471
Deduct 87 from 110 and we're left 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.

Moving on to step 13:
230 divided by 87 is 2 with a remainder of 56.
Write down 2 as next digit of the result. 
Result so far: 1596.0574712
If we subtract 174 from 230, we get 56.
Since there are no more digits in the dividend, we add a zero to the remainder making it 560, and continue the process.

On to step 14:
If we divide 560 by 87, we get 6 and a remainder of 38.
Put 6 as the next digit of the answer. 
Result so far: 1596.05747126
The remainder is 38 after subtracting 522 from 560.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

In conclusion, the division gives 1596.05747126 with a balance of 3.8e-08.