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

Advancing to step 1:
When dividing 3 by 9, we get 0 with a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Append the next digit (1) from the dividend to 3 and continue with: 31 / 9

On to step 2:
If we divide 31 by 9, we get 3 and a remainder of 4.
Use 3 as the next digit of our solution. 
Result so far: 3.0
If we subtract 27 from 31, we get 4.
Bring next digit (0) of the dividend behind the 4 and repeat the process: 40 / 9

Going ahead to step 3:
9 goes into 40 4 times with a remainder of 4.
Write down 4 as next digit of the result. 
Result so far: 34.0
If we subtract 36 from 40, we get 4.
Take the next digit (7) from the dividend and append it to 4, then repeat: 47 / 9

Advancing to step 4:
47 divided by 9 is 5 with a remainder of 2.
Put 5 as the next digit of the answer. 
Result so far: 345.0
If we subtract 45 from 47, we get 2.
Fetch the next digit (2) from the dividend, attach it to 2 and continue: 22 / 9

Advancing to step 5:
If we divide 22 by 9, we get 2 and a remainder of 4.
The next digit of our result is 2. 
Result so far: 3452.0
The remainder is 4 after subtracting 18 from 22.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 9

Moving on to step 6:
If we divide 40 by 9, we get 4 and a remainder of 4.
The next digit of our result is 4. 
Result so far: 34524.0
If we take 36 away from 40, we end up with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Advancing to step 7:
The number 9 fits into 40 4 times, leaving a remainder of 4.
The next digit of our result is 4. 
Result so far: 34524.4
Subtracting 36 from 40 leaves us with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

On to step 8:
When dividing 40 by 9, we get 4 with a remainder of 4.
Put 4 as the next digit of the answer. 
Result so far: 34524.44
Subtracting 36 from 40 leaves us with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Our division results in 34524.44 with a remaining 0.004.