397734 divided by 38 
The aim is to understand the frequency of 38 in 397734.

On to step 1:
38 goes into 3 0 times with a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Bring next digit (9) of the dividend behind the 3 and repeat the process: 39 / 38

Advancing to step 2:
39 divided by 38 is 1 with a remainder of 1.
Use 1 as the next digit of our solution. 
Result so far: 1.0
If we take 38 away from 39, we end up with 1.
Grab the next digit (7) from the dividend, add it to 1, then carry on: 17 / 38

Let's proceed to step 3:
38 can be fit into 17 0 times, resulting in a remainder of 17.
Record the quotient 0 as the next digit in the result. 
Result so far: 10.0
If we subtract 0 from 17, we get 17.
Include the next digit (7) from the dividend after 17, then repeat: 177 / 38

Advancing to step 4:
If we divide 177 by 38, we get 4 and a remainder of 25.
Put 4 as the next digit of the answer. 
Result so far: 104.0
The remainder is 25 after subtracting 152 from 177.
Append the next digit (3) from the dividend to 25 and continue with: 253 / 38

On to step 5:
38 goes into 253 6 times with a remainder of 25.
The next digit of our result is 6. 
Result so far: 1046.0
Subtracting 228 from 253 leaves us with 25.
Grab the next digit (4) from the dividend, add it to 25, then carry on: 254 / 38

Advancing to step 6:
If we divide 254 by 38, we get 6 and a remainder of 26.
Put 6 as the next digit of the answer. 
Result so far: 10466.0
Subtracting 228 from 254 leaves us 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.

On to step 7:
38 can be fit into 260 6 times, resulting in a remainder of 32.
Put 6 as the next digit of the answer. 
Result so far: 10466.6
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.

Let's proceed to step 8:
320 divided by 38 is 8 with a remainder of 16.
The number 8 becomes the next digit in our result. 
Result so far: 10466.68
Subtract 304 from 320 to get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Moving on to step 9:
The number 38 fits into 160 4 times, leaving a remainder of 8.
Use 4 as the next digit of our solution. 
Result so far: 10466.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 can be fit into 80 2 times, resulting in a remainder of 4.
Use 2 as the next digit of our solution. 
Result so far: 10466.6842
If we subtract 76 from 80, we 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 11:
When dividing 40 by 38, we get 1 with a remainder of 2.
Record the quotient 1 as the next digit in the result. 
Result so far: 10466.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.

On to step 12:
38 can be fit into 20 0 times, resulting in a remainder of 20.
Write down 0 as next digit of the result. 
Result so far: 10466.68421
The remainder is 20 after subtracting 0 from 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Moving on to step 13:
The number 38 fits into 200 5 times, leaving a remainder of 10.
Write down 5 as next digit of the result. 
Result so far: 10466.6842105
Subtracting 190 from 200 leaves us 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.

Let's proceed to step 14:
When dividing 100 by 38, we get 2 with a remainder of 24.
The number 2 becomes the next digit in our result. 
Result so far: 10466.68421052
If we take 76 away from 100, we end up 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.

The final outcome is 10466.68421052, with a leftover of 2.4e-08.