Let's divide 307362 by 31
The aim is to understand the frequency of 31 in 307362.

Step 1:
3 divided by 31 is 0 with a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Bring next digit (0) of the dividend behind the 3 and repeat the process: 30 / 31

Step 2:
31 can be fit into 30 0 times, resulting in a remainder of 30.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 30 to get 30.
Bring next digit (7) of the dividend behind the 30 and repeat the process: 307 / 31

Advancing to step 3:
If we divide 307 by 31, we get 9 and a remainder of 28.
Use 9 as the next digit of our solution. 
Result so far: 9.0
Subtract 279 from 307 to get 28.
Include the next digit (3) from the dividend after 28, then repeat: 283 / 31

Moving on to step 4:
If we divide 283 by 31, we get 9 and a remainder of 4.
The number 9 becomes the next digit in our result. 
Result so far: 99.0
Subtracting 279 from 283 leaves us with 4.
Include the next digit (6) from the dividend after 4, then repeat: 46 / 31

Moving on to step 5:
31 goes into 46 1 times with a remainder of 15.
Use 1 as the next digit of our solution. 
Result so far: 991.0
Subtract 31 from 46 to get 15.
Include the next digit (2) from the dividend after 15, then repeat: 152 / 31

On to step 6:
152 divided by 31 is 4 with a remainder of 28.
The number 4 becomes the next digit in our result. 
Result so far: 9914.0
If we subtract 124 from 152, we get 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Let's proceed to step 7:
31 can be fit into 280 9 times, resulting in a remainder of 1.
Record the quotient 9 as the next digit in the result. 
Result so far: 9914.9
Deduct 279 from 280 and we're left 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 8:
10 divided by 31 is 0 with a remainder of 10.
Record the quotient 0 as the next digit in the result. 
Result so far: 9914.9
Deduct 0 from 10 and we're left 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.

Step 9:
100 divided by 31 is 3 with a remainder of 7.
The next digit of our result is 3. 
Result so far: 9914.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.

Advancing to step 10:
31 can be fit into 70 2 times, resulting in a remainder of 8.
The number 2 becomes the next digit in our result. 
Result so far: 9914.9032
If we take 62 away from 70, we end up 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.

On to step 11:
When dividing 80 by 31, we get 2 with a remainder of 18.
Put 2 as the next digit of the answer. 
Result so far: 9914.90322
Deduct 62 from 80 and we're left 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.

Our division results in 9914.90322 with a remaining 1.8e-05.