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

Going ahead to step 1:
If we divide 6 by 38, we get 0 and a remainder of 6.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 6 leaves us with 6.
Fetch the next digit (5) from the dividend, attach it to 6 and continue: 65 / 38

Moving on to step 2:
The number 38 fits into 65 1 times, leaving a remainder of 27.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Deduct 38 from 65 and we're left with 27.
Include the next digit (4) from the dividend after 27, then repeat: 274 / 38

Going ahead to step 3:
274 divided by 38 is 7 with a remainder of 8.
Record the quotient 7 as the next digit in the result. 
Result so far: 17.0
If we subtract 266 from 274, we get 8.
Include the next digit (1) from the dividend after 8, then repeat: 81 / 38

Let's proceed to step 4:
38 can be fit into 81 2 times, resulting in a remainder of 5.
The number 2 becomes the next digit in our result. 
Result so far: 172.0
Subtracting 76 from 81 leaves us with 5.
Append the next digit (9) from the dividend to 5 and continue with: 59 / 38

Step 5:
The number 38 fits into 59 1 times, leaving a remainder of 21.
The next digit of our result is 1. 
Result so far: 1721.0
Subtracting 38 from 59 leaves us with 21.
Grab the next digit (7) from the dividend, add it to 21, then carry on: 217 / 38

On to step 6:
When dividing 217 by 38, we get 5 with a remainder of 27.
Write down 5 as next digit of the result. 
Result so far: 17215.0
Subtract 190 from 217 to get 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Moving on to step 7:
If we divide 270 by 38, we get 7 and a remainder of 4.
Write down 7 as next digit of the result. 
Result so far: 17215.7
Subtracting 266 from 270 leaves us 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 8:
38 can be fit into 40 1 times, resulting in a remainder of 2.
Use 1 as the next digit of our solution. 
Result so far: 17215.71
If we take 38 away from 40, we end up 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 9:
If we divide 20 by 38, we get 0 and a remainder of 20.
Put 0 as the next digit of the answer. 
Result so far: 17215.71
Subtracting 0 from 20 leaves us with 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 10:
200 divided by 38 is 5 with a remainder of 10.
Put 5 as the next digit of the answer. 
Result so far: 17215.7105
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.

Advancing to step 11:
38 can be fit into 100 2 times, resulting in a remainder of 24.
Use 2 as the next digit of our solution. 
Result so far: 17215.71052
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.

On to step 12:
240 divided by 38 is 6 with a remainder of 12.
Put 6 as the next digit of the answer. 
Result so far: 17215.710526
If we take 228 away from 240, we end up with 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 13:
120 divided by 38 is 3 with a remainder of 6.
Record the quotient 3 as the next digit in the result. 
Result so far: 17215.7105263
Subtracting 114 from 120 leaves us 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.

Going ahead to step 14:
When dividing 60 by 38, we get 1 with a remainder of 22.
The next digit of our result is 1. 
Result so far: 17215.71052631
Deduct 38 from 60 and we're left with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

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