397202 ÷ 38 
The aim is to understand the frequency of 38 in 397202.

On to step 1:
3 divided by 38 is 0 with a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Take the next digit (9) from the dividend and append it to 3, then repeat: 39 / 38

On to step 2:
The number 38 fits into 39 1 times, leaving a remainder of 1.
The next digit of our result is 1. 
Result so far: 1.0
Subtracting 38 from 39 leaves us with 1.
Fetch the next digit (7) from the dividend, attach it to 1 and continue: 17 / 38

Let's proceed to step 3:
The number 38 fits into 17 0 times, leaving a remainder of 17.
Put 0 as the next digit of the answer. 
Result so far: 10.0
The remainder is 17 after subtracting 0 from 17.
Bring next digit (2) of the dividend behind the 17 and repeat the process: 172 / 38

Advancing to step 4:
The number 38 fits into 172 4 times, leaving a remainder of 20.
Use 4 as the next digit of our solution. 
Result so far: 104.0
The remainder is 20 after subtracting 152 from 172.
Take the next digit (0) from the dividend and append it to 20, then repeat: 200 / 38

Moving on to step 5:
If we divide 200 by 38, we get 5 and a remainder of 10.
Write down 5 as next digit of the result. 
Result so far: 1045.0
If we take 190 away from 200, we end up with 10.
Include the next digit (2) from the dividend after 10, then repeat: 102 / 38

Going ahead to step 6:
The number 38 fits into 102 2 times, leaving a remainder of 26.
The next digit of our result is 2. 
Result so far: 10452.0
If we subtract 76 from 102, 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.

Let's proceed to step 7:
260 divided by 38 is 6 with a remainder of 32.
Put 6 as the next digit of the answer. 
Result so far: 10452.6
Deduct 228 from 260 and we're left 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.

On to step 8:
38 can be fit into 320 8 times, resulting in a remainder of 16.
The next digit of our result is 8. 
Result so far: 10452.68
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.

Step 9:
38 goes into 160 4 times with a remainder of 8.
Put 4 as the next digit of the answer. 
Result so far: 10452.684
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.

Let's proceed to step 10:
38 goes into 80 2 times with a remainder of 4.
The number 2 becomes the next digit in our result. 
Result so far: 10452.6842
The remainder is 4 after subtracting 76 from 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Step 11:
38 can be fit into 40 1 times, resulting in a remainder of 2.
Put 1 as the next digit of the answer. 
Result so far: 10452.68421
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.

Advancing to step 12:
38 goes into 20 0 times with a remainder of 20.
Put 0 as the next digit of the answer. 
Result so far: 10452.68421
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 13:
200 divided by 38 is 5 with a remainder of 10.
Put 5 as the next digit of the answer. 
Result so far: 10452.6842105
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.

Let's proceed to step 14:
38 goes into 100 2 times with a remainder of 24.
The next digit of our result is 2. 
Result so far: 10452.68421052
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.

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