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

Advancing to step 1:
31 goes into 2 0 times with a remainder of 2.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 2 after subtracting 0 from 2.
Take the next digit (0) from the dividend and append it to 2, then repeat: 20 / 31

Moving on to step 2:
The number 31 fits into 20 0 times, leaving a remainder of 20.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 20, we get 20.
Take the next digit (4) from the dividend and append it to 20, then repeat: 204 / 31

Step 3:
When dividing 204 by 31, we get 6 with a remainder of 18.
Write down 6 as next digit of the result. 
Result so far: 6.0
The remainder is 18 after subtracting 186 from 204.
Take the next digit (7) from the dividend and append it to 18, then repeat: 187 / 31

Step 4:
When dividing 187 by 31, we get 6 with a remainder of 1.
Record the quotient 6 as the next digit in the result. 
Result so far: 66.0
Subtract 186 from 187 to get 1.
Fetch the next digit (3) from the dividend, attach it to 1 and continue: 13 / 31

Advancing to step 5:
31 goes into 13 0 times with a remainder of 13.
Use 0 as the next digit of our solution. 
Result so far: 660.0
If we take 0 away from 13, we end up with 13.
Take the next digit (7) from the dividend and append it to 13, then repeat: 137 / 31

On to step 6:
When dividing 137 by 31, we get 4 with a remainder of 13.
Write down 4 as next digit of the result. 
Result so far: 6604.0
Deduct 124 from 137 and we're left with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Step 7:
If we divide 130 by 31, we get 4 and a remainder of 6.
The next digit of our result is 4. 
Result so far: 6604.4
If we subtract 124 from 130, we get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

On to step 8:
31 can be fit into 60 1 times, resulting in a remainder of 29.
Put 1 as the next digit of the answer. 
Result so far: 6604.41
Deduct 31 from 60 and we're left with 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Moving on to step 9:
When dividing 290 by 31, we get 9 with a remainder of 11.
Use 9 as the next digit of our solution. 
Result so far: 6604.419
If we subtract 279 from 290, we get 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Advancing to step 10:
110 divided by 31 is 3 with a remainder of 17.
Put 3 as the next digit of the answer. 
Result so far: 6604.4193
The remainder is 17 after subtracting 93 from 110.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Let's proceed to step 11:
170 divided by 31 is 5 with a remainder of 15.
Put 5 as the next digit of the answer. 
Result so far: 6604.41935
If we subtract 155 from 170, we get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Step 12:
31 can be fit into 150 4 times, resulting in a remainder of 26.
Use 4 as the next digit of our solution. 
Result so far: 6604.419354
If we take 124 away from 150, we end up with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Advancing to step 13:
When dividing 260 by 31, we get 8 with a remainder of 12.
Record the quotient 8 as the next digit in the result. 
Result so far: 6604.4193548
If we take 248 away from 260, we end up with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Moving on to step 14:
The number 31 fits into 120 3 times, leaving a remainder of 27.
Put 3 as the next digit of the answer. 
Result so far: 6604.41935483
Subtracting 93 from 120 leaves us 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.

Our division results in 6604.41935483 with a remaining 2.7e-08.