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

Let's proceed to step 1:
The number 31 fits into 7 0 times, leaving a remainder of 7.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 7, we get 7.
Take the next digit (8) from the dividend and append it to 7, then repeat: 78 / 31

Step 2:
31 goes into 78 2 times with a remainder of 16.
Write down 2 as next digit of the result. 
Result so far: 2.0
The remainder is 16 after subtracting 62 from 78.
Bring next digit (2) of the dividend behind the 16 and repeat the process: 162 / 31

Step 3:
162 divided by 31 is 5 with a remainder of 7.
Write down 5 as next digit of the result. 
Result so far: 25.0
If we subtract 155 from 162, we get 7.
Append the next digit (1) from the dividend to 7 and continue with: 71 / 31

Step 4:
31 can be fit into 71 2 times, resulting in a remainder of 9.
Use 2 as the next digit of our solution. 
Result so far: 252.0
Deduct 62 from 71 and we're left with 9.
Take the next digit (0) from the dividend and append it to 9, then repeat: 90 / 31

Going ahead to step 5:
If we divide 90 by 31, we get 2 and a remainder of 28.
The number 2 becomes the next digit in our result. 
Result so far: 2522.0
Subtract 62 from 90 to get 28.
Grab the next digit (5) from the dividend, add it to 28, then carry on: 285 / 31

Advancing to step 6:
When dividing 285 by 31, we get 9 with a remainder of 6.
The next digit of our result is 9. 
Result so far: 25229.0
If we subtract 279 from 285, 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.

Step 7:
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: 25229.1
Subtract 31 from 60 to get 29.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Step 8:
31 goes into 290 9 times with a remainder of 11.
Record the quotient 9 as the next digit in the result. 
Result so far: 25229.19
Subtract 279 from 290 to 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.

Step 9:
When dividing 110 by 31, we get 3 with a remainder of 17.
The next digit of our result is 3. 
Result so far: 25229.193
If we subtract 93 from 110, we get 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Step 10:
When dividing 170 by 31, we get 5 with a remainder of 15.
The number 5 becomes the next digit in our result. 
Result so far: 25229.1935
Deduct 155 from 170 and we're left with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Advancing to step 11:
The number 31 fits into 150 4 times, leaving a remainder of 26.
Put 4 as the next digit of the answer. 
Result so far: 25229.19354
Subtracting 124 from 150 leaves us 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.

Moving on to step 12:
31 goes into 260 8 times with a remainder of 12.
Record the quotient 8 as the next digit in the result. 
Result so far: 25229.193548
Subtracting 248 from 260 leaves us 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.

Going ahead to step 13:
When dividing 120 by 31, we get 3 with a remainder of 27.
Put 3 as the next digit of the answer. 
Result so far: 25229.1935483
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.

Moving on to step 14:
31 goes into 270 8 times with a remainder of 22.
Put 8 as the next digit of the answer. 
Result so far: 25229.19354838
If we take 248 away from 270, we end up with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

The final result is 25229.19354838 with a remainder of 2.2e-08.