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

Moving on to step 1:
38 can be fit into 9 0 times, resulting in a remainder of 9.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 9 leaves us with 9.
Append the next digit (9) from the dividend to 9 and continue with: 99 / 38

Going ahead to step 2:
99 divided by 38 is 2 with a remainder of 23.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
Deduct 76 from 99 and we're left with 23.
Fetch the next digit (7) from the dividend, attach it to 23 and continue: 237 / 38

Going ahead to step 3:
237 divided by 38 is 6 with a remainder of 9.
Put 6 as the next digit of the answer. 
Result so far: 26.0
The remainder is 9 after subtracting 228 from 237.
Include the next digit (1) from the dividend after 9, then repeat: 91 / 38

On to step 4:
When dividing 91 by 38, we get 2 with a remainder of 15.
Put 2 as the next digit of the answer. 
Result so far: 262.0
If we take 76 away from 91, we end up with 15.
Fetch the next digit (3) from the dividend, attach it to 15 and continue: 153 / 38

Let's proceed to step 5:
38 goes into 153 4 times with a remainder of 1.
Record the quotient 4 as the next digit in the result. 
Result so far: 2624.0
The remainder is 1 after subtracting 152 from 153.
Bring next digit (8) of the dividend behind the 1 and repeat the process: 18 / 38

Step 6:
38 can be fit into 18 0 times, resulting in a remainder of 18.
Record the quotient 0 as the next digit in the result. 
Result so far: 26240.0
Subtracting 0 from 18 leaves us with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Step 7:
180 divided by 38 is 4 with a remainder of 28.
Use 4 as the next digit of our solution. 
Result so far: 26240.4
Subtract 152 from 180 to get 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Moving on to step 8:
38 goes into 280 7 times with a remainder of 14.
Use 7 as the next digit of our solution. 
Result so far: 26240.47
The remainder is 14 after subtracting 266 from 280.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Moving on to step 9:
If we divide 140 by 38, we get 3 and a remainder of 26.
Write down 3 as next digit of the result. 
Result so far: 26240.473
Subtracting 114 from 140 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 10:
38 can be fit into 260 6 times, resulting in a remainder of 32.
Record the quotient 6 as the next digit in the result. 
Result so far: 26240.4736
If we subtract 228 from 260, we get 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Advancing to step 11:
320 divided by 38 is 8 with a remainder of 16.
Record the quotient 8 as the next digit in the result. 
Result so far: 26240.47368
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.

On to step 12:
If we divide 160 by 38, we get 4 and a remainder of 8.
The number 4 becomes the next digit in our result. 
Result so far: 26240.473684
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.

Advancing to step 13:
The number 38 fits into 80 2 times, leaving a remainder of 4.
The number 2 becomes the next digit in our result. 
Result so far: 26240.4736842
Deduct 76 from 80 and we're left 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.

Moving on to step 14:
The number 38 fits into 40 1 times, leaving a remainder of 2.
Record the quotient 1 as the next digit in the result. 
Result so far: 26240.47368421
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.

The quotient of the division is 26240.47368421, and the remainder is 2e-09.