Let's divide 413945 by 87
The aim is to understand the frequency of 87 in 413945.

Let's proceed to step 1:
87 can be fit into 4 0 times, resulting in a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 4 after subtracting 0 from 4.
Grab the next digit (1) from the dividend, add it to 4, then carry on: 41 / 87

Going ahead to step 2:
41 divided by 87 is 0 with a remainder of 41.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 41 leaves us with 41.
Include the next digit (3) from the dividend after 41, then repeat: 413 / 87

Moving on to step 3:
When dividing 413 by 87, we get 4 with a remainder of 65.
The next digit of our result is 4. 
Result so far: 4.0
If we take 348 away from 413, we end up with 65.
Take the next digit (9) from the dividend and append it to 65, then repeat: 659 / 87

On to step 4:
659 divided by 87 is 7 with a remainder of 50.
Use 7 as the next digit of our solution. 
Result so far: 47.0
The remainder is 50 after subtracting 609 from 659.
Include the next digit (4) from the dividend after 50, then repeat: 504 / 87

Going ahead to step 5:
87 can be fit into 504 5 times, resulting in a remainder of 69.
Put 5 as the next digit of the answer. 
Result so far: 475.0
Deduct 435 from 504 and we're left with 69.
Include the next digit (5) from the dividend after 69, then repeat: 695 / 87

Step 6:
87 goes into 695 7 times with a remainder of 86.
Write down 7 as next digit of the result. 
Result so far: 4757.0
Subtracting 609 from 695 leaves us 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.

Let's proceed to step 7:
87 goes into 860 9 times with a remainder of 77.
Put 9 as the next digit of the answer. 
Result so far: 4757.9
Deduct 783 from 860 and we're left with 77.
Since there are no more digits in the dividend, we add a zero to the remainder making it 770, and continue the process.

Advancing to step 8:
87 goes into 770 8 times with a remainder of 74.
Use 8 as the next digit of our solution. 
Result so far: 4757.98
If we take 696 away from 770, we end up with 74.
Since there are no more digits in the dividend, we add a zero to the remainder making it 740, and continue the process.

Advancing to step 9:
When dividing 740 by 87, we get 8 with a remainder of 44.
The next digit of our result is 8. 
Result so far: 4757.988
Subtract 696 from 740 to get 44.
Since there are no more digits in the dividend, we add a zero to the remainder making it 440, and continue the process.

The final outcome is 4757.988, with a leftover of 0.0044.