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

Moving on to step 1:
The number 38 fits into 4 0 times, leaving a remainder of 4.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Append the next digit (8) from the dividend to 4 and continue with: 48 / 38

Let's proceed to step 2:
When dividing 48 by 38, we get 1 with a remainder of 10.
The next digit of our result is 1. 
Result so far: 1.0
Subtract 38 from 48 to get 10.
Fetch the next digit (7) from the dividend, attach it to 10 and continue: 107 / 38

On to step 3:
When dividing 107 by 38, we get 2 with a remainder of 31.
Put 2 as the next digit of the answer. 
Result so far: 12.0
If we take 76 away from 107, we end up with 31.
Fetch the next digit (3) from the dividend, attach it to 31 and continue: 313 / 38

Let's proceed to step 4:
When dividing 313 by 38, we get 8 with a remainder of 9.
Record the quotient 8 as the next digit in the result. 
Result so far: 128.0
If we take 304 away from 313, we end up with 9.
Include the next digit (1) from the dividend after 9, then repeat: 91 / 38

Going ahead to step 5:
38 goes into 91 2 times with a remainder of 15.
Put 2 as the next digit of the answer. 
Result so far: 1282.0
If we take 76 away from 91, we end up with 15.
Grab the next digit (3) from the dividend, add it to 15, then carry on: 153 / 38

Let's proceed to step 6:
The number 38 fits into 153 4 times, leaving a remainder of 1.
Use 4 as the next digit of our solution. 
Result so far: 12824.0
If we take 152 away from 153, we end up with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Going ahead to step 7:
10 divided by 38 is 0 with a remainder of 10.
Record the quotient 0 as the next digit in the result. 
Result so far: 12824.0
Subtracting 0 from 10 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.

Step 8:
When dividing 100 by 38, we get 2 with a remainder of 24.
Write down 2 as next digit of the result. 
Result so far: 12824.02
If we subtract 76 from 100, we 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.

Step 9:
38 can be fit into 240 6 times, resulting in a remainder of 12.
Record the quotient 6 as the next digit in the result. 
Result so far: 12824.026
Subtracting 228 from 240 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.

On to step 10:
38 goes into 120 3 times with a remainder of 6.
The next digit of our result is 3. 
Result so far: 12824.0263
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 11:
60 divided by 38 is 1 with a remainder of 22.
Record the quotient 1 as the next digit in the result. 
Result so far: 12824.02631
If we subtract 38 from 60, we 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.

Advancing to step 12:
If we divide 220 by 38, we get 5 and a remainder of 30.
Put 5 as the next digit of the answer. 
Result so far: 12824.026315
The remainder is 30 after subtracting 190 from 220.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Step 13:
38 goes into 300 7 times with a remainder of 34.
Write down 7 as next digit of the result. 
Result so far: 12824.0263157
Deduct 266 from 300 and we're left 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.

Going ahead to step 14:
38 goes into 340 8 times with a remainder of 36.
The next digit of our result is 8. 
Result so far: 12824.02631578
Subtract 304 from 340 to get 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

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