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

Advancing to step 1:
38 can be fit into 3 0 times, resulting in a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Grab the next digit (1) from the dividend, add it to 3, then carry on: 31 / 38

Step 2:
When dividing 31 by 38, we get 0 with a remainder of 31.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 31 to get 31.
Fetch the next digit (7) from the dividend, attach it to 31 and continue: 317 / 38

Going ahead to step 3:
When dividing 317 by 38, we get 8 with a remainder of 13.
Put 8 as the next digit of the answer. 
Result so far: 8.0
Subtract 304 from 317 to get 13.
Grab the next digit (5) from the dividend, add it to 13, then carry on: 135 / 38

On to step 4:
38 can be fit into 135 3 times, resulting in a remainder of 21.
Write down 3 as next digit of the result. 
Result so far: 83.0
If we take 114 away from 135, we end up with 21.
Include the next digit (9) from the dividend after 21, then repeat: 219 / 38

On to step 5:
When dividing 219 by 38, we get 5 with a remainder of 29.
The number 5 becomes the next digit in our result. 
Result so far: 835.0
Deduct 190 from 219 and we're left with 29.
Fetch the next digit (3) from the dividend, attach it to 29 and continue: 293 / 38

Let's proceed to step 6:
38 can be fit into 293 7 times, resulting in a remainder of 27.
Use 7 as the next digit of our solution. 
Result so far: 8357.0
Subtract 266 from 293 to get 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Step 7:
38 can be fit into 270 7 times, resulting in a remainder of 4.
The next digit of our result is 7. 
Result so far: 8357.7
Subtract 266 from 270 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.

On to step 8:
38 goes into 40 1 times with a remainder of 2.
The next digit of our result is 1. 
Result so far: 8357.71
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 9:
The number 38 fits into 20 0 times, leaving a remainder of 20.
Record the quotient 0 as the next digit in the result. 
Result so far: 8357.71
Subtract 0 from 20 to get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Step 10:
38 can be fit into 200 5 times, resulting in a remainder of 10.
Record the quotient 5 as the next digit in the result. 
Result so far: 8357.7105
If we take 190 away from 200, we end up 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.

On to step 11:
When dividing 100 by 38, we get 2 with a remainder of 24.
Put 2 as the next digit of the answer. 
Result so far: 8357.71052
Deduct 76 from 100 and we're left with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

On to step 12:
When dividing 240 by 38, we get 6 with a remainder of 12.
Use 6 as the next digit of our solution. 
Result so far: 8357.710526
The remainder is 12 after subtracting 228 from 240.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Let's proceed to step 13:
38 goes into 120 3 times with a remainder of 6.
The next digit of our result is 3. 
Result so far: 8357.7105263
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.

Step 14:
If we divide 60 by 38, we get 1 and a remainder of 22.
Use 1 as the next digit of our solution. 
Result so far: 8357.71052631
Subtract 38 from 60 to 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.

The final outcome is 8357.71052631, with a leftover of 2.2e-08.