Let's divide 197787 by 38
The aim is to understand the frequency of 38 in 197787.

Advancing to step 1:
When dividing 1 by 38, we get 0 with a remainder of 1.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 1, we get 1.
Append the next digit (9) from the dividend to 1 and continue with: 19 / 38

On to step 2:
If we divide 19 by 38, we get 0 and a remainder of 19.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 19, we get 19.
Take the next digit (7) from the dividend and append it to 19, then repeat: 197 / 38

Moving on to step 3:
When dividing 197 by 38, we get 5 with a remainder of 7.
The number 5 becomes the next digit in our result. 
Result so far: 5.0
The remainder is 7 after subtracting 190 from 197.
Take the next digit (7) from the dividend and append it to 7, then repeat: 77 / 38

Let's proceed to step 4:
38 goes into 77 2 times with a remainder of 1.
Write down 2 as next digit of the result. 
Result so far: 52.0
Subtracting 76 from 77 leaves us with 1.
Include the next digit (8) from the dividend after 1, then repeat: 18 / 38

On to step 5:
18 divided by 38 is 0 with a remainder of 18.
Record the quotient 0 as the next digit in the result. 
Result so far: 520.0
If we take 0 away from 18, we end up with 18.
Bring next digit (7) of the dividend behind the 18 and repeat the process: 187 / 38

Advancing to step 6:
If we divide 187 by 38, we get 4 and a remainder of 35.
Use 4 as the next digit of our solution. 
Result so far: 5204.0
If we subtract 152 from 187, we get 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Advancing to step 7:
38 goes into 350 9 times with a remainder of 8.
Record the quotient 9 as the next digit in the result. 
Result so far: 5204.9
If we subtract 342 from 350, we get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

On to step 8:
38 can be fit into 80 2 times, resulting in a remainder of 4.
The number 2 becomes the next digit in our result. 
Result so far: 5204.92
Subtract 76 from 80 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.

Going ahead to step 9:
38 goes into 40 1 times with a remainder of 2.
The number 1 becomes the next digit in our result. 
Result so far: 5204.921
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.

Advancing to step 10:
38 can be fit into 20 0 times, resulting in a remainder of 20.
The next digit of our result is 0. 
Result so far: 5204.921
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 11:
38 can be fit into 200 5 times, resulting in a remainder of 10.
Put 5 as the next digit of the answer. 
Result so far: 5204.92105
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.

Step 12:
If we divide 100 by 38, we get 2 and a remainder of 24.
Put 2 as the next digit of the answer. 
Result so far: 5204.921052
If we subtract 76 from 100, we get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Moving on to step 13:
240 divided by 38 is 6 with a remainder of 12.
The number 6 becomes the next digit in our result. 
Result so far: 5204.9210526
If we subtract 228 from 240, we get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Step 14:
38 goes into 120 3 times with a remainder of 6.
Use 3 as the next digit of our solution. 
Result so far: 5204.92105263
Deduct 114 from 120 and we're left 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.

The final result is 5204.92105263 with a remainder of 6e-09.