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

Going ahead to step 1:
9 can be fit into 9 1 times, resulting in a remainder of 0.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Subtracting 9 from 9 leaves us with 0.
Grab the next digit (4) from the dividend, add it to 0, then carry on: 4 / 9

Going ahead to step 2:
9 can be fit into 4 0 times, resulting in a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 10.0
If we take 0 away from 4, we end up with 4.
Grab the next digit (6) from the dividend, add it to 4, then carry on: 46 / 9

On to step 3:
9 can be fit into 46 5 times, resulting in a remainder of 1.
Record the quotient 5 as the next digit in the result. 
Result so far: 105.0
Subtract 45 from 46 to get 1.
Bring next digit (9) of the dividend behind the 1 and repeat the process: 19 / 9

Advancing to step 4:
The number 9 fits into 19 2 times, leaving a remainder of 1.
Write down 2 as next digit of the result. 
Result so far: 1052.0
Subtracting 18 from 19 leaves us with 1.
Append the next digit (9) from the dividend to 1 and continue with: 19 / 9

Going ahead to step 5:
The number 9 fits into 19 2 times, leaving a remainder of 1.
The number 2 becomes the next digit in our result. 
Result so far: 10522.0
If we take 18 away from 19, we end up with 1.
Append the next digit (7) from the dividend to 1 and continue with: 17 / 9

Advancing to step 6:
9 can be fit into 17 1 times, resulting in a remainder of 8.
The number 1 becomes the next digit in our result. 
Result so far: 105221.0
The remainder is 8 after subtracting 9 from 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Going ahead to step 7:
When dividing 80 by 9, we get 8 with a remainder of 8.
Use 8 as the next digit of our solution. 
Result so far: 105221.8
Deduct 72 from 80 and we're left with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Advancing to step 8:
When dividing 80 by 9, we get 8 with a remainder of 8.
Record the quotient 8 as the next digit in the result. 
Result so far: 105221.88
The remainder is 8 after subtracting 72 from 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

The final outcome is 105221.88, with a leftover of 0.008.