Let's divide 418338 by 9
The aim is to understand the frequency of 9 in 418338.

Moving on to step 1:
If we divide 4 by 9, we get 0 and a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Include the next digit (1) from the dividend after 4, then repeat: 41 / 9

Going ahead to step 2:
When dividing 41 by 9, we get 4 with a remainder of 5.
Record the quotient 4 as the next digit in the result. 
Result so far: 4.0
If we take 36 away from 41, we end up with 5.
Grab the next digit (8) from the dividend, add it to 5, then carry on: 58 / 9

On to step 3:
9 goes into 58 6 times with a remainder of 4.
Use 6 as the next digit of our solution. 
Result so far: 46.0
If we subtract 54 from 58, we get 4.
Bring next digit (3) of the dividend behind the 4 and repeat the process: 43 / 9

Advancing to step 4:
43 divided by 9 is 4 with a remainder of 7.
Use 4 as the next digit of our solution. 
Result so far: 464.0
If we take 36 away from 43, we end up with 7.
Append the next digit (3) from the dividend to 7 and continue with: 73 / 9

Step 5:
9 goes into 73 8 times with a remainder of 1.
Use 8 as the next digit of our solution. 
Result so far: 4648.0
Deduct 72 from 73 and we're left with 1.
Bring next digit (8) of the dividend behind the 1 and repeat the process: 18 / 9

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

Advancing 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: 46482.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:
9 goes into 0 0 times with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 46482.0
If we subtract 0 from 0, we 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.

The final result is 46482.0 with a remainder of 0.0.