504108 divided by 9 
The aim is to understand the frequency of 9 in 504108.

Going ahead to step 1:
When dividing 5 by 9, we get 0 with a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Fetch the next digit (0) from the dividend, attach it to 5 and continue: 50 / 9

Going ahead to step 2:
50 divided by 9 is 5 with a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 5.0
If we take 45 away from 50, we end up with 5.
Append the next digit (4) from the dividend to 5 and continue with: 54 / 9

Let's proceed to step 3:
When dividing 54 by 9, we get 6 with a remainder of 0.
Put 6 as the next digit of the answer. 
Result so far: 56.0
The remainder is 0 after subtracting 54 from 54.
Include the next digit (1) from the dividend after 0, then repeat: 1 / 9

On to step 4:
1 divided by 9 is 0 with a remainder of 1.
The next digit of our result is 0. 
Result so far: 560.0
Subtracting 0 from 1 leaves us with 1.
Grab the next digit (0) from the dividend, add it to 1, then carry on: 10 / 9

Step 5:
9 goes into 10 1 times with a remainder of 1.
Record the quotient 1 as the next digit in the result. 
Result so far: 5601.0
If we subtract 9 from 10, we get 1.
Fetch the next digit (8) from the dividend, attach it to 1 and continue: 18 / 9

Going ahead to step 6:
9 can be fit into 18 2 times, resulting in a remainder of 0.
Use 2 as the next digit of our solution. 
Result so far: 56012.0
Subtract 18 from 18 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.

On to step 7:
The number 9 fits into 0 0 times, leaving a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 56012.0
Subtracting 0 from 0 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 8:
9 goes into 0 0 times with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 56012.0
Subtracting 0 from 0 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.

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