We look at the division of 945713 by 18 
The aim is to understand the frequency of 18 in 945713.

Step 1:
The number 18 fits into 9 0 times, leaving a remainder of 9.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 9 leaves us with 9.
Append the next digit (4) from the dividend to 9 and continue with: 94 / 18

Step 2:
If we divide 94 by 18, we get 5 and a remainder of 4.
Put 5 as the next digit of the answer. 
Result so far: 5.0
The remainder is 4 after subtracting 90 from 94.
Grab the next digit (5) from the dividend, add it to 4, then carry on: 45 / 18

Moving on to step 3:
The number 18 fits into 45 2 times, leaving a remainder of 9.
Write down 2 as next digit of the result. 
Result so far: 52.0
Subtracting 36 from 45 leaves us with 9.
Include the next digit (7) from the dividend after 9, then repeat: 97 / 18

Going ahead to step 4:
The number 18 fits into 97 5 times, leaving a remainder of 7.
Put 5 as the next digit of the answer. 
Result so far: 525.0
Deduct 90 from 97 and we're left with 7.
Append the next digit (1) from the dividend to 7 and continue with: 71 / 18

Moving on to step 5:
18 goes into 71 3 times with a remainder of 17.
Write down 3 as next digit of the result. 
Result so far: 5253.0
Deduct 54 from 71 and we're left with 17.
Bring next digit (3) of the dividend behind the 17 and repeat the process: 173 / 18

Advancing to step 6:
173 divided by 18 is 9 with a remainder of 11.
The number 9 becomes the next digit in our result. 
Result so far: 52539.0
If we take 162 away from 173, we end up with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

On to step 7:
110 divided by 18 is 6 with a remainder of 2.
Use 6 as the next digit of our solution. 
Result so far: 52539.6
If we subtract 108 from 110, we 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 8:
When dividing 20 by 18, we get 1 with a remainder of 2.
The next digit of our result is 1. 
Result so far: 52539.61
If we subtract 18 from 20, we 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.

Step 9:
If we divide 20 by 18, we get 1 and a remainder of 2.
Use 1 as the next digit of our solution. 
Result so far: 52539.611
If we take 18 away from 20, we end up 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.

The final outcome is 52539.611, with a leftover of 0.0002.