We look at the division of 413297 by 87 
The aim is to understand the frequency of 87 in 413297.

Going ahead to step 1:
When dividing 4 by 87, we get 0 with a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 4 after subtracting 0 from 4.
Take the next digit (1) from the dividend and append it to 4, then repeat: 41 / 87

On to step 2:
87 can be fit into 41 0 times, resulting in a remainder of 41.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 41 and we're left with 41.
Take the next digit (3) from the dividend and append it to 41, then repeat: 413 / 87

Let's proceed to step 3:
When dividing 413 by 87, we get 4 with a remainder of 65.
Write down 4 as next digit of the result. 
Result so far: 4.0
Subtracting 348 from 413 leaves us with 65.
Append the next digit (2) from the dividend to 65 and continue with: 652 / 87

On to step 4:
When dividing 652 by 87, we get 7 with a remainder of 43.
Put 7 as the next digit of the answer. 
Result so far: 47.0
Deduct 609 from 652 and we're left with 43.
Bring next digit (9) of the dividend behind the 43 and repeat the process: 439 / 87

Advancing to step 5:
When dividing 439 by 87, we get 5 with a remainder of 4.
Record the quotient 5 as the next digit in the result. 
Result so far: 475.0
Subtracting 435 from 439 leaves us with 4.
Fetch the next digit (7) from the dividend, attach it to 4 and continue: 47 / 87

Going ahead to step 6:
When dividing 47 by 87, we get 0 with a remainder of 47.
Use 0 as the next digit of our solution. 
Result so far: 4750.0
Subtracting 0 from 47 leaves us with 47.
Since there are no more digits in the dividend, we add a zero to the remainder making it 470, and continue the process.

Step 7:
87 can be fit into 470 5 times, resulting in a remainder of 35.
Use 5 as the next digit of our solution. 
Result so far: 4750.5
If we subtract 435 from 470, we get 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Let's proceed to step 8:
87 can be fit into 350 4 times, resulting in a remainder of 2.
Use 4 as the next digit of our solution. 
Result so far: 4750.54
The remainder is 2 after subtracting 348 from 350.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Step 9:
The number 87 fits into 20 0 times, leaving a remainder of 20.
The next digit of our result is 0. 
Result so far: 4750.54
If we take 0 away from 20, we end up with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 10:
When dividing 200 by 87, we get 2 with a remainder of 26.
Write down 2 as next digit of the result. 
Result so far: 4750.5402
If we take 174 away from 200, we end up with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Going ahead to step 11:
The number 87 fits into 260 2 times, leaving a remainder of 86.
The next digit of our result is 2. 
Result so far: 4750.54022
Deduct 174 from 260 and we're left with 86.
Since there are no more digits in the dividend, we add a zero to the remainder making it 860, and continue the process.

Our division results in 4750.54022 with a remaining 8.6e-05.