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

Moving on to step 1:
When dividing 6 by 31, we get 0 with a remainder of 6.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 6, we end up with 6.
Append the next digit (3) from the dividend to 6 and continue with: 63 / 31

Going ahead to step 2:
63 divided by 31 is 2 with a remainder of 1.
Use 2 as the next digit of our solution. 
Result so far: 2.0
Deduct 62 from 63 and we're left with 1.
Fetch the next digit (6) from the dividend, attach it to 1 and continue: 16 / 31

Moving on to step 3:
31 can be fit into 16 0 times, resulting in a remainder of 16.
The number 0 becomes the next digit in our result. 
Result so far: 20.0
If we take 0 away from 16, we end up with 16.
Include the next digit (7) from the dividend after 16, then repeat: 167 / 31

Let's proceed to step 4:
31 goes into 167 5 times with a remainder of 12.
The next digit of our result is 5. 
Result so far: 205.0
Subtracting 155 from 167 leaves us with 12.
Append the next digit (0) from the dividend to 12 and continue with: 120 / 31

Moving on to step 5:
31 goes into 120 3 times with a remainder of 27.
Record the quotient 3 as the next digit in the result. 
Result so far: 2053.0
The remainder is 27 after subtracting 93 from 120.
Include the next digit (7) from the dividend after 27, then repeat: 277 / 31

On to step 6:
If we divide 277 by 31, we get 8 and a remainder of 29.
Use 8 as the next digit of our solution. 
Result so far: 20538.0
If we subtract 248 from 277, we 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.

Let's proceed to step 7:
31 goes into 290 9 times with a remainder of 11.
Use 9 as the next digit of our solution. 
Result so far: 20538.9
If we subtract 279 from 290, we 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.

On to step 8:
If we divide 110 by 31, we get 3 and a remainder of 17.
Put 3 as the next digit of the answer. 
Result so far: 20538.93
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.

On to step 9:
31 can be fit into 170 5 times, resulting in a remainder of 15.
Write down 5 as next digit of the result. 
Result so far: 20538.935
Subtracting 155 from 170 leaves us 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.

On to step 10:
The number 31 fits into 150 4 times, leaving a remainder of 26.
The next digit of our result is 4. 
Result so far: 20538.9354
Subtract 124 from 150 to get 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Step 11:
260 divided by 31 is 8 with a remainder of 12.
Record the quotient 8 as the next digit in the result. 
Result so far: 20538.93548
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.

Advancing to step 12:
If we divide 120 by 31, we get 3 and a remainder of 27.
Use 3 as the next digit of our solution. 
Result so far: 20538.935483
Deduct 93 from 120 and we're left 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.

On to step 13:
The number 31 fits into 270 8 times, leaving a remainder of 22.
Write down 8 as next digit of the result. 
Result so far: 20538.9354838
If we subtract 248 from 270, we get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Advancing to step 14:
31 can be fit into 220 7 times, resulting in a remainder of 3.
The number 7 becomes the next digit in our result. 
Result so far: 20538.93548387
Subtract 217 from 220 to get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

The final outcome is 20538.93548387, with a leftover of 3e-09.