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

On to step 1:
The number 38 fits into 4 0 times, leaving a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Bring next digit (5) of the dividend behind the 4 and repeat the process: 45 / 38

Step 2:
45 divided by 38 is 1 with a remainder of 7.
The next digit of our result is 1. 
Result so far: 1.0
The remainder is 7 after subtracting 38 from 45.
Fetch the next digit (1) from the dividend, attach it to 7 and continue: 71 / 38

On to step 3:
71 divided by 38 is 1 with a remainder of 33.
The number 1 becomes the next digit in our result. 
Result so far: 11.0
Subtracting 38 from 71 leaves us with 33.
Grab the next digit (1) from the dividend, add it to 33, then carry on: 331 / 38

Advancing to step 4:
331 divided by 38 is 8 with a remainder of 27.
Put 8 as the next digit of the answer. 
Result so far: 118.0
The remainder is 27 after subtracting 304 from 331.
Grab the next digit (8) from the dividend, add it to 27, then carry on: 278 / 38

Advancing to step 5:
38 goes into 278 7 times with a remainder of 12.
The next digit of our result is 7. 
Result so far: 1187.0
Subtracting 266 from 278 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 6:
If we divide 120 by 38, we get 3 and a remainder of 6.
Put 3 as the next digit of the answer. 
Result so far: 1187.3
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.

Step 7:
38 goes into 60 1 times with a remainder of 22.
Put 1 as the next digit of the answer. 
Result so far: 1187.31
Subtracting 38 from 60 leaves us 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.

On to step 8:
The number 38 fits into 220 5 times, leaving a remainder of 30.
Put 5 as the next digit of the answer. 
Result so far: 1187.315
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.

Let's proceed to step 9:
If we divide 300 by 38, we get 7 and a remainder of 34.
Record the quotient 7 as the next digit in the result. 
Result so far: 1187.3157
If we take 266 away from 300, 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.

On to step 10:
If we divide 340 by 38, we get 8 and a remainder of 36.
The next digit of our result is 8. 
Result so far: 1187.31578
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 11:
38 goes into 360 9 times with a remainder of 18.
Use 9 as the next digit of our solution. 
Result so far: 1187.315789
If we take 342 away from 360, we end up with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Let's proceed to step 12:
The number 38 fits into 180 4 times, leaving a remainder of 28.
Put 4 as the next digit of the answer. 
Result so far: 1187.3157894
Subtracting 152 from 180 leaves us 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.

Going ahead to step 13:
The number 38 fits into 280 7 times, leaving a remainder of 14.
Record the quotient 7 as the next digit in the result. 
Result so far: 1187.31578947
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.

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