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

Going ahead to step 1:
When dividing 2 by 31, we get 0 with a remainder of 2.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 2, we end up with 2.
Take the next digit (3) from the dividend and append it to 2, then repeat: 23 / 31

Step 2:
When dividing 23 by 31, we get 0 with a remainder of 23.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 23 after subtracting 0 from 23.
Grab the next digit (9) from the dividend, add it to 23, then carry on: 239 / 31

Advancing to step 3:
31 can be fit into 239 7 times, resulting in a remainder of 22.
The next digit of our result is 7. 
Result so far: 7.0
If we subtract 217 from 239, we get 22.
Grab the next digit (7) from the dividend, add it to 22, then carry on: 227 / 31

Moving on to step 4:
31 goes into 227 7 times with a remainder of 10.
Put 7 as the next digit of the answer. 
Result so far: 77.0
Subtract 217 from 227 to get 10.
Grab the next digit (1) from the dividend, add it to 10, then carry on: 101 / 31

Going ahead to step 5:
101 divided by 31 is 3 with a remainder of 8.
The number 3 becomes the next digit in our result. 
Result so far: 773.0
Deduct 93 from 101 and we're left with 8.
Take the next digit (2) from the dividend and append it to 8, then repeat: 82 / 31

On to step 6:
When dividing 82 by 31, we get 2 with a remainder of 20.
The number 2 becomes the next digit in our result. 
Result so far: 7732.0
If we subtract 62 from 82, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Advancing to step 7:
If we divide 200 by 31, we get 6 and a remainder of 14.
The number 6 becomes the next digit in our result. 
Result so far: 7732.6
Subtract 186 from 200 to 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.

Going ahead to step 8:
31 can be fit into 140 4 times, resulting in a remainder of 16.
The number 4 becomes the next digit in our result. 
Result so far: 7732.64
The remainder is 16 after subtracting 124 from 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Step 9:
31 goes into 160 5 times with a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 7732.645
If we subtract 155 from 160, we get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Step 10:
If we divide 50 by 31, we get 1 and a remainder of 19.
Put 1 as the next digit of the answer. 
Result so far: 7732.6451
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.

Advancing to step 11:
If we divide 190 by 31, we get 6 and a remainder of 4.
The next digit of our result is 6. 
Result so far: 7732.64516
Deduct 186 from 190 and we're left 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.

Step 12:
The number 31 fits into 40 1 times, leaving a remainder of 9.
The number 1 becomes the next digit in our result. 
Result so far: 7732.645161
If we subtract 31 from 40, we get 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

On to step 13:
If we divide 90 by 31, we get 2 and a remainder of 28.
Use 2 as the next digit of our solution. 
Result so far: 7732.6451612
Subtracting 62 from 90 leaves us with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Going ahead to step 14:
31 goes into 280 9 times with a remainder of 1.
The next digit of our result is 9. 
Result so far: 7732.64516129
Subtracting 279 from 280 leaves us 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.

The final result is 7732.64516129 with a remainder of 1e-09.