We're dividing 12987 by 87 
The aim is to understand the frequency of 87 in 12987.

Going ahead to step 1:
1 divided by 87 is 0 with a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 1, we get 1.
Bring next digit (2) of the dividend behind the 1 and repeat the process: 12 / 87

On to step 2:
87 goes into 12 0 times with a remainder of 12.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 12, we end up with 12.
Grab the next digit (9) from the dividend, add it to 12, then carry on: 129 / 87

Advancing to step 3:
If we divide 129 by 87, we get 1 and a remainder of 42.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Subtracting 87 from 129 leaves us with 42.
Bring next digit (8) of the dividend behind the 42 and repeat the process: 428 / 87

Going ahead to step 4:
When dividing 428 by 87, we get 4 with a remainder of 80.
Record the quotient 4 as the next digit in the result. 
Result so far: 14.0
Subtracting 348 from 428 leaves us with 80.
Grab the next digit (7) from the dividend, add it to 80, then carry on: 807 / 87

Going ahead to step 5:
87 can be fit into 807 9 times, resulting in a remainder of 24.
The number 9 becomes the next digit in our result. 
Result so far: 149.0
The remainder is 24 after subtracting 783 from 807.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Let's proceed to step 6:
87 goes into 240 2 times with a remainder of 66.
Use 2 as the next digit of our solution. 
Result so far: 149.2
If we subtract 174 from 240, we get 66.
Since there are no more digits in the dividend, we add a zero to the remainder making it 660, and continue the process.

Moving on to step 7:
The number 87 fits into 660 7 times, leaving a remainder of 51.
The number 7 becomes the next digit in our result. 
Result so far: 149.27
Deduct 609 from 660 and we're left with 51.
Since there are no more digits in the dividend, we add a zero to the remainder making it 510, and continue the process.

Going ahead to step 8:
When dividing 510 by 87, we get 5 with a remainder of 75.
Put 5 as the next digit of the answer. 
Result so far: 149.275
Subtract 435 from 510 to get 75.
Since there are no more digits in the dividend, we add a zero to the remainder making it 750, and continue the process.

Going ahead to step 9:
If we divide 750 by 87, we get 8 and a remainder of 54.
The number 8 becomes the next digit in our result. 
Result so far: 149.2758
Subtracting 696 from 750 leaves us with 54.
Since there are no more digits in the dividend, we add a zero to the remainder making it 540, and continue the process.

Step 10:
540 divided by 87 is 6 with a remainder of 18.
Use 6 as the next digit of our solution. 
Result so far: 149.27586
If we take 522 away from 540, we end up with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

On to step 11:
If we divide 180 by 87, we get 2 and a remainder of 6.
Use 2 as the next digit of our solution. 
Result so far: 149.275862
Subtracting 174 from 180 leaves us with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Going ahead to step 12:
60 divided by 87 is 0 with a remainder of 60.
The number 0 becomes the next digit in our result. 
Result so far: 149.275862
If we subtract 0 from 60, we get 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 600, and continue the process.

On to step 13:
87 can be fit into 600 6 times, resulting in a remainder of 78.
The next digit of our result is 6. 
Result so far: 149.27586206
If we subtract 522 from 600, we get 78.
Since there are no more digits in the dividend, we add a zero to the remainder making it 780, and continue the process.

After the division, we end up with 149.27586206 and a remainder of 7.8e-08.