We're dividing 23271 by 9 
The aim is to understand the frequency of 9 in 23271.

Step 1:
The number 9 fits into 2 0 times, leaving a remainder of 2.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 2, we end up with 2.
Include the next digit (3) from the dividend after 2, then repeat: 23 / 9

Let's proceed to step 2:
23 divided by 9 is 2 with a remainder of 5.
Write down 2 as next digit of the result. 
Result so far: 2.0
The remainder is 5 after subtracting 18 from 23.
Include the next digit (2) from the dividend after 5, then repeat: 52 / 9

Step 3:
The number 9 fits into 52 5 times, leaving a remainder of 7.
Use 5 as the next digit of our solution. 
Result so far: 25.0
If we take 45 away from 52, we end up with 7.
Append the next digit (7) from the dividend to 7 and continue with: 77 / 9

Advancing to step 4:
9 goes into 77 8 times with a remainder of 5.
The number 8 becomes the next digit in our result. 
Result so far: 258.0
Subtracting 72 from 77 leaves us with 5.
Take the next digit (1) from the dividend and append it to 5, then repeat: 51 / 9

Advancing to step 5:
51 divided by 9 is 5 with a remainder of 6.
The next digit of our result is 5. 
Result so far: 2585.0
Deduct 45 from 51 and we're left 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 6:
The number 9 fits into 60 6 times, leaving a remainder of 6.
The number 6 becomes the next digit in our result. 
Result so far: 2585.6
If we subtract 54 from 60, we get 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:
9 goes into 60 6 times with a remainder of 6.
Put 6 as the next digit of the answer. 
Result so far: 2585.66
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.

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