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

Step 1:
18 goes into 5 0 times with a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Fetch the next digit (8) from the dividend, attach it to 5 and continue: 58 / 18

On to step 2:
When dividing 58 by 18, we get 3 with a remainder of 4.
Record the quotient 3 as the next digit in the result. 
Result so far: 3.0
Deduct 54 from 58 and we're left with 4.
Bring next digit (9) of the dividend behind the 4 and repeat the process: 49 / 18

Going ahead to step 3:
The number 18 fits into 49 2 times, leaving a remainder of 13.
The number 2 becomes the next digit in our result. 
Result so far: 32.0
Subtracting 36 from 49 leaves us with 13.
Fetch the next digit (0) from the dividend, attach it to 13 and continue: 130 / 18

Advancing to step 4:
130 divided by 18 is 7 with a remainder of 4.
The number 7 becomes the next digit in our result. 
Result so far: 327.0
The remainder is 4 after subtracting 126 from 130.
Take the next digit (1) from the dividend and append it to 4, then repeat: 41 / 18

Moving on to step 5:
If we divide 41 by 18, we get 2 and a remainder of 5.
Use 2 as the next digit of our solution. 
Result so far: 3272.0
Subtract 36 from 41 to get 5.
Fetch the next digit (2) from the dividend, attach it to 5 and continue: 52 / 18

Step 6:
When dividing 52 by 18, we get 2 with a remainder of 16.
Put 2 as the next digit of the answer. 
Result so far: 32722.0
If we take 36 away from 52, we end up with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Moving on to step 7:
18 can be fit into 160 8 times, resulting in a remainder of 16.
Put 8 as the next digit of the answer. 
Result so far: 32722.8
If we subtract 144 from 160, we get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Going ahead to step 8:
If we divide 160 by 18, we get 8 and a remainder of 16.
The next digit of our result is 8. 
Result so far: 32722.88
If we take 144 away from 160, we end up with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

After the division, we end up with 32722.88 and a remainder of 0.016.