Let's divide 717987 by 9
The aim is to understand the frequency of 9 in 717987.

Let's proceed to step 1:
When dividing 7 by 9, we get 0 with a remainder of 7.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 7, we end up with 7.
Include the next digit (1) from the dividend after 7, then repeat: 71 / 9

On to step 2:
The number 9 fits into 71 7 times, leaving a remainder of 8.
The next digit of our result is 7. 
Result so far: 7.0
Subtract 63 from 71 to get 8.
Append the next digit (7) from the dividend to 8 and continue with: 87 / 9

Let's proceed to step 3:
9 can be fit into 87 9 times, resulting in a remainder of 6.
Use 9 as the next digit of our solution. 
Result so far: 79.0
If we subtract 81 from 87, we get 6.
Bring next digit (9) of the dividend behind the 6 and repeat the process: 69 / 9

Step 4:
69 divided by 9 is 7 with a remainder of 6.
Put 7 as the next digit of the answer. 
Result so far: 797.0
Deduct 63 from 69 and we're left with 6.
Fetch the next digit (8) from the dividend, attach it to 6 and continue: 68 / 9

Advancing to step 5:
If we divide 68 by 9, we get 7 and a remainder of 5.
Use 7 as the next digit of our solution. 
Result so far: 7977.0
Subtracting 63 from 68 leaves us with 5.
Append the next digit (7) from the dividend to 5 and continue with: 57 / 9

On to step 6:
When dividing 57 by 9, we get 6 with a remainder of 3.
Put 6 as the next digit of the answer. 
Result so far: 79776.0
The remainder is 3 after subtracting 54 from 57.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Going ahead to step 7:
If we divide 30 by 9, we get 3 and a remainder of 3.
Put 3 as the next digit of the answer. 
Result so far: 79776.3
If we take 27 away from 30, we end up with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Advancing to step 8:
If we divide 30 by 9, we get 3 and a remainder of 3.
Record the quotient 3 as the next digit in the result. 
Result so far: 79776.33
Subtract 27 from 30 to get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Our division results in 79776.33 with a remaining 0.003.