Let's divide 223788 by 31
The aim is to understand the frequency of 31 in 223788.

On to step 1:
When dividing 2 by 31, we get 0 with a remainder of 2.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 2, we end up with 2.
Take the next digit (2) from the dividend and append it to 2, then repeat: 22 / 31

Advancing to step 2:
31 goes into 22 0 times with a remainder of 22.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 22, we get 22.
Take the next digit (3) from the dividend and append it to 22, then repeat: 223 / 31

Let's proceed to step 3:
31 goes into 223 7 times with a remainder of 6.
Put 7 as the next digit of the answer. 
Result so far: 7.0
If we subtract 217 from 223, we get 6.
Append the next digit (7) from the dividend to 6 and continue with: 67 / 31

Going ahead to step 4:
When dividing 67 by 31, we get 2 with a remainder of 5.
Use 2 as the next digit of our solution. 
Result so far: 72.0
If we take 62 away from 67, we end up with 5.
Append the next digit (8) from the dividend to 5 and continue with: 58 / 31

Going ahead to step 5:
If we divide 58 by 31, we get 1 and a remainder of 27.
Write down 1 as next digit of the result. 
Result so far: 721.0
If we subtract 31 from 58, we get 27.
Take the next digit (8) from the dividend and append it to 27, then repeat: 278 / 31

Let's proceed to step 6:
The number 31 fits into 278 8 times, leaving a remainder of 30.
Record the quotient 8 as the next digit in the result. 
Result so far: 7218.0
If we subtract 248 from 278, we get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Step 7:
When dividing 300 by 31, we get 9 with a remainder of 21.
Put 9 as the next digit of the answer. 
Result so far: 7218.9
Subtract 279 from 300 to get 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Advancing to step 8:
31 goes into 210 6 times with a remainder of 24.
Put 6 as the next digit of the answer. 
Result so far: 7218.96
If we subtract 186 from 210, we get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Step 9:
240 divided by 31 is 7 with a remainder of 23.
Write down 7 as next digit of the result. 
Result so far: 7218.967
Subtracting 217 from 240 leaves us with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Going ahead to step 10:
31 can be fit into 230 7 times, resulting in a remainder of 13.
The next digit of our result is 7. 
Result so far: 7218.9677
The remainder is 13 after subtracting 217 from 230.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

The final result is 7218.9677 with a remainder of 0.00013.