559785 divided by 18 
The aim is to understand the frequency of 18 in 559785.

Advancing to step 1:
18 can be fit into 5 0 times, resulting in a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Fetch the next digit (5) from the dividend, attach it to 5 and continue: 55 / 18

Moving on to step 2:
18 can be fit into 55 3 times, resulting in a remainder of 1.
Record the quotient 3 as the next digit in the result. 
Result so far: 3.0
If we subtract 54 from 55, we get 1.
Fetch the next digit (9) from the dividend, attach it to 1 and continue: 19 / 18

Moving on to step 3:
When dividing 19 by 18, we get 1 with a remainder of 1.
Use 1 as the next digit of our solution. 
Result so far: 31.0
Subtract 18 from 19 to get 1.
Take the next digit (7) from the dividend and append it to 1, then repeat: 17 / 18

Advancing to step 4:
18 can be fit into 17 0 times, resulting in a remainder of 17.
Put 0 as the next digit of the answer. 
Result so far: 310.0
Deduct 0 from 17 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:
178 divided by 18 is 9 with a remainder of 16.
The number 9 becomes the next digit in our result. 
Result so far: 3109.0
Deduct 162 from 178 and we're left with 16.
Include the next digit (5) from the dividend after 16, then repeat: 165 / 18

Going ahead to step 6:
165 divided by 18 is 9 with a remainder of 3.
The number 9 becomes the next digit in our result. 
Result so far: 31099.0
Subtract 162 from 165 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.

Advancing to step 7:
The number 18 fits into 30 1 times, leaving a remainder of 12.
The next digit of our result is 1. 
Result so far: 31099.1
Subtract 18 from 30 to get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Step 8:
When dividing 120 by 18, we get 6 with a remainder of 12.
The next digit of our result is 6. 
Result so far: 31099.16
If we take 108 away from 120, we end up with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Advancing to step 9:
If we divide 120 by 18, we get 6 and a remainder of 12.
Use 6 as the next digit of our solution. 
Result so far: 31099.166
Subtract 108 from 120 to get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Our division results in 31099.166 with a remaining 0.0012.