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

Moving on to step 1:
9 can be fit into 5 0 times, resulting in a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Append the next digit (0) from the dividend to 5 and continue with: 50 / 9

Going ahead to step 2:
50 divided by 9 is 5 with a remainder of 5.
Record the quotient 5 as the next digit in the result. 
Result so far: 5.0
Subtract 45 from 50 to get 5.
Include the next digit (7) from the dividend after 5, then repeat: 57 / 9

Advancing to step 3:
9 can be fit into 57 6 times, resulting in a remainder of 3.
Record the quotient 6 as the next digit in the result. 
Result so far: 56.0
Subtract 54 from 57 to get 3.
Include the next digit (5) from the dividend after 3, then repeat: 35 / 9

Going ahead to step 4:
9 goes into 35 3 times with a remainder of 8.
The number 3 becomes the next digit in our result. 
Result so far: 563.0
If we take 27 away from 35, we end up with 8.
Grab the next digit (6) from the dividend, add it to 8, then carry on: 86 / 9

Step 5:
9 goes into 86 9 times with a remainder of 5.
The number 9 becomes the next digit in our result. 
Result so far: 5639.0
Subtracting 81 from 86 leaves us with 5.
Bring next digit (3) of the dividend behind the 5 and repeat the process: 53 / 9

Going ahead to step 6:
9 can be fit into 53 5 times, resulting in a remainder of 8.
Write down 5 as next digit of the result. 
Result so far: 56395.0
Subtract 45 from 53 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Going ahead to step 7:
The number 9 fits into 80 8 times, leaving a remainder of 8.
Write down 8 as next digit of the result. 
Result so far: 56395.8
Subtract 72 from 80 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Going ahead to step 8:
If we divide 80 by 9, we get 8 and a remainder of 8.
The next digit of our result is 8. 
Result so far: 56395.88
Deduct 72 from 80 and we're left with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

The quotient of the division is 56395.88, and the remainder is 0.008.