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

Let's proceed to step 1:
If we divide 6 by 31, we get 0 and a remainder of 6.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 6 and we're left with 6.
Bring next digit (2) of the dividend behind the 6 and repeat the process: 62 / 31

Let's proceed to step 2:
62 divided by 31 is 2 with a remainder of 0.
Write down 2 as next digit of the result. 
Result so far: 2.0
Subtracting 62 from 62 leaves us with 0.
Append the next digit (2) from the dividend to 0 and continue with: 2 / 31

Let's proceed to step 3:
When dividing 2 by 31, we get 0 with a remainder of 2.
The next digit of our result is 0. 
Result so far: 20.0
Subtract 0 from 2 to get 2.
Take the next digit (6) from the dividend and append it to 2, then repeat: 26 / 31

Let's proceed to step 4:
31 can be fit into 26 0 times, resulting in a remainder of 26.
Use 0 as the next digit of our solution. 
Result so far: 200.0
Subtracting 0 from 26 leaves us with 26.
Append the next digit (0) from the dividend to 26 and continue with: 260 / 31

Let's proceed to step 5:
31 can be fit into 260 8 times, resulting in a remainder of 12.
The number 8 becomes the next digit in our result. 
Result so far: 2008.0
Subtract 248 from 260 to get 12.
Bring next digit (2) of the dividend behind the 12 and repeat the process: 122 / 31

Let's proceed to step 6:
31 can be fit into 122 3 times, resulting in a remainder of 29.
Use 3 as the next digit of our solution. 
Result so far: 20083.0
Subtracting 93 from 122 leaves us with 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:
If we divide 290 by 31, we get 9 and a remainder of 11.
Use 9 as the next digit of our solution. 
Result so far: 20083.9
Deduct 279 from 290 and we're left with 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:
When dividing 110 by 31, we get 3 with a remainder of 17.
Write down 3 as next digit of the result. 
Result so far: 20083.93
If we take 93 away from 110, we end up with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Advancing to step 9:
31 can be fit into 170 5 times, resulting in a remainder of 15.
The number 5 becomes the next digit in our result. 
Result so far: 20083.935
The remainder is 15 after subtracting 155 from 170.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Going ahead to step 10:
If we divide 150 by 31, we get 4 and a remainder of 26.
Use 4 as the next digit of our solution. 
Result so far: 20083.9354
Deduct 124 from 150 and we're left with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

On to step 11:
31 goes into 260 8 times with a remainder of 12.
Record the quotient 8 as the next digit in the result. 
Result so far: 20083.93548
Subtract 248 from 260 to get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Let's proceed to step 12:
If we divide 120 by 31, we get 3 and a remainder of 27.
Record the quotient 3 as the next digit in the result. 
Result so far: 20083.935483
Subtracting 93 from 120 leaves us 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.

Let's proceed to step 13:
31 can be fit into 270 8 times, resulting in a remainder of 22.
Record the quotient 8 as the next digit in the result. 
Result so far: 20083.9354838
Deduct 248 from 270 and we're left with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Let's proceed to step 14:
220 divided by 31 is 7 with a remainder of 3.
Put 7 as the next digit of the answer. 
Result so far: 20083.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 20083.93548387, with a leftover of 3e-09.