Let's divide 138349 by 38
The aim is to understand the frequency of 38 in 138349.

Going ahead to step 1:
The number 38 fits into 1 0 times, leaving a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 1, we end up with 1.
Bring next digit (3) of the dividend behind the 1 and repeat the process: 13 / 38

Moving on to step 2:
38 can be fit into 13 0 times, resulting in a remainder of 13.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 13 to get 13.
Include the next digit (8) from the dividend after 13, then repeat: 138 / 38

Going ahead to step 3:
The number 38 fits into 138 3 times, leaving a remainder of 24.
Use 3 as the next digit of our solution. 
Result so far: 3.0
Subtracting 114 from 138 leaves us with 24.
Append the next digit (3) from the dividend to 24 and continue with: 243 / 38

Step 4:
If we divide 243 by 38, we get 6 and a remainder of 15.
The number 6 becomes the next digit in our result. 
Result so far: 36.0
If we take 228 away from 243, we end up with 15.
Take the next digit (4) from the dividend and append it to 15, then repeat: 154 / 38

Advancing to step 5:
154 divided by 38 is 4 with a remainder of 2.
Use 4 as the next digit of our solution. 
Result so far: 364.0
If we subtract 152 from 154, we get 2.
Append the next digit (9) from the dividend to 2 and continue with: 29 / 38

Advancing to step 6:
The number 38 fits into 29 0 times, leaving a remainder of 29.
Write down 0 as next digit of the result. 
Result so far: 3640.0
Subtracting 0 from 29 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.

Advancing to step 7:
38 can be fit into 290 7 times, resulting in a remainder of 24.
Record the quotient 7 as the next digit in the result. 
Result so far: 3640.7
The remainder is 24 after subtracting 266 from 290.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Moving on to step 8:
38 goes into 240 6 times with a remainder of 12.
Write down 6 as next digit of the result. 
Result so far: 3640.76
Subtracting 228 from 240 leaves us with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Moving on to step 9:
38 goes into 120 3 times with a remainder of 6.
The number 3 becomes the next digit in our result. 
Result so far: 3640.763
If we subtract 114 from 120, we get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Moving on to step 10:
The number 38 fits into 60 1 times, leaving a remainder of 22.
The next digit of our result is 1. 
Result so far: 3640.7631
If we take 38 away from 60, we end up 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.

Step 11:
38 goes into 220 5 times with a remainder of 30.
The next digit of our result is 5. 
Result so far: 3640.76315
If we subtract 190 from 220, we get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Let's proceed to step 12:
38 can be fit into 300 7 times, resulting in a remainder of 34.
Put 7 as the next digit of the answer. 
Result so far: 3640.763157
Deduct 266 from 300 and we're left with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Step 13:
If we divide 340 by 38, we get 8 and a remainder of 36.
The number 8 becomes the next digit in our result. 
Result so far: 3640.7631578
Subtract 304 from 340 to get 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

On to step 14:
38 can be fit into 360 9 times, resulting in a remainder of 18.
Record the quotient 9 as the next digit in the result. 
Result so far: 3640.76315789
If we subtract 342 from 360, we get 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

The final result is 3640.76315789 with a remainder of 1.8e-08.