We divide 813388 by 9
The aim is to understand the frequency of 9 in 813388.

On to step 1:
When dividing 8 by 9, we get 0 with a remainder of 8.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 8, we get 8.
Append the next digit (1) from the dividend to 8 and continue with: 81 / 9

Let's proceed to step 2:
When dividing 81 by 9, we get 9 with a remainder of 0.
Use 9 as the next digit of our solution. 
Result so far: 9.0
Subtracting 81 from 81 leaves us with 0.
Fetch the next digit (3) from the dividend, attach it to 0 and continue: 3 / 9

Moving on to step 3:
The number 9 fits into 3 0 times, leaving a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 90.0
Subtracting 0 from 3 leaves us with 3.
Bring next digit (3) of the dividend behind the 3 and repeat the process: 33 / 9

Going ahead to step 4:
9 can be fit into 33 3 times, resulting in a remainder of 6.
Write down 3 as next digit of the result. 
Result so far: 903.0
Subtract 27 from 33 to get 6.
Fetch the next digit (8) from the dividend, attach it to 6 and continue: 68 / 9

Advancing to step 5:
68 divided by 9 is 7 with a remainder of 5.
The next digit of our result is 7. 
Result so far: 9037.0
If we take 63 away from 68, we end up with 5.
Bring next digit (8) of the dividend behind the 5 and repeat the process: 58 / 9

Step 6:
58 divided by 9 is 6 with a remainder of 4.
The number 6 becomes the next digit in our result. 
Result so far: 90376.0
Deduct 54 from 58 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Moving on to step 7:
9 goes into 40 4 times with a remainder of 4.
The next digit of our result is 4. 
Result so far: 90376.4
Subtracting 36 from 40 leaves us with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Let's proceed to step 8:
9 can be fit into 40 4 times, resulting in a remainder of 4.
Write down 4 as next digit of the result. 
Result so far: 90376.44
If we subtract 36 from 40, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

After the division, we end up with 90376.44 and a remainder of 0.004.