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

Advancing to step 1:
2 divided by 9 is 0 with a remainder of 2.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 2 after subtracting 0 from 2.
Fetch the next digit (3) from the dividend, attach it to 2 and continue: 23 / 9

Let's proceed to step 2:
The number 9 fits into 23 2 times, leaving a remainder of 5.
Write down 2 as next digit of the result. 
Result so far: 2.0
If we subtract 18 from 23, we get 5.
Take the next digit (9) from the dividend and append it to 5, then repeat: 59 / 9

Step 3:
The number 9 fits into 59 6 times, leaving a remainder of 5.
Put 6 as the next digit of the answer. 
Result so far: 26.0
Subtract 54 from 59 to get 5.
Append the next digit (2) from the dividend to 5 and continue with: 52 / 9

On to step 4:
If we divide 52 by 9, we get 5 and a remainder of 7.
Write down 5 as next digit of the result. 
Result so far: 265.0
If we take 45 away from 52, we end up with 7.
Include the next digit (5) from the dividend after 7, then repeat: 75 / 9

Going ahead to step 5:
The number 9 fits into 75 8 times, leaving a remainder of 3.
Record the quotient 8 as the next digit in the result. 
Result so far: 2658.0
Deduct 72 from 75 and we're left with 3.
Fetch the next digit (8) from the dividend, attach it to 3 and continue: 38 / 9

Step 6:
9 can be fit into 38 4 times, resulting in a remainder of 2.
Use 4 as the next digit of our solution. 
Result so far: 26584.0
If we subtract 36 from 38, we get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

On to step 7:
9 can be fit into 20 2 times, resulting in a remainder of 2.
Write down 2 as next digit of the result. 
Result so far: 26584.2
If we take 18 away from 20, we end up with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Advancing to step 8:
The number 9 fits into 20 2 times, leaving a remainder of 2.
The next digit of our result is 2. 
Result so far: 26584.22
The remainder is 2 after subtracting 18 from 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

The quotient of the division is 26584.22, and the remainder is 0.002.