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

On to step 1:
31 can be fit into 2 0 times, resulting in 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.
Grab the next digit (0) from the dividend, add it to 2, then carry on: 20 / 31

Step 2:
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: 0.0
If we take 0 away from 20, we end up with 20.
Include the next digit (4) from the dividend after 20, then repeat: 204 / 31

Let's proceed to step 3:
The number 31 fits into 204 6 times, leaving a remainder of 18.
Write down 6 as next digit of the result. 
Result so far: 6.0
Deduct 186 from 204 and we're left with 18.
Grab the next digit (3) from the dividend, add it to 18, then carry on: 183 / 31

Advancing to step 4:
When dividing 183 by 31, we get 5 with a remainder of 28.
Write down 5 as next digit of the result. 
Result so far: 65.0
If we subtract 155 from 183, we get 28.
Grab the next digit (4) from the dividend, add it to 28, then carry on: 284 / 31

Advancing to step 5:
When dividing 284 by 31, we get 9 with a remainder of 5.
Write down 9 as next digit of the result. 
Result so far: 659.0
The remainder is 5 after subtracting 279 from 284.
Grab the next digit (0) from the dividend, add it to 5, then carry on: 50 / 31

Moving on to step 6:
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: 6591.0
If we subtract 31 from 50, 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:
The number 31 fits into 190 6 times, leaving a remainder of 4.
Write down 6 as next digit of the result. 
Result so far: 6591.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.

Let's proceed to step 8:
31 goes into 40 1 times with a remainder of 9.
Put 1 as the next digit of the answer. 
Result so far: 6591.61
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.

On to step 9:
When dividing 90 by 31, we get 2 with a remainder of 28.
The number 2 becomes the next digit in our result. 
Result so far: 6591.612
If we subtract 62 from 90, we get 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 10:
If we divide 280 by 31, we get 9 and a remainder of 1.
The number 9 becomes the next digit in our result. 
Result so far: 6591.6129
Deduct 279 from 280 and we're left 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.

Step 11:
If we divide 10 by 31, we get 0 and a remainder of 10.
The number 0 becomes the next digit in our result. 
Result so far: 6591.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.

Moving on to step 12:
31 goes into 100 3 times with a remainder of 7.
Record the quotient 3 as the next digit in the result. 
Result so far: 6591.612903
Subtract 93 from 100 to 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.

Moving on to step 13:
If we divide 70 by 31, we get 2 and a remainder of 8.
Put 2 as the next digit of the answer. 
Result so far: 6591.6129032
Deduct 62 from 70 and we're left 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.

Moving on to step 14:
80 divided by 31 is 2 with a remainder of 18.
The next digit of our result is 2. 
Result so far: 6591.61290322
If we take 62 away from 80, we end up 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 6591.61290322, and the remainder is 1.8e-08.