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

On to step 1:
6 divided by 38 is 0 with a remainder of 6.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 6, we end up with 6.
Fetch the next digit (3) from the dividend, attach it to 6 and continue: 63 / 38

Let's proceed to step 2:
When dividing 63 by 38, we get 1 with a remainder of 25.
Write down 1 as next digit of the result. 
Result so far: 1.0
Subtracting 38 from 63 leaves us with 25.
Bring next digit (8) of the dividend behind the 25 and repeat the process: 258 / 38

Going ahead to step 3:
The number 38 fits into 258 6 times, leaving a remainder of 30.
Put 6 as the next digit of the answer. 
Result so far: 16.0
Subtracting 228 from 258 leaves us with 30.
Take the next digit (2) from the dividend and append it to 30, then repeat: 302 / 38

Going ahead to step 4:
The number 38 fits into 302 7 times, leaving a remainder of 36.
Put 7 as the next digit of the answer. 
Result so far: 167.0
Deduct 266 from 302 and we're left with 36.
Include the next digit (6) from the dividend after 36, then repeat: 366 / 38

Let's proceed to step 5:
38 can be fit into 366 9 times, resulting in a remainder of 24.
Write down 9 as next digit of the result. 
Result so far: 1679.0
Subtract 342 from 366 to get 24.
Take the next digit (0) from the dividend and append it to 24, then repeat: 240 / 38

Let's proceed to step 6:
If we divide 240 by 38, we get 6 and a remainder of 12.
The next digit of our result is 6. 
Result so far: 16796.0
If we take 228 away from 240, we end up 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.

Step 7:
38 can be fit into 120 3 times, resulting in a remainder of 6.
Put 3 as the next digit of the answer. 
Result so far: 16796.3
Subtracting 114 from 120 leaves us 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.

Going ahead to step 8:
The number 38 fits into 60 1 times, leaving a remainder of 22.
Use 1 as the next digit of our solution. 
Result so far: 16796.31
The remainder is 22 after subtracting 38 from 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Advancing to step 9:
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: 16796.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.

Going ahead to step 10:
38 goes into 300 7 times with a remainder of 34.
The number 7 becomes the next digit in our result. 
Result so far: 16796.3157
Subtract 266 from 300 to get 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Going ahead to step 11:
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: 16796.31578
The remainder is 36 after subtracting 304 from 340.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Advancing to step 12:
When dividing 360 by 38, we get 9 with a remainder of 18.
The next digit of our result is 9. 
Result so far: 16796.315789
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.

Advancing to step 13:
38 can be fit into 180 4 times, resulting in a remainder of 28.
Put 4 as the next digit of the answer. 
Result so far: 16796.3157894
Deduct 152 from 180 and we're left 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 14:
If we divide 280 by 38, we get 7 and a remainder of 14.
Put 7 as the next digit of the answer. 
Result so far: 16796.31578947
If we subtract 266 from 280, we 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.

The final outcome is 16796.31578947, with a leftover of 1.4e-08.