We look at the division of 173497 by 38 
The aim is to understand the frequency of 38 in 173497.

Let's proceed to step 1:
1 divided by 38 is 0 with a remainder of 1.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 1 leaves us with 1.
Append the next digit (7) from the dividend to 1 and continue with: 17 / 38

Advancing to step 2:
When dividing 17 by 38, we get 0 with a remainder of 17.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 17, we end up with 17.
Append the next digit (3) from the dividend to 17 and continue with: 173 / 38

Going ahead to step 3:
If we divide 173 by 38, we get 4 and a remainder of 21.
The number 4 becomes the next digit in our result. 
Result so far: 4.0
If we subtract 152 from 173, we get 21.
Grab the next digit (4) from the dividend, add it to 21, then carry on: 214 / 38

Going ahead to step 4:
When dividing 214 by 38, we get 5 with a remainder of 24.
Use 5 as the next digit of our solution. 
Result so far: 45.0
Deduct 190 from 214 and we're left with 24.
Take the next digit (9) from the dividend and append it to 24, then repeat: 249 / 38

Going ahead to step 5:
The number 38 fits into 249 6 times, leaving a remainder of 21.
Use 6 as the next digit of our solution. 
Result so far: 456.0
If we subtract 228 from 249, we get 21.
Grab the next digit (7) from the dividend, add it to 21, then carry on: 217 / 38

Advancing to step 6:
38 goes into 217 5 times with a remainder of 27.
The next digit of our result is 5. 
Result so far: 4565.0
Deduct 190 from 217 and we're left with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Advancing to step 7:
270 divided by 38 is 7 with a remainder of 4.
The next digit of our result is 7. 
Result so far: 4565.7
The remainder is 4 after subtracting 266 from 270.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

On to step 8:
40 divided by 38 is 1 with a remainder of 2.
Use 1 as the next digit of our solution. 
Result so far: 4565.71
Subtract 38 from 40 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Step 9:
If we divide 20 by 38, we get 0 and a remainder of 20.
Use 0 as the next digit of our solution. 
Result so far: 4565.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: 4565.7105
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.

Advancing to step 11:
100 divided by 38 is 2 with a remainder of 24.
Record the quotient 2 as the next digit in the result. 
Result so far: 4565.71052
The remainder is 24 after subtracting 76 from 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Let's proceed to step 12:
38 goes into 240 6 times with a remainder of 12.
The next digit of our result is 6. 
Result so far: 4565.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.

Advancing to step 13:
When dividing 120 by 38, we get 3 with a remainder of 6.
The number 3 becomes the next digit in our result. 
Result so far: 4565.7105263
If we subtract 114 from 120, we get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Advancing to step 14:
38 goes into 60 1 times with a remainder of 22.
The next digit of our result is 1. 
Result so far: 4565.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.

The quotient of the division is 4565.71052631, and the remainder is 2.2e-08.