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

On to step 1:
If we divide 8 by 38, we get 0 and a remainder of 8.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 8, we get 8.
Append the next digit (5) from the dividend to 8 and continue with: 85 / 38

Moving on to step 2:
When dividing 85 by 38, we get 2 with a remainder of 9.
Use 2 as the next digit of our solution. 
Result so far: 2.0
The remainder is 9 after subtracting 76 from 85.
Include the next digit (7) from the dividend after 9, then repeat: 97 / 38

Moving on to step 3:
The number 38 fits into 97 2 times, leaving a remainder of 21.
Record the quotient 2 as the next digit in the result. 
Result so far: 22.0
If we subtract 76 from 97, we get 21.
Bring next digit (1) of the dividend behind the 21 and repeat the process: 211 / 38

Moving on to step 4:
38 can be fit into 211 5 times, resulting in a remainder of 21.
Put 5 as the next digit of the answer. 
Result so far: 225.0
Subtracting 190 from 211 leaves us with 21.
Include the next digit (2) from the dividend after 21, then repeat: 212 / 38

On to step 5:
When dividing 212 by 38, we get 5 with a remainder of 22.
The number 5 becomes the next digit in our result. 
Result so far: 2255.0
If we take 190 away from 212, we end up with 22.
Grab the next digit (3) from the dividend, add it to 22, then carry on: 223 / 38

On to step 6:
38 can be fit into 223 5 times, resulting in a remainder of 33.
Use 5 as the next digit of our solution. 
Result so far: 22555.0
Subtract 190 from 223 to get 33.
Since there are no more digits in the dividend, we add a zero to the remainder making it 330, and continue the process.

On to step 7:
330 divided by 38 is 8 with a remainder of 26.
The next digit of our result is 8. 
Result so far: 22555.8
If we subtract 304 from 330, we get 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:
38 can be fit into 260 6 times, resulting in a remainder of 32.
The next digit of our result is 6. 
Result so far: 22555.86
The remainder is 32 after subtracting 228 from 260.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Going ahead to step 9:
38 goes into 320 8 times with a remainder of 16.
Write down 8 as next digit of the result. 
Result so far: 22555.868
If we take 304 away from 320, we end up 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.

Step 10:
If we divide 160 by 38, we get 4 and a remainder of 8.
The next digit of our result is 4. 
Result so far: 22555.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.

Moving on to step 11:
38 can be fit into 80 2 times, resulting in a remainder of 4.
Record the quotient 2 as the next digit in the result. 
Result so far: 22555.86842
Deduct 76 from 80 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Going ahead to step 12:
40 divided by 38 is 1 with a remainder of 2.
Write down 1 as next digit of the result. 
Result so far: 22555.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.

Step 13:
When dividing 20 by 38, we get 0 with a remainder of 20.
The number 0 becomes the next digit in our result. 
Result so far: 22555.868421
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.

Let's proceed to step 14:
When dividing 200 by 38, we get 5 with a remainder of 10.
Put 5 as the next digit of the answer. 
Result so far: 22555.86842105
The remainder is 10 after subtracting 190 from 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

The final result is 22555.86842105 with a remainder of 1e-08.