We're dividing 38067 by 31 
The aim is to understand the frequency of 31 in 38067.

Step 1:
31 can be fit into 3 0 times, resulting in a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Take the next digit (8) from the dividend and append it to 3, then repeat: 38 / 31

Advancing to step 2:
When dividing 38 by 31, we get 1 with a remainder of 7.
Use 1 as the next digit of our solution. 
Result so far: 1.0
If we subtract 31 from 38, we get 7.
Append the next digit (0) from the dividend to 7 and continue with: 70 / 31

Let's proceed to step 3:
If we divide 70 by 31, we get 2 and 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

Going ahead to step 4:
If we divide 86 by 31, we get 2 and a remainder of 24.
The next digit of our result is 2. 
Result so far: 122.0
Subtracting 62 from 86 leaves us with 24.
Grab the next digit (7) from the dividend, add it to 24, then carry on: 247 / 31

Advancing to step 5:
The number 31 fits into 247 7 times, leaving a remainder of 30.
Record the quotient 7 as the next digit in the result. 
Result so far: 1227.0
Subtracting 217 from 247 leaves us 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.

Advancing to step 6:
When dividing 300 by 31, we get 9 with a remainder of 21.
Use 9 as the next digit of our solution. 
Result so far: 1227.9
Subtract 279 from 300 to 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:
31 can be fit into 210 6 times, resulting in a remainder of 24.
Put 6 as the next digit of the answer. 
Result so far: 1227.96
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.

Step 8:
When dividing 240 by 31, we get 7 with a remainder of 23.
Record the quotient 7 as the next digit in the result. 
Result so far: 1227.967
Subtract 217 from 240 to get 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Going ahead to step 9:
When dividing 230 by 31, we get 7 with a remainder of 13.
Record the quotient 7 as the next digit in the result. 
Result so far: 1227.9677
Subtract 217 from 230 to get 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 1227.9677 with a remainder of 0.00013.