642695 divided by 31 
The aim is to understand the frequency of 31 in 642695.

Moving on to step 1:
6 divided by 31 is 0 with a remainder of 6.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 6 and we're left with 6.
Include the next digit (4) from the dividend after 6, then repeat: 64 / 31

Let's proceed to step 2:
If we divide 64 by 31, we get 2 and a remainder of 2.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
Subtract 62 from 64 to get 2.
Append the next digit (2) from the dividend to 2 and continue with: 22 / 31

Let's proceed to step 3:
31 can be fit into 22 0 times, resulting in a remainder of 22.
The number 0 becomes the next digit in our result. 
Result so far: 20.0
Subtracting 0 from 22 leaves us with 22.
Grab the next digit (6) from the dividend, add it to 22, then carry on: 226 / 31

Going ahead to step 4:
When dividing 226 by 31, we get 7 with a remainder of 9.
Record the quotient 7 as the next digit in the result. 
Result so far: 207.0
Subtracting 217 from 226 leaves us with 9.
Append the next digit (9) from the dividend to 9 and continue with: 99 / 31

Let's proceed to step 5:
If we divide 99 by 31, we get 3 and a remainder of 6.
Record the quotient 3 as the next digit in the result. 
Result so far: 2073.0
Deduct 93 from 99 and we're left with 6.
Take the next digit (5) from the dividend and append it to 6, then repeat: 65 / 31

Step 6:
The number 31 fits into 65 2 times, leaving a remainder of 3.
Use 2 as the next digit of our solution. 
Result so far: 20732.0
Subtracting 62 from 65 leaves us 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.

Let's proceed to step 7:
31 goes into 30 0 times with a remainder of 30.
Put 0 as the next digit of the answer. 
Result so far: 20732.0
Subtract 0 from 30 to get 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 8:
If we divide 300 by 31, we get 9 and a remainder of 21.
The next digit of our result is 9. 
Result so far: 20732.09
The remainder is 21 after subtracting 279 from 300.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Going ahead to step 9:
If we divide 210 by 31, we get 6 and a remainder of 24.
Use 6 as the next digit of our solution. 
Result so far: 20732.096
If we take 186 away from 210, we end up 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.

On to step 10:
240 divided by 31 is 7 with a remainder of 23.
Put 7 as the next digit of the answer. 
Result so far: 20732.0967
If we take 217 away from 240, we end up with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Going ahead to step 11:
31 goes into 230 7 times with a remainder of 13.
The number 7 becomes the next digit in our result. 
Result so far: 20732.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.

In conclusion, the division gives 20732.09677 with a balance of 1.3e-05.