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

Step 1:
The number 9 fits into 4 0 times, leaving a remainder of 4.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 4 and we're left with 4.
Append the next digit (7) from the dividend to 4 and continue with: 47 / 9

Going ahead to step 2:
The number 9 fits into 47 5 times, leaving a remainder of 2.
The next digit of our result is 5. 
Result so far: 5.0
If we take 45 away from 47, we end up with 2.
Grab the next digit (8) from the dividend, add it to 2, then carry on: 28 / 9

On to step 3:
28 divided by 9 is 3 with a remainder of 1.
Record the quotient 3 as the next digit in the result. 
Result so far: 53.0
Subtracting 27 from 28 leaves us with 1.
Fetch the next digit (1) from the dividend, attach it to 1 and continue: 11 / 9

Going ahead to step 4:
When dividing 11 by 9, we get 1 with a remainder of 2.
Record the quotient 1 as the next digit in the result. 
Result so far: 531.0
Deduct 9 from 11 and we're left with 2.
Include the next digit (1) from the dividend after 2, then repeat: 21 / 9

Moving on to step 5:
9 goes into 21 2 times with a remainder of 3.
Put 2 as the next digit of the answer. 
Result so far: 5312.0
Subtracting 18 from 21 leaves us with 3.
Append the next digit (6) from the dividend to 3 and continue with: 36 / 9

Step 6:
9 goes into 36 4 times with a remainder of 0.
The next digit of our result is 4. 
Result so far: 53124.0
If we take 36 away from 36, we end up 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.

Advancing to step 7:
9 goes into 0 0 times with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 53124.0
If we take 0 away from 0, we end up 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.

Going ahead to step 8:
When dividing 0 by 9, we get 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 53124.0
If we take 0 away from 0, we end up 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.

The quotient of the division is 53124.0, and the remainder is 0.0.