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

Moving on to step 1:
3 divided by 9 is 0 with a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Append the next digit (0) from the dividend to 3 and continue with: 30 / 9

Step 2:
9 can be fit into 30 3 times, resulting in a remainder of 3.
Write down 3 as next digit of the result. 
Result so far: 3.0
If we subtract 27 from 30, we get 3.
Fetch the next digit (5) from the dividend, attach it to 3 and continue: 35 / 9

Advancing to step 3:
35 divided by 9 is 3 with a remainder of 8.
Put 3 as the next digit of the answer. 
Result so far: 33.0
Deduct 27 from 35 and we're left with 8.
Append the next digit (2) from the dividend to 8 and continue with: 82 / 9

Moving on to step 4:
When dividing 82 by 9, we get 9 with a remainder of 1.
Write down 9 as next digit of the result. 
Result so far: 339.0
If we take 81 away from 82, we end up with 1.
Take the next digit (6) from the dividend and append it to 1, then repeat: 16 / 9

Let's proceed to step 5:
When dividing 16 by 9, we get 1 with a remainder of 7.
The number 1 becomes the next digit in our result. 
Result so far: 3391.0
Deduct 9 from 16 and we're left with 7.
Bring next digit (6) of the dividend behind the 7 and repeat the process: 76 / 9

Advancing to step 6:
The number 9 fits into 76 8 times, leaving a remainder of 4.
Record the quotient 8 as the next digit in the result. 
Result so far: 33918.0
Subtracting 72 from 76 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.

Advancing to step 7:
When dividing 40 by 9, we get 4 with a remainder of 4.
The next digit of our result is 4. 
Result so far: 33918.4
Deduct 36 from 40 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 8:
The number 9 fits into 40 4 times, leaving a remainder of 4.
Write down 4 as next digit of the result. 
Result so far: 33918.44
The remainder is 4 after subtracting 36 from 40.
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 33918.44 and a remainder of 0.004.