Let's divide 239166 by 9
The aim is to understand the frequency of 9 in 239166.

Moving on to step 1:
If we divide 2 by 9, we get 0 and 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.
Take the next digit (3) from the dividend and append it to 2, then repeat: 23 / 9

Advancing to step 2:
When dividing 23 by 9, we get 2 with a remainder of 5.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
The remainder is 5 after subtracting 18 from 23.
Fetch the next digit (9) from the dividend, attach it to 5 and continue: 59 / 9

Step 3:
If we divide 59 by 9, we get 6 and a remainder of 5.
Record the quotient 6 as the next digit in the result. 
Result so far: 26.0
The remainder is 5 after subtracting 54 from 59.
Take the next digit (1) from the dividend and append it to 5, then repeat: 51 / 9

On to step 4:
9 goes into 51 5 times with a remainder of 6.
Write down 5 as next digit of the result. 
Result so far: 265.0
Subtracting 45 from 51 leaves us with 6.
Fetch the next digit (6) from the dividend, attach it to 6 and continue: 66 / 9

Moving on to step 5:
9 can be fit into 66 7 times, resulting in a remainder of 3.
Write down 7 as next digit of the result. 
Result so far: 2657.0
If we subtract 63 from 66, we get 3.
Include the next digit (6) from the dividend after 3, then repeat: 36 / 9

Advancing to step 6:
The number 9 fits into 36 4 times, leaving a remainder of 0.
Put 4 as the next digit of the answer. 
Result so far: 26574.0
If we subtract 36 from 36, we get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Step 7:
When dividing 0 by 9, we get 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 26574.0
If we subtract 0 from 0, we get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

On to step 8:
9 goes into 0 0 times with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 26574.0
If we take 0 away from 0, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The final result is 26574.0 with a remainder of 0.0.