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

Going ahead to step 1:
31 can be fit into 3 0 times, resulting in a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Include the next digit (6) from the dividend after 3, then repeat: 36 / 31

Let's proceed to step 2:
If we divide 36 by 31, we get 1 and a remainder of 5.
The next digit of our result is 1. 
Result so far: 1.0
Subtracting 31 from 36 leaves us with 5.
Fetch the next digit (3) from the dividend, attach it to 5 and continue: 53 / 31

Moving on to step 3:
If we divide 53 by 31, we get 1 and a remainder of 22.
Put 1 as the next digit of the answer. 
Result so far: 11.0
Subtracting 31 from 53 leaves us with 22.
Append the next digit (6) from the dividend to 22 and continue with: 226 / 31

Step 4:
31 can be fit into 226 7 times, resulting in a remainder of 9.
Use 7 as the next digit of our solution. 
Result so far: 117.0
If we take 217 away from 226, we end up with 9.
Include the next digit (8) from the dividend after 9, then repeat: 98 / 31

Step 5:
If we divide 98 by 31, we get 3 and a remainder of 5.
The next digit of our result is 3. 
Result so far: 1173.0
Subtracting 93 from 98 leaves us with 5.
Append the next digit (2) from the dividend to 5 and continue with: 52 / 31

Step 6:
The number 31 fits into 52 1 times, leaving a remainder of 21.
Put 1 as the next digit of the answer. 
Result so far: 11731.0
If we subtract 31 from 52, we get 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

On to step 7:
210 divided by 31 is 6 with a remainder of 24.
The next digit of our result is 6. 
Result so far: 11731.6
If we take 186 away from 210, we end up with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Going ahead to step 8:
The number 31 fits into 240 7 times, leaving a remainder of 23.
Write down 7 as next digit of the result. 
Result so far: 11731.67
The remainder is 23 after subtracting 217 from 240.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Step 9:
When dividing 230 by 31, we get 7 with a remainder of 13.
Write down 7 as next digit of the result. 
Result so far: 11731.677
If we take 217 away from 230, we end up with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

The final result is 11731.677 with a remainder of 0.0013.