We look at the division of 84117 by 38 
The aim is to understand the frequency of 38 in 84117.

Going ahead to step 1:
38 goes into 8 0 times with a remainder of 8.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 8 leaves us with 8.
Append the next digit (4) from the dividend to 8 and continue with: 84 / 38

Going ahead to step 2:
84 divided by 38 is 2 with a remainder of 8.
The next digit of our result is 2. 
Result so far: 2.0
If we take 76 away from 84, we end up with 8.
Bring next digit (1) of the dividend behind the 8 and repeat the process: 81 / 38

On to step 3:
38 goes into 81 2 times with a remainder of 5.
Record the quotient 2 as the next digit in the result. 
Result so far: 22.0
Deduct 76 from 81 and we're left with 5.
Take the next digit (1) from the dividend and append it to 5, then repeat: 51 / 38

Step 4:
When dividing 51 by 38, we get 1 with a remainder of 13.
Put 1 as the next digit of the answer. 
Result so far: 221.0
Subtracting 38 from 51 leaves us with 13.
Append the next digit (7) from the dividend to 13 and continue with: 137 / 38

Step 5:
38 can be fit into 137 3 times, resulting in a remainder of 23.
The next digit of our result is 3. 
Result so far: 2213.0
Deduct 114 from 137 and we're left with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Step 6:
38 can be fit into 230 6 times, resulting in a remainder of 2.
The number 6 becomes the next digit in our result. 
Result so far: 2213.6
Subtracting 228 from 230 leaves us with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Let's proceed to step 7:
If we divide 20 by 38, we get 0 and a remainder of 20.
Record the quotient 0 as the next digit in the result. 
Result so far: 2213.6
If we subtract 0 from 20, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 8:
The number 38 fits into 200 5 times, leaving a remainder of 10.
The number 5 becomes the next digit in our result. 
Result so far: 2213.605
Subtract 190 from 200 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Let's proceed to step 9:
When dividing 100 by 38, we get 2 with a remainder of 24.
The next digit of our result is 2. 
Result so far: 2213.6052
Subtract 76 from 100 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.

On to step 10:
The number 38 fits into 240 6 times, leaving a remainder of 12.
Write down 6 as next digit of the result. 
Result so far: 2213.60526
Deduct 228 from 240 and we're left 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 11:
When dividing 120 by 38, we get 3 with a remainder of 6.
Put 3 as the next digit of the answer. 
Result so far: 2213.605263
Subtract 114 from 120 to 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.

Step 12:
If we divide 60 by 38, we get 1 and a remainder of 22.
Use 1 as the next digit of our solution. 
Result so far: 2213.6052631
Subtract 38 from 60 to get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Moving on to step 13:
38 goes into 220 5 times with a remainder of 30.
Write down 5 as next digit of the result. 
Result so far: 2213.60526315
Deduct 190 from 220 and we're left 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.

After the division, we end up with 2213.60526315 and a remainder of 3e-08.