306771 divided by 9 
The aim is to understand the frequency of 9 in 306771.

Moving on to step 1:
If we divide 3 by 9, we get 0 and a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Append the next digit (0) from the dividend to 3 and continue with: 30 / 9

Moving on to step 2:
The number 9 fits into 30 3 times, leaving a remainder of 3.
Put 3 as the next digit of the answer. 
Result so far: 3.0
If we subtract 27 from 30, we get 3.
Include the next digit (6) from the dividend after 3, then repeat: 36 / 9

On to step 3:
9 can be fit into 36 4 times, resulting in a remainder of 0.
The next digit of our result is 4. 
Result so far: 34.0
Subtracting 36 from 36 leaves us with 0.
Include the next digit (7) from the dividend after 0, then repeat: 7 / 9

Advancing to step 4:
The number 9 fits into 7 0 times, leaving a remainder of 7.
The number 0 becomes the next digit in our result. 
Result so far: 340.0
The remainder is 7 after subtracting 0 from 7.
Grab the next digit (7) from the dividend, add it to 7, then carry on: 77 / 9

Going ahead to step 5:
If we divide 77 by 9, we get 8 and a remainder of 5.
Put 8 as the next digit of the answer. 
Result so far: 3408.0
Subtracting 72 from 77 leaves us with 5.
Append the next digit (1) from the dividend to 5 and continue with: 51 / 9

Advancing to step 6:
9 can be fit into 51 5 times, resulting in a remainder of 6.
Record the quotient 5 as the next digit in the result. 
Result so far: 34085.0
If we take 45 away from 51, we end up with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Step 7:
60 divided by 9 is 6 with a remainder of 6.
Record the quotient 6 as the next digit in the result. 
Result so far: 34085.6
Subtracting 54 from 60 leaves us with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Let's proceed to step 8:
9 can be fit into 60 6 times, resulting in a remainder of 6.
The next digit of our result is 6. 
Result so far: 34085.66
The remainder is 6 after subtracting 54 from 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

The final outcome is 34085.66, with a leftover of 0.006.