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

Let's proceed to step 1:
If we divide 5 by 9, we get 0 and a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Bring next digit (8) of the dividend behind the 5 and repeat the process: 58 / 9

Let's proceed to step 2:
When dividing 58 by 9, we get 6 with a remainder of 4.
Write down 6 as next digit of the result. 
Result so far: 6.0
Deduct 54 from 58 and we're left with 4.
Include the next digit (3) from the dividend after 4, then repeat: 43 / 9

Going ahead to step 3:
9 can be fit into 43 4 times, resulting in a remainder of 7.
Write down 4 as next digit of the result. 
Result so far: 64.0
If we take 36 away from 43, we end up with 7.
Append the next digit (7) from the dividend to 7 and continue with: 77 / 9

Advancing to step 4:
The number 9 fits into 77 8 times, leaving a remainder of 5.
Put 8 as the next digit of the answer. 
Result so far: 648.0
If we subtract 72 from 77, we get 5.
Include the next digit (2) from the dividend after 5, then repeat: 52 / 9

Let's proceed to step 5:
9 goes into 52 5 times with a remainder of 7.
Put 5 as the next digit of the answer. 
Result so far: 6485.0
Subtracting 45 from 52 leaves us with 7.
Bring next digit (4) of the dividend behind the 7 and repeat the process: 74 / 9

Let's proceed to step 6:
9 goes into 74 8 times with a remainder of 2.
Record the quotient 8 as the next digit in the result. 
Result so far: 64858.0
Subtract 72 from 74 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Moving on to step 7:
If we divide 20 by 9, we get 2 and a remainder of 2.
The number 2 becomes the next digit in our result. 
Result so far: 64858.2
Subtracting 18 from 20 leaves us with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Step 8:
The number 9 fits into 20 2 times, leaving a remainder of 2.
Put 2 as the next digit of the answer. 
Result so far: 64858.22
The remainder is 2 after subtracting 18 from 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

After the division, we end up with 64858.22 and a remainder of 0.002.