We look at the division of 87401 by 9 
The aim is to understand the frequency of 9 in 87401.

Moving on to step 1:
8 divided by 9 is 0 with a remainder of 8.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 8 to get 8.
Include the next digit (7) from the dividend after 8, then repeat: 87 / 9

Advancing to step 2:
The number 9 fits into 87 9 times, leaving a remainder of 6.
The number 9 becomes the next digit in our result. 
Result so far: 9.0
The remainder is 6 after subtracting 81 from 87.
Take the next digit (4) from the dividend and append it to 6, then repeat: 64 / 9

Step 3:
The number 9 fits into 64 7 times, leaving a remainder of 1.
The next digit of our result is 7. 
Result so far: 97.0
Deduct 63 from 64 and we're left with 1.
Append the next digit (0) from the dividend to 1 and continue with: 10 / 9

Let's proceed to step 4:
10 divided by 9 is 1 with a remainder of 1.
Write down 1 as next digit of the result. 
Result so far: 971.0
If we subtract 9 from 10, we get 1.
Append the next digit (1) from the dividend to 1 and continue with: 11 / 9

Let's proceed to step 5:
9 can be fit into 11 1 times, resulting in a remainder of 2.
The number 1 becomes the next digit in our result. 
Result so far: 9711.0
Subtract 9 from 11 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Advancing to step 6:
9 can be fit into 20 2 times, resulting in a remainder of 2.
Record the quotient 2 as the next digit in the result. 
Result so far: 9711.2
The remainder is 2 after subtracting 18 from 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Going ahead to step 7:
20 divided by 9 is 2 with a remainder of 2.
Record the quotient 2 as the next digit in the result. 
Result so far: 9711.22
Deduct 18 from 20 and we're left with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

The final result is 9711.22 with a remainder of 0.002.