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

On to step 1:
38 can be fit into 2 0 times, resulting in a remainder of 2.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 2 leaves us with 2.
Append the next digit (1) from the dividend to 2 and continue with: 21 / 38

Advancing to step 2:
21 divided by 38 is 0 with a remainder of 21.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 21 to get 21.
Bring next digit (8) of the dividend behind the 21 and repeat the process: 218 / 38

On to step 3:
38 goes into 218 5 times with a remainder of 28.
Record the quotient 5 as the next digit in the result. 
Result so far: 5.0
Subtracting 190 from 218 leaves us with 28.
Fetch the next digit (0) from the dividend, attach it to 28 and continue: 280 / 38

Going ahead to step 4:
The number 38 fits into 280 7 times, leaving a remainder of 14.
Write down 7 as next digit of the result. 
Result so far: 57.0
If we take 266 away from 280, we end up with 14.
Include the next digit (4) from the dividend after 14, then repeat: 144 / 38

Moving on to step 5:
The number 38 fits into 144 3 times, leaving a remainder of 30.
Put 3 as the next digit of the answer. 
Result so far: 573.0
If we subtract 114 from 144, we get 30.
Append the next digit (1) from the dividend to 30 and continue with: 301 / 38

Going ahead to step 6:
When dividing 301 by 38, we get 7 with a remainder of 35.
Use 7 as the next digit of our solution. 
Result so far: 5737.0
Subtracting 266 from 301 leaves us with 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Step 7:
38 goes into 350 9 times with a remainder of 8.
Write down 9 as next digit of the result. 
Result so far: 5737.9
If we subtract 342 from 350, we get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Let's proceed to step 8:
38 can be fit into 80 2 times, resulting in a remainder of 4.
Record the quotient 2 as the next digit in the result. 
Result so far: 5737.92
Subtracting 76 from 80 leaves us with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Going ahead to step 9:
40 divided by 38 is 1 with a remainder of 2.
Use 1 as the next digit of our solution. 
Result so far: 5737.921
Subtracting 38 from 40 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.

Going ahead to step 10:
When dividing 20 by 38, we get 0 with a remainder of 20.
The next digit of our result is 0. 
Result so far: 5737.921
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.

Step 11:
200 divided by 38 is 5 with a remainder of 10.
Use 5 as the next digit of our solution. 
Result so far: 5737.92105
Subtracting 190 from 200 leaves us 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 12:
38 goes into 100 2 times with a remainder of 24.
Put 2 as the next digit of the answer. 
Result so far: 5737.921052
Subtracting 76 from 100 leaves us 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.

Step 13:
240 divided by 38 is 6 with a remainder of 12.
Use 6 as the next digit of our solution. 
Result so far: 5737.9210526
If we subtract 228 from 240, we get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

On to step 14:
38 can be fit into 120 3 times, resulting in a remainder of 6.
Write down 3 as next digit of the result. 
Result so far: 5737.92105263
If we take 114 away from 120, we end up with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

The final result is 5737.92105263 with a remainder of 6e-09.