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

On to step 1:
The number 9 fits into 1 0 times, leaving a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Grab the next digit (7) from the dividend, add it to 1, then carry on: 17 / 9

On to step 2:
If we divide 17 by 9, we get 1 and a remainder of 8.
Write down 1 as next digit of the result. 
Result so far: 1.0
Deduct 9 from 17 and we're left with 8.
Fetch the next digit (0) from the dividend, attach it to 8 and continue: 80 / 9

On to step 3:
9 goes into 80 8 times with a remainder of 8.
The next digit of our result is 8. 
Result so far: 18.0
The remainder is 8 after subtracting 72 from 80.
Append the next digit (9) from the dividend to 8 and continue with: 89 / 9

Advancing to step 4:
89 divided by 9 is 9 with a remainder of 8.
The next digit of our result is 9. 
Result so far: 189.0
If we subtract 81 from 89, we get 8.
Append the next digit (3) from the dividend to 8 and continue with: 83 / 9

Moving on to step 5:
When dividing 83 by 9, we get 9 with a remainder of 2.
The number 9 becomes the next digit in our result. 
Result so far: 1899.0
Subtracting 81 from 83 leaves us with 2.
Fetch the next digit (0) from the dividend, attach it to 2 and continue: 20 / 9

Moving on to step 6:
9 goes into 20 2 times with a remainder of 2.
The number 2 becomes the next digit in our result. 
Result so far: 18992.0
Deduct 18 from 20 and we're left 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.

Moving on to step 7:
20 divided by 9 is 2 with a remainder of 2.
Write down 2 as next digit of the result. 
Result so far: 18992.2
Subtracting 18 from 20 leaves us 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.

Step 8:
9 goes into 20 2 times with a remainder of 2.
Write down 2 as next digit of the result. 
Result so far: 18992.22
Subtract 18 from 20 to 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.

The final result is 18992.22 with a remainder of 0.002.