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

Advancing to step 1:
31 goes into 6 0 times with a remainder of 6.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 6 to get 6.
Bring next digit (2) of the dividend behind the 6 and repeat the process: 62 / 31

Let's proceed to step 2:
If we divide 62 by 31, we get 2 and a remainder of 0.
The next digit of our result is 2. 
Result so far: 2.0
The remainder is 0 after subtracting 62 from 62.
Take the next digit (9) from the dividend and append it to 0, then repeat: 9 / 31

Step 3:
If we divide 9 by 31, we get 0 and a remainder of 9.
Write down 0 as next digit of the result. 
Result so far: 20.0
Subtracting 0 from 9 leaves us with 9.
Append the next digit (1) from the dividend to 9 and continue with: 91 / 31

Let's proceed to step 4:
31 goes into 91 2 times with a remainder of 29.
Record the quotient 2 as the next digit in the result. 
Result so far: 202.0
If we subtract 62 from 91, we get 29.
Append the next digit (1) from the dividend to 29 and continue with: 291 / 31

Moving on to step 5:
31 can be fit into 291 9 times, resulting in a remainder of 12.
Record the quotient 9 as the next digit in the result. 
Result so far: 2029.0
The remainder is 12 after subtracting 279 from 291.
Take the next digit (7) from the dividend and append it to 12, then repeat: 127 / 31

Step 6:
127 divided by 31 is 4 with a remainder of 3.
Put 4 as the next digit of the answer. 
Result so far: 20294.0
Subtract 124 from 127 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.

On to step 7:
31 can be fit into 30 0 times, resulting in a remainder of 30.
Put 0 as the next digit of the answer. 
Result so far: 20294.0
If we take 0 away from 30, we end up with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Let's proceed to step 8:
300 divided by 31 is 9 with a remainder of 21.
Record the quotient 9 as the next digit in the result. 
Result so far: 20294.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.

Let's proceed to step 9:
210 divided by 31 is 6 with a remainder of 24.
Record the quotient 6 as the next digit in the result. 
Result so far: 20294.096
Subtract 186 from 210 to get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Moving on to step 10:
31 goes into 240 7 times with a remainder of 23.
Record the quotient 7 as the next digit in the result. 
Result so far: 20294.0967
Subtracting 217 from 240 leaves us 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.

Moving on to step 11:
31 can be fit into 230 7 times, resulting in a remainder of 13.
Record the quotient 7 as the next digit in the result. 
Result so far: 20294.09677
The remainder is 13 after subtracting 217 from 230.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

The quotient of the division is 20294.09677, and the remainder is 1.3e-05.