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

Advancing to step 1:
18 can be fit into 3 0 times, resulting in a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Append the next digit (1) from the dividend to 3 and continue with: 31 / 18

On to step 2:
The number 18 fits into 31 1 times, leaving a remainder of 13.
The next digit of our result is 1. 
Result so far: 1.0
The remainder is 13 after subtracting 18 from 31.
Include the next digit (2) from the dividend after 13, then repeat: 132 / 18

Moving on to step 3:
When dividing 132 by 18, we get 7 with a remainder of 6.
Write down 7 as next digit of the result. 
Result so far: 17.0
The remainder is 6 after subtracting 126 from 132.
Fetch the next digit (5) from the dividend, attach it to 6 and continue: 65 / 18

Advancing to step 4:
65 divided by 18 is 3 with a remainder of 11.
Write down 3 as next digit of the result. 
Result so far: 173.0
If we take 54 away from 65, we end up with 11.
Take the next digit (9) from the dividend and append it to 11, then repeat: 119 / 18

Let's proceed to step 5:
When dividing 119 by 18, we get 6 with a remainder of 11.
Put 6 as the next digit of the answer. 
Result so far: 1736.0
The remainder is 11 after subtracting 108 from 119.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Step 6:
The number 18 fits into 110 6 times, leaving a remainder of 2.
The number 6 becomes the next digit in our result. 
Result so far: 1736.6
The remainder is 2 after subtracting 108 from 110.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Let's proceed to step 7:
18 can be fit into 20 1 times, resulting in a remainder of 2.
Put 1 as the next digit of the answer. 
Result so far: 1736.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 8:
18 can be fit into 20 1 times, resulting in a remainder of 2.
The next digit of our result is 1. 
Result so far: 1736.611
The remainder is 2 after subtracting 18 from 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

The quotient of the division is 1736.611, and the remainder is 0.0002.