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

On to step 1:
When dividing 5 by 38, we get 0 with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Take the next digit (8) from the dividend and append it to 5, then repeat: 58 / 38

Moving on to step 2:
If we divide 58 by 38, we get 1 and a remainder of 20.
Use 1 as the next digit of our solution. 
Result so far: 1.0
If we subtract 38 from 58, we get 20.
Include the next digit (7) from the dividend after 20, then repeat: 207 / 38

Step 3:
The number 38 fits into 207 5 times, leaving a remainder of 17.
Put 5 as the next digit of the answer. 
Result so far: 15.0
If we subtract 190 from 207, we get 17.
Bring next digit (3) of the dividend behind the 17 and repeat the process: 173 / 38

Step 4:
38 goes into 173 4 times with a remainder of 21.
Record the quotient 4 as the next digit in the result. 
Result so far: 154.0
Subtracting 152 from 173 leaves us with 21.
Fetch the next digit (2) from the dividend, attach it to 21 and continue: 212 / 38

Advancing to step 5:
If we divide 212 by 38, we get 5 and a remainder of 22.
The next digit of our result is 5. 
Result so far: 1545.0
The remainder is 22 after subtracting 190 from 212.
Bring next digit (3) of the dividend behind the 22 and repeat the process: 223 / 38

Going ahead to step 6:
When dividing 223 by 38, we get 5 with a remainder of 33.
Write down 5 as next digit of the result. 
Result so far: 15455.0
Deduct 190 from 223 and we're left with 33.
Since there are no more digits in the dividend, we add a zero to the remainder making it 330, and continue the process.

Going ahead to step 7:
38 can be fit into 330 8 times, resulting in a remainder of 26.
Write down 8 as next digit of the result. 
Result so far: 15455.8
Deduct 304 from 330 and we're left with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Step 8:
When dividing 260 by 38, we get 6 with a remainder of 32.
The number 6 becomes the next digit in our result. 
Result so far: 15455.86
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.

Advancing to step 9:
If we divide 320 by 38, we get 8 and a remainder of 16.
Use 8 as the next digit of our solution. 
Result so far: 15455.868
Deduct 304 from 320 and we're left 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.

On to step 10:
When dividing 160 by 38, we get 4 with a remainder of 8.
Record the quotient 4 as the next digit in the result. 
Result so far: 15455.8684
Subtracting 152 from 160 leaves us with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

On to step 11:
38 goes into 80 2 times with a remainder of 4.
Put 2 as the next digit of the answer. 
Result so far: 15455.86842
Subtract 76 from 80 to get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Moving on to step 12:
40 divided by 38 is 1 with a remainder of 2.
Put 1 as the next digit of the answer. 
Result so far: 15455.868421
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.

On to step 13:
The number 38 fits into 20 0 times, leaving a remainder of 20.
Put 0 as the next digit of the answer. 
Result so far: 15455.868421
Deduct 0 from 20 and we're left with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 14:
200 divided by 38 is 5 with a remainder of 10.
The number 5 becomes the next digit in our result. 
Result so far: 15455.86842105
Subtract 190 from 200 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

The quotient of the division is 15455.86842105, and the remainder is 1e-08.