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

On to step 1:
31 can be fit into 2 0 times, resulting in a remainder of 2.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 2 to get 2.
Take the next digit (9) from the dividend and append it to 2, then repeat: 29 / 31

Advancing to step 2:
31 can be fit into 29 0 times, resulting in a remainder of 29.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 29 after subtracting 0 from 29.
Append the next digit (3) from the dividend to 29 and continue with: 293 / 31

Let's proceed to step 3:
When dividing 293 by 31, we get 9 with a remainder of 14.
The next digit of our result is 9. 
Result so far: 9.0
Subtract 279 from 293 to get 14.
Grab the next digit (5) from the dividend, add it to 14, then carry on: 145 / 31

Going ahead to step 4:
145 divided by 31 is 4 with a remainder of 21.
The number 4 becomes the next digit in our result. 
Result so far: 94.0
If we subtract 124 from 145, we get 21.
Take the next digit (6) from the dividend and append it to 21, then repeat: 216 / 31

On to step 5:
The number 31 fits into 216 6 times, leaving a remainder of 30.
Write down 6 as next digit of the result. 
Result so far: 946.0
Deduct 186 from 216 and we're left with 30.
Grab the next digit (4) from the dividend, add it to 30, then carry on: 304 / 31

Moving on to step 6:
If we divide 304 by 31, we get 9 and a remainder of 25.
The number 9 becomes the next digit in our result. 
Result so far: 9469.0
If we take 279 away from 304, we end up with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Moving on to step 7:
When dividing 250 by 31, we get 8 with a remainder of 2.
Put 8 as the next digit of the answer. 
Result so far: 9469.8
Deduct 248 from 250 and we're left with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Going ahead to step 8:
When dividing 20 by 31, we get 0 with a remainder of 20.
The number 0 becomes the next digit in our result. 
Result so far: 9469.8
Subtracting 0 from 20 leaves us with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Step 9:
200 divided by 31 is 6 with a remainder of 14.
Put 6 as the next digit of the answer. 
Result so far: 9469.806
If we subtract 186 from 200, we get 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Step 10:
If we divide 140 by 31, we get 4 and a remainder of 16.
Write down 4 as next digit of the result. 
Result so far: 9469.8064
Deduct 124 from 140 and we're left 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.

Advancing to step 11:
31 can be fit into 160 5 times, resulting in a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 9469.80645
Deduct 155 from 160 and we're left with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Advancing to step 12:
If we divide 50 by 31, we get 1 and a remainder of 19.
Record the quotient 1 as the next digit in the result. 
Result so far: 9469.806451
Subtract 31 from 50 to 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 13:
31 goes into 190 6 times with a remainder of 4.
Put 6 as the next digit of the answer. 
Result so far: 9469.8064516
If we take 186 away from 190, we end up with 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 14:
When dividing 40 by 31, we get 1 with a remainder of 9.
Record the quotient 1 as the next digit in the result. 
Result so far: 9469.80645161
Subtracting 31 from 40 leaves us with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

After the division, we end up with 9469.80645161 and a remainder of 9e-09.