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

Moving on to step 1:
The number 31 fits into 2 0 times, leaving a remainder of 2.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 2, we end up with 2.
Include the next digit (1) from the dividend after 2, then repeat: 21 / 31

Going ahead to step 2:
When dividing 21 by 31, we get 0 with a remainder of 21.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 21, we get 21.
Grab the next digit (8) from the dividend, add it to 21, then carry on: 218 / 31

Moving on to step 3:
31 can be fit into 218 7 times, resulting in a remainder of 1.
The number 7 becomes the next digit in our result. 
Result so far: 7.0
If we take 217 away from 218, we end up with 1.
Grab the next digit (8) from the dividend, add it to 1, then carry on: 18 / 31

Going ahead to step 4:
18 divided by 31 is 0 with a remainder of 18.
Write down 0 as next digit of the result. 
Result so far: 70.0
If we take 0 away from 18, we end up with 18.
Append the next digit (2) from the dividend to 18 and continue with: 182 / 31

Moving on to step 5:
31 goes into 182 5 times with a remainder of 27.
Record the quotient 5 as the next digit in the result. 
Result so far: 705.0
If we subtract 155 from 182, we get 27.
Grab the next digit (5) from the dividend, add it to 27, then carry on: 275 / 31

Moving on to step 6:
The number 31 fits into 275 8 times, leaving a remainder of 27.
Put 8 as the next digit of the answer. 
Result so far: 7058.0
If we take 248 away from 275, we end up with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Moving on to step 7:
The number 31 fits into 270 8 times, leaving a remainder of 22.
The number 8 becomes the next digit in our result. 
Result so far: 7058.8
If we take 248 away from 270, we end up with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Step 8:
When dividing 220 by 31, we get 7 with a remainder of 3.
Use 7 as the next digit of our solution. 
Result so far: 7058.87
Subtract 217 from 220 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 9:
31 goes into 30 0 times with a remainder of 30.
Use 0 as the next digit of our solution. 
Result so far: 7058.87
Subtracting 0 from 30 leaves us with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Advancing to step 10:
300 divided by 31 is 9 with a remainder of 21.
The next digit of our result is 9. 
Result so far: 7058.8709
If we subtract 279 from 300, we 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.

On to step 11:
The number 31 fits into 210 6 times, leaving a remainder of 24.
The number 6 becomes the next digit in our result. 
Result so far: 7058.87096
Deduct 186 from 210 and we're left with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Going ahead to step 12:
240 divided by 31 is 7 with a remainder of 23.
Write down 7 as next digit of the result. 
Result so far: 7058.870967
Subtract 217 from 240 to get 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Let's proceed to step 13:
When dividing 230 by 31, we get 7 with a remainder of 13.
Put 7 as the next digit of the answer. 
Result so far: 7058.8709677
Subtract 217 from 230 to get 13.
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 outcome is 7058.8709677, with a leftover of 1.3e-07.