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

On to step 1:
5 divided by 9 is 0 with a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Take the next digit (0) from the dividend and append it to 5, then repeat: 50 / 9

Moving on to step 2:
When dividing 50 by 9, we get 5 with a remainder of 5.
Write down 5 as next digit of the result. 
Result so far: 5.0
If we subtract 45 from 50, we get 5.
Grab the next digit (0) from the dividend, add it to 5, then carry on: 50 / 9

Let's proceed to step 3:
If we divide 50 by 9, we get 5 and a remainder of 5.
Write down 5 as next digit of the result. 
Result so far: 55.0
Subtracting 45 from 50 leaves us with 5.
Include the next digit (2) from the dividend after 5, then repeat: 52 / 9

Advancing to step 4:
The number 9 fits into 52 5 times, leaving a remainder of 7.
The next digit of our result is 5. 
Result so far: 555.0
Subtract 45 from 52 to get 7.
Grab the next digit (2) from the dividend, add it to 7, then carry on: 72 / 9

Advancing to step 5:
The number 9 fits into 72 8 times, leaving a remainder of 0.
Write down 8 as next digit of the result. 
Result so far: 5558.0
Subtract 72 from 72 to get 0.
Include the next digit (7) from the dividend after 0, then repeat: 7 / 9

Moving on to step 6:
9 goes into 7 0 times with a remainder of 7.
Use 0 as the next digit of our solution. 
Result so far: 55580.0
Subtracting 0 from 7 leaves us with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

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

Going ahead to step 8:
70 divided by 9 is 7 with a remainder of 7.
Use 7 as the next digit of our solution. 
Result so far: 55580.77
If we take 63 away from 70, we end up with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

The final outcome is 55580.77, with a leftover of 0.007.