We're dividing 974589 by 18 
The aim is to understand the frequency of 18 in 974589.

Going ahead to step 1:
9 divided by 18 is 0 with a remainder of 9.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 9, we end up with 9.
Grab the next digit (7) from the dividend, add it to 9, then carry on: 97 / 18

Step 2:
18 can be fit into 97 5 times, resulting in a remainder of 7.
The number 5 becomes the next digit in our result. 
Result so far: 5.0
If we subtract 90 from 97, we get 7.
Take the next digit (4) from the dividend and append it to 7, then repeat: 74 / 18

On to step 3:
18 can be fit into 74 4 times, resulting in a remainder of 2.
Write down 4 as next digit of the result. 
Result so far: 54.0
Subtract 72 from 74 to get 2.
Append the next digit (5) from the dividend to 2 and continue with: 25 / 18

Step 4:
The number 18 fits into 25 1 times, leaving a remainder of 7.
The number 1 becomes the next digit in our result. 
Result so far: 541.0
If we subtract 18 from 25, we get 7.
Bring next digit (8) of the dividend behind the 7 and repeat the process: 78 / 18

Let's proceed to step 5:
When dividing 78 by 18, we get 4 with a remainder of 6.
The number 4 becomes the next digit in our result. 
Result so far: 5414.0
The remainder is 6 after subtracting 72 from 78.
Append the next digit (9) from the dividend to 6 and continue with: 69 / 18

Let's proceed to step 6:
18 can be fit into 69 3 times, resulting in a remainder of 15.
Use 3 as the next digit of our solution. 
Result so far: 54143.0
If we subtract 54 from 69, we get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Let's proceed to step 7:
18 can be fit into 150 8 times, resulting in a remainder of 6.
Put 8 as the next digit of the answer. 
Result so far: 54143.8
If we take 144 away from 150, we end up with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Let's proceed to step 8:
60 divided by 18 is 3 with a remainder of 6.
Use 3 as the next digit of our solution. 
Result so far: 54143.83
Deduct 54 from 60 and we're left with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Step 9:
18 goes into 60 3 times with a remainder of 6.
The next digit of our result is 3. 
Result so far: 54143.833
If we subtract 54 from 60, we get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Our division results in 54143.833 with a remaining 0.0006.