We're dividing 171237 by 38 
The aim is to understand the frequency of 38 in 171237.

Going ahead to step 1:
38 can be fit into 1 0 times, resulting in a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 1, we end up with 1.
Bring next digit (7) of the dividend behind the 1 and repeat the process: 17 / 38

On to step 2:
17 divided by 38 is 0 with a remainder of 17.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 17, we get 17.
Grab the next digit (1) from the dividend, add it to 17, then carry on: 171 / 38

Step 3:
When dividing 171 by 38, we get 4 with a remainder of 19.
Record the quotient 4 as the next digit in the result. 
Result so far: 4.0
The remainder is 19 after subtracting 152 from 171.
Bring next digit (2) of the dividend behind the 19 and repeat the process: 192 / 38

Going ahead to step 4:
38 goes into 192 5 times with a remainder of 2.
Write down 5 as next digit of the result. 
Result so far: 45.0
If we take 190 away from 192, we end up with 2.
Bring next digit (3) of the dividend behind the 2 and repeat the process: 23 / 38

Moving on to step 5:
38 goes into 23 0 times with a remainder of 23.
Record the quotient 0 as the next digit in the result. 
Result so far: 450.0
The remainder is 23 after subtracting 0 from 23.
Fetch the next digit (7) from the dividend, attach it to 23 and continue: 237 / 38

Step 6:
237 divided by 38 is 6 with a remainder of 9.
The next digit of our result is 6. 
Result so far: 4506.0
Subtracting 228 from 237 leaves us with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Let's proceed to step 7:
When dividing 90 by 38, we get 2 with a remainder of 14.
Use 2 as the next digit of our solution. 
Result so far: 4506.2
Deduct 76 from 90 and we're left with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

On to step 8:
When dividing 140 by 38, we get 3 with a remainder of 26.
The number 3 becomes the next digit in our result. 
Result so far: 4506.23
If we take 114 away from 140, we end up 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.

Moving on to step 9:
If we divide 260 by 38, we get 6 and a remainder of 32.
Use 6 as the next digit of our solution. 
Result so far: 4506.236
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.

Let's proceed to step 10:
38 can be fit into 320 8 times, resulting in a remainder of 16.
The number 8 becomes the next digit in our result. 
Result so far: 4506.2368
If we subtract 304 from 320, we 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.

Advancing to step 11:
38 goes into 160 4 times with a remainder of 8.
Use 4 as the next digit of our solution. 
Result so far: 4506.23684
Subtracting 152 from 160 leaves us with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Advancing to step 12:
80 divided by 38 is 2 with a remainder of 4.
Write down 2 as next digit of the result. 
Result so far: 4506.236842
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.

Going ahead to step 13:
38 can be fit into 40 1 times, resulting in a remainder of 2.
Write down 1 as next digit of the result. 
Result so far: 4506.2368421
If we subtract 38 from 40, we 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.

On to step 14:
The number 38 fits into 20 0 times, leaving a remainder of 20.
Use 0 as the next digit of our solution. 
Result so far: 4506.2368421
Deduct 0 from 20 and we're left 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.

Our division results in 4506.2368421 with a remaining 2e-08.