We divide 395974 by 38
The aim is to understand the frequency of 38 in 395974.

On to step 1:
When dividing 3 by 38, we get 0 with a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Take the next digit (9) from the dividend and append it to 3, then repeat: 39 / 38

Step 2:
38 goes into 39 1 times with a remainder of 1.
Put 1 as the next digit of the answer. 
Result so far: 1.0
If we take 38 away from 39, we end up with 1.
Grab the next digit (5) from the dividend, add it to 1, then carry on: 15 / 38

Moving on to step 3:
38 can be fit into 15 0 times, resulting in a remainder of 15.
Put 0 as the next digit of the answer. 
Result so far: 10.0
Subtract 0 from 15 to get 15.
Append the next digit (9) from the dividend to 15 and continue with: 159 / 38

Let's proceed to step 4:
38 goes into 159 4 times with a remainder of 7.
Record the quotient 4 as the next digit in the result. 
Result so far: 104.0
Subtract 152 from 159 to get 7.
Include the next digit (7) from the dividend after 7, then repeat: 77 / 38

Going ahead to step 5:
77 divided by 38 is 2 with a remainder of 1.
Record the quotient 2 as the next digit in the result. 
Result so far: 1042.0
Subtracting 76 from 77 leaves us with 1.
Grab the next digit (4) from the dividend, add it to 1, then carry on: 14 / 38

Step 6:
14 divided by 38 is 0 with a remainder of 14.
Record the quotient 0 as the next digit in the result. 
Result so far: 10420.0
If we subtract 0 from 14, 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.

Going ahead to step 7:
The number 38 fits into 140 3 times, leaving a remainder of 26.
The next digit of our result is 3. 
Result so far: 10420.3
The remainder is 26 after subtracting 114 from 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Going ahead to 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: 10420.36
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.

Moving on to step 9:
The number 38 fits into 320 8 times, leaving a remainder of 16.
Record the quotient 8 as the next digit in the result. 
Result so far: 10420.368
Subtracting 304 from 320 leaves us 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: 10420.3684
The remainder is 8 after subtracting 152 from 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Advancing to step 11:
If we divide 80 by 38, we get 2 and a remainder of 4.
The next digit of our result is 2. 
Result so far: 10420.36842
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.

Step 12:
38 can be fit into 40 1 times, resulting in a remainder of 2.
Write down 1 as next digit of the result. 
Result so far: 10420.368421
Deduct 38 from 40 and we're left 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:
20 divided by 38 is 0 with a remainder of 20.
Use 0 as the next digit of our solution. 
Result so far: 10420.368421
If we subtract 0 from 20, we 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.

On to step 14:
If we divide 200 by 38, we get 5 and a remainder of 10.
Put 5 as the next digit of the answer. 
Result so far: 10420.36842105
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.

Our division results in 10420.36842105 with a remaining 1e-08.