940842 ÷ 9 
The aim is to understand the frequency of 9 in 940842.

Let's proceed to step 1:
When dividing 9 by 9, we get 1 with a remainder of 0.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Deduct 9 from 9 and we're left with 0.
Take the next digit (4) from the dividend and append it to 0, then repeat: 4 / 9

Moving on to step 2:
4 divided by 9 is 0 with a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 10.0
The remainder is 4 after subtracting 0 from 4.
Include the next digit (0) from the dividend after 4, then repeat: 40 / 9

Step 3:
The number 9 fits into 40 4 times, leaving a remainder of 4.
Record the quotient 4 as the next digit in the result. 
Result so far: 104.0
The remainder is 4 after subtracting 36 from 40.
Bring next digit (8) of the dividend behind the 4 and repeat the process: 48 / 9

Moving on to step 4:
If we divide 48 by 9, we get 5 and a remainder of 3.
Put 5 as the next digit of the answer. 
Result so far: 1045.0
If we take 45 away from 48, we end up with 3.
Take the next digit (4) from the dividend and append it to 3, then repeat: 34 / 9

Advancing to step 5:
9 goes into 34 3 times with a remainder of 7.
Record the quotient 3 as the next digit in the result. 
Result so far: 10453.0
If we take 27 away from 34, we end up with 7.
Grab the next digit (2) from the dividend, add it to 7, then carry on: 72 / 9

On to step 6:
9 can be fit into 72 8 times, resulting in a remainder of 0.
Record the quotient 8 as the next digit in the result. 
Result so far: 104538.0
Subtracting 72 from 72 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

On to step 7:
9 can be fit into 0 0 times, resulting in a remainder of 0.
The next digit of our result is 0. 
Result so far: 104538.0
Deduct 0 from 0 and we're left with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

On to step 8:
0 divided by 9 is 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 104538.0
Subtract 0 from 0 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

In conclusion, the division gives 104538.0 with a balance of 0.0.