We look at the division of 252297 by 31 
The aim is to understand the frequency of 31 in 252297.

Advancing to step 1:
When dividing 2 by 31, we get 0 with a remainder of 2.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 2 and we're left with 2.
Grab the next digit (5) from the dividend, add it to 2, then carry on: 25 / 31

Advancing to step 2:
When dividing 25 by 31, we get 0 with a remainder of 25.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 25, we end up with 25.
Append the next digit (2) from the dividend to 25 and continue with: 252 / 31

Advancing to step 3:
31 can be fit into 252 8 times, resulting in a remainder of 4.
The next digit of our result is 8. 
Result so far: 8.0
If we take 248 away from 252, we end up with 4.
Include the next digit (2) from the dividend after 4, then repeat: 42 / 31

Going ahead to step 4:
The number 31 fits into 42 1 times, leaving a remainder of 11.
The number 1 becomes the next digit in our result. 
Result so far: 81.0
Subtract 31 from 42 to get 11.
Append the next digit (9) from the dividend to 11 and continue with: 119 / 31

Step 5:
31 goes into 119 3 times with a remainder of 26.
Use 3 as the next digit of our solution. 
Result so far: 813.0
Subtracting 93 from 119 leaves us with 26.
Take the next digit (7) from the dividend and append it to 26, then repeat: 267 / 31

On to step 6:
31 goes into 267 8 times with a remainder of 19.
The next digit of our result is 8. 
Result so far: 8138.0
If we subtract 248 from 267, we get 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Moving on to step 7:
31 goes into 190 6 times with a remainder of 4.
Put 6 as the next digit of the answer. 
Result so far: 8138.6
If we subtract 186 from 190, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

On to step 8:
When dividing 40 by 31, we get 1 with a remainder of 9.
Put 1 as the next digit of the answer. 
Result so far: 8138.61
The remainder is 9 after subtracting 31 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Going ahead to step 9:
31 can be fit into 90 2 times, resulting in a remainder of 28.
Use 2 as the next digit of our solution. 
Result so far: 8138.612
The remainder is 28 after subtracting 62 from 90.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

On to step 10:
31 goes into 280 9 times with a remainder of 1.
The number 9 becomes the next digit in our result. 
Result so far: 8138.6129
If we take 279 away from 280, we end up with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Let's proceed to step 11:
10 divided by 31 is 0 with a remainder of 10.
The number 0 becomes the next digit in our result. 
Result so far: 8138.6129
Deduct 0 from 10 and we're left with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

On to step 12:
100 divided by 31 is 3 with a remainder of 7.
Use 3 as the next digit of our solution. 
Result so far: 8138.612903
If we subtract 93 from 100, we get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Advancing to step 13:
31 goes into 70 2 times with a remainder of 8.
The number 2 becomes the next digit in our result. 
Result so far: 8138.6129032
Subtracting 62 from 70 leaves us with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

On to step 14:
If we divide 80 by 31, we get 2 and a remainder of 18.
Use 2 as the next digit of our solution. 
Result so far: 8138.61290322
Deduct 62 from 80 and we're left with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

The quotient of the division is 8138.61290322, and the remainder is 1.8e-08.