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

Moving on to step 1:
38 goes into 4 0 times with a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 4 and we're left with 4.
Bring next digit (0) of the dividend behind the 4 and repeat the process: 40 / 38

Moving on to step 2:
If we divide 40 by 38, we get 1 and a remainder of 2.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Subtracting 38 from 40 leaves us with 2.
Fetch the next digit (0) from the dividend, attach it to 2 and continue: 20 / 38

On to step 3:
38 goes into 20 0 times with a remainder of 20.
Put 0 as the next digit of the answer. 
Result so far: 10.0
If we take 0 away from 20, we end up with 20.
Bring next digit (4) of the dividend behind the 20 and repeat the process: 204 / 38

Advancing to step 4:
The number 38 fits into 204 5 times, leaving a remainder of 14.
Put 5 as the next digit of the answer. 
Result so far: 105.0
The remainder is 14 after subtracting 190 from 204.
Bring next digit (8) of the dividend behind the 14 and repeat the process: 148 / 38

Let's proceed to step 5:
38 can be fit into 148 3 times, resulting in a remainder of 34.
The next digit of our result is 3. 
Result so far: 1053.0
If we take 114 away from 148, we end up 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 6:
If we divide 340 by 38, we get 8 and a remainder of 36.
Put 8 as the next digit of the answer. 
Result so far: 1053.8
Subtracting 304 from 340 leaves us with 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Step 7:
When dividing 360 by 38, we get 9 with a remainder of 18.
Record the quotient 9 as the next digit in the result. 
Result so far: 1053.89
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.

Step 8:
When dividing 180 by 38, we get 4 with a remainder of 28.
Write down 4 as next digit of the result. 
Result so far: 1053.894
If we take 152 away from 180, we end up with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Moving on to step 9:
38 goes into 280 7 times with a remainder of 14.
Put 7 as the next digit of the answer. 
Result so far: 1053.8947
Subtract 266 from 280 to get 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Advancing to step 10:
If we divide 140 by 38, we get 3 and a remainder of 26.
The next digit of our result is 3. 
Result so far: 1053.89473
If we subtract 114 from 140, we get 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Advancing to step 11:
38 can be fit into 260 6 times, resulting in a remainder of 32.
The next digit of our result is 6. 
Result so far: 1053.894736
If we take 228 away from 260, we end up with 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

On to step 12:
If we divide 320 by 38, we get 8 and a remainder of 16.
Record the quotient 8 as the next digit in the result. 
Result so far: 1053.8947368
Subtracting 304 from 320 leaves us with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Moving on to step 13:
When dividing 160 by 38, we get 4 with a remainder of 8.
The number 4 becomes the next digit in our result. 
Result so far: 1053.89473684
If we subtract 152 from 160, 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.

After the division, we end up with 1053.89473684 and a remainder of 8e-09.