We're dividing 639775 by 31 
The aim is to understand the frequency of 31 in 639775.

Going ahead to step 1:
If we divide 6 by 31, we get 0 and a remainder of 6.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 6 and we're left with 6.
Include the next digit (3) from the dividend after 6, then repeat: 63 / 31

Let's proceed to step 2:
31 can be fit into 63 2 times, resulting in a remainder of 1.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
The remainder is 1 after subtracting 62 from 63.
Fetch the next digit (9) from the dividend, attach it to 1 and continue: 19 / 31

Let's proceed to step 3:
The number 31 fits into 19 0 times, leaving a remainder of 19.
The next digit of our result is 0. 
Result so far: 20.0
Deduct 0 from 19 and we're left with 19.
Take the next digit (7) from the dividend and append it to 19, then repeat: 197 / 31

Moving on to step 4:
If we divide 197 by 31, we get 6 and a remainder of 11.
Use 6 as the next digit of our solution. 
Result so far: 206.0
Deduct 186 from 197 and we're left with 11.
Grab the next digit (7) from the dividend, add it to 11, then carry on: 117 / 31

Going ahead to step 5:
The number 31 fits into 117 3 times, leaving a remainder of 24.
Record the quotient 3 as the next digit in the result. 
Result so far: 2063.0
If we subtract 93 from 117, we get 24.
Fetch the next digit (5) from the dividend, attach it to 24 and continue: 245 / 31

Step 6:
When dividing 245 by 31, we get 7 with a remainder of 28.
Write down 7 as next digit of the result. 
Result so far: 20637.0
Deduct 217 from 245 and we're left with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Advancing to step 7:
When dividing 280 by 31, we get 9 with a remainder of 1.
Use 9 as the next digit of our solution. 
Result so far: 20637.9
If we subtract 279 from 280, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Going ahead to step 8:
The number 31 fits into 10 0 times, leaving a remainder of 10.
Record the quotient 0 as the next digit in the result. 
Result so far: 20637.9
If we subtract 0 from 10, we get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

On to step 9:
When dividing 100 by 31, we get 3 with a remainder of 7.
The next digit of our result is 3. 
Result so far: 20637.903
The remainder is 7 after subtracting 93 from 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Going ahead to step 10:
When dividing 70 by 31, we get 2 with a remainder of 8.
The next digit of our result is 2. 
Result so far: 20637.9032
Subtracting 62 from 70 leaves us 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.

Advancing to step 11:
80 divided by 31 is 2 with a remainder of 18.
The next digit of our result is 2. 
Result so far: 20637.90322
The remainder is 18 after subtracting 62 from 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

In conclusion, the division gives 20637.90322 with a balance of 1.8e-05.