We look at the division of 807845 by 9 
The aim is to understand the frequency of 9 in 807845.

On to step 1:
If we divide 8 by 9, we get 0 and a remainder of 8.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 8 after subtracting 0 from 8.
Take the next digit (0) from the dividend and append it to 8, then repeat: 80 / 9

Step 2:
When dividing 80 by 9, we get 8 with a remainder of 8.
The number 8 becomes the next digit in our result. 
Result so far: 8.0
Deduct 72 from 80 and we're left with 8.
Fetch the next digit (7) from the dividend, attach it to 8 and continue: 87 / 9

Going ahead to step 3:
The number 9 fits into 87 9 times, leaving a remainder of 6.
Use 9 as the next digit of our solution. 
Result so far: 89.0
Subtract 81 from 87 to get 6.
Take the next digit (8) from the dividend and append it to 6, then repeat: 68 / 9

Moving on to step 4:
9 goes into 68 7 times with a remainder of 5.
Use 7 as the next digit of our solution. 
Result so far: 897.0
The remainder is 5 after subtracting 63 from 68.
Append the next digit (4) from the dividend to 5 and continue with: 54 / 9

On to step 5:
54 divided by 9 is 6 with a remainder of 0.
Put 6 as the next digit of the answer. 
Result so far: 8976.0
The remainder is 0 after subtracting 54 from 54.
Append the next digit (5) from the dividend to 0 and continue with: 5 / 9

On to step 6:
9 goes into 5 0 times with a remainder of 5.
The next digit of our result is 0. 
Result so far: 89760.0
If we subtract 0 from 5, we get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Moving on to step 7:
50 divided by 9 is 5 with a remainder of 5.
The next digit of our result is 5. 
Result so far: 89760.5
The remainder is 5 after subtracting 45 from 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Step 8:
If we divide 50 by 9, we get 5 and a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 89760.55
Subtract 45 from 50 to get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

The quotient of the division is 89760.55, and the remainder is 0.005.