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

Let's proceed to step 1:
The number 31 fits into 6 0 times, leaving a remainder of 6.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 6, we end up with 6.
Take the next digit (3) from the dividend and append it to 6, then repeat: 63 / 31

Advancing to step 2:
31 can be fit into 63 2 times, resulting in a remainder of 1.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
Subtract 62 from 63 to get 1.
Append the next digit (5) from the dividend to 1 and continue with: 15 / 31

Let's proceed to step 3:
31 can be fit into 15 0 times, resulting in a remainder of 15.
Use 0 as the next digit of our solution. 
Result so far: 20.0
Subtracting 0 from 15 leaves us with 15.
Bring next digit (3) of the dividend behind the 15 and repeat the process: 153 / 31

Moving on to step 4:
31 can be fit into 153 4 times, resulting in a remainder of 29.
The number 4 becomes the next digit in our result. 
Result so far: 204.0
Subtracting 124 from 153 leaves us with 29.
Bring next digit (6) of the dividend behind the 29 and repeat the process: 296 / 31

Let's proceed to step 5:
When dividing 296 by 31, we get 9 with a remainder of 17.
Use 9 as the next digit of our solution. 
Result so far: 2049.0
Deduct 279 from 296 and we're left with 17.
Fetch the next digit (4) from the dividend, attach it to 17 and continue: 174 / 31

Step 6:
When dividing 174 by 31, we get 5 with a remainder of 19.
The next digit of our result is 5. 
Result so far: 20495.0
If we take 155 away from 174, we end up with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Let's proceed to step 7:
When dividing 190 by 31, we get 6 with a remainder of 4.
The number 6 becomes the next digit in our result. 
Result so far: 20495.6
Deduct 186 from 190 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Moving on to step 8:
When dividing 40 by 31, we get 1 with a remainder of 9.
Put 1 as the next digit of the answer. 
Result so far: 20495.61
If we take 31 away from 40, we end up 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.

Step 9:
When dividing 90 by 31, we get 2 with a remainder of 28.
Record the quotient 2 as the next digit in the result. 
Result so far: 20495.612
If we take 62 away from 90, we end up 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.

On to step 10:
31 goes into 280 9 times with a remainder of 1.
Put 9 as the next digit of the answer. 
Result so far: 20495.6129
If we take 279 away from 280, we end up 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.

Advancing to step 11:
When dividing 10 by 31, we get 0 with a remainder of 10.
The number 0 becomes the next digit in our result. 
Result so far: 20495.6129
If we take 0 away from 10, we end up 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.

On to step 12:
31 can be fit into 100 3 times, resulting in a remainder of 7.
Use 3 as the next digit of our solution. 
Result so far: 20495.612903
Subtracting 93 from 100 leaves us with 7.
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 13:
If we divide 70 by 31, we get 2 and a remainder of 8.
Write down 2 as next digit of the result. 
Result so far: 20495.6129032
Subtract 62 from 70 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Going ahead to step 14:
31 can be fit into 80 2 times, resulting in a remainder of 18.
The number 2 becomes the next digit in our result. 
Result so far: 20495.61290322
Subtracting 62 from 80 leaves us 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.

After the division, we end up with 20495.61290322 and a remainder of 1.8e-08.