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

Step 1:
3 divided by 31 is 0 with a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Bring next digit (8) of the dividend behind the 3 and repeat the process: 38 / 31

Going ahead to step 2:
If we divide 38 by 31, we get 1 and a remainder of 7.
The next digit of our result is 1. 
Result so far: 1.0
The remainder is 7 after subtracting 31 from 38.
Include the next digit (0) from the dividend after 7, then repeat: 70 / 31

Going ahead to step 3:
31 can be fit into 70 2 times, resulting in a remainder of 8.
Use 2 as the next digit of our solution. 
Result so far: 12.0
If we subtract 62 from 70, we get 8.
Include the next digit (6) from the dividend after 8, then repeat: 86 / 31

Moving on to step 4:
86 divided by 31 is 2 with a remainder of 24.
Record the quotient 2 as the next digit in the result. 
Result so far: 122.0
Subtracting 62 from 86 leaves us with 24.
Bring next digit (8) of the dividend behind the 24 and repeat the process: 248 / 31

Moving on to step 5:
31 can be fit into 248 8 times, resulting in a remainder of 0.
Write down 8 as next digit of the result. 
Result so far: 1228.0
Subtracting 248 from 248 leaves us with 0.
Append the next digit (1) from the dividend to 0 and continue with: 1 / 31

Moving on to step 6:
31 can be fit into 1 0 times, resulting in a remainder of 1.
The next digit of our result is 0. 
Result so far: 12280.0
The remainder is 1 after subtracting 0 from 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Going ahead to step 7:
10 divided by 31 is 0 with a remainder of 10.
Write down 0 as next digit of the result. 
Result so far: 12280.0
If we take 0 away from 10, we end up 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.

Going ahead to step 8:
100 divided by 31 is 3 with a remainder of 7.
Record the quotient 3 as the next digit in the result. 
Result so far: 12280.03
If we subtract 93 from 100, we get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Step 9:
31 can be fit into 70 2 times, resulting in a remainder of 8.
Use 2 as the next digit of our solution. 
Result so far: 12280.032
Deduct 62 from 70 and we're left 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.

Advancing to step 10:
31 can be fit into 80 2 times, resulting in a remainder of 18.
The next digit of our result is 2. 
Result so far: 12280.0322
The remainder is 18 after subtracting 62 from 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

In conclusion, the division gives 12280.0322 with a balance of 0.00018.