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

Advancing to step 1:
31 goes into 8 0 times with a remainder of 8.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 8 and we're left with 8.
Include the next digit (2) from the dividend after 8, then repeat: 82 / 31

Moving on to step 2:
The number 31 fits into 82 2 times, leaving a remainder of 20.
Write down 2 as next digit of the result. 
Result so far: 2.0
If we take 62 away from 82, we end up with 20.
Grab the next digit (7) from the dividend, add it to 20, then carry on: 207 / 31

Advancing to step 3:
31 can be fit into 207 6 times, resulting in a remainder of 21.
Use 6 as the next digit of our solution. 
Result so far: 26.0
If we take 186 away from 207, we end up with 21.
Take the next digit (4) from the dividend and append it to 21, then repeat: 214 / 31

Advancing to step 4:
When dividing 214 by 31, we get 6 with a remainder of 28.
The number 6 becomes the next digit in our result. 
Result so far: 266.0
Subtracting 186 from 214 leaves us with 28.
Grab the next digit (2) from the dividend, add it to 28, then carry on: 282 / 31

On to step 5:
31 can be fit into 282 9 times, resulting in a remainder of 3.
Use 9 as the next digit of our solution. 
Result so far: 2669.0
If we take 279 away from 282, we end up with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Step 6:
31 goes into 30 0 times with a remainder of 30.
Use 0 as the next digit of our solution. 
Result so far: 2669.0
Deduct 0 from 30 and we're left with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Moving on to step 7:
300 divided by 31 is 9 with a remainder of 21.
Write down 9 as next digit of the result. 
Result so far: 2669.09
If we subtract 279 from 300, we get 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

On to step 8:
If we divide 210 by 31, we get 6 and a remainder of 24.
Put 6 as the next digit of the answer. 
Result so far: 2669.096
Deduct 186 from 210 and we're left with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Let's proceed to step 9:
240 divided by 31 is 7 with a remainder of 23.
The number 7 becomes the next digit in our result. 
Result so far: 2669.0967
The remainder is 23 after subtracting 217 from 240.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

On to step 10:
If we divide 230 by 31, we get 7 and a remainder of 13.
Record the quotient 7 as the next digit in the result. 
Result so far: 2669.09677
Subtract 217 from 230 to get 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

After the division, we end up with 2669.09677 and a remainder of 1.3e-05.