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

Let's proceed to step 1:
If we divide 5 by 18, we get 0 and a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Grab the next digit (6) from the dividend, add it to 5, then carry on: 56 / 18

Let's proceed to step 2:
18 can be fit into 56 3 times, resulting in a remainder of 2.
Record the quotient 3 as the next digit in the result. 
Result so far: 3.0
Subtract 54 from 56 to get 2.
Fetch the next digit (3) from the dividend, attach it to 2 and continue: 23 / 18

Advancing to step 3:
23 divided by 18 is 1 with a remainder of 5.
The next digit of our result is 1. 
Result so far: 31.0
The remainder is 5 after subtracting 18 from 23.
Include the next digit (3) from the dividend after 5, then repeat: 53 / 18

Let's proceed to step 4:
18 goes into 53 2 times with a remainder of 17.
The next digit of our result is 2. 
Result so far: 312.0
Deduct 36 from 53 and we're left with 17.
Grab the next digit (8) from the dividend, add it to 17, then carry on: 178 / 18

Going ahead to step 5:
The number 18 fits into 178 9 times, leaving a remainder of 16.
The number 9 becomes the next digit in our result. 
Result so far: 3129.0
The remainder is 16 after subtracting 162 from 178.
Bring next digit (7) of the dividend behind the 16 and repeat the process: 167 / 18

Moving on to step 6:
If we divide 167 by 18, we get 9 and a remainder of 5.
Record the quotient 9 as the next digit in the result. 
Result so far: 31299.0
If we subtract 162 from 167, we get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Moving on to step 7:
The number 18 fits into 50 2 times, leaving a remainder of 14.
Write down 2 as next digit of the result. 
Result so far: 31299.2
If we take 36 away from 50, we end up with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Moving on to step 8:
The number 18 fits into 140 7 times, leaving a remainder of 14.
The next digit of our result is 7. 
Result so far: 31299.27
Subtracting 126 from 140 leaves us with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Advancing to step 9:
18 goes into 140 7 times with a remainder of 14.
Write down 7 as next digit of the result. 
Result so far: 31299.277
If we take 126 away from 140, we end up with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

After the division, we end up with 31299.277 and a remainder of 0.0014.