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

Moving on to step 1:
If we divide 9 by 38, we get 0 and a remainder of 9.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 9 after subtracting 0 from 9.
Fetch the next digit (9) from the dividend, attach it to 9 and continue: 99 / 38

Advancing to step 2:
When dividing 99 by 38, we get 2 with a remainder of 23.
Write down 2 as next digit of the result. 
Result so far: 2.0
Subtract 76 from 99 to get 23.
Take the next digit (4) from the dividend and append it to 23, then repeat: 234 / 38

Moving on to step 3:
If we divide 234 by 38, we get 6 and a remainder of 6.
The number 6 becomes the next digit in our result. 
Result so far: 26.0
If we subtract 228 from 234, we get 6.
Fetch the next digit (1) from the dividend, attach it to 6 and continue: 61 / 38

Advancing to step 4:
The number 38 fits into 61 1 times, leaving a remainder of 23.
The number 1 becomes the next digit in our result. 
Result so far: 261.0
Subtracting 38 from 61 leaves us with 23.
Fetch the next digit (0) from the dividend, attach it to 23 and continue: 230 / 38

Let's proceed to step 5:
When dividing 230 by 38, we get 6 with a remainder of 2.
Use 6 as the next digit of our solution. 
Result so far: 2616.0
Subtract 228 from 230 to get 2.
Append the next digit (7) from the dividend to 2 and continue with: 27 / 38

Going ahead to step 6:
If we divide 27 by 38, we get 0 and a remainder of 27.
The next digit of our result is 0. 
Result so far: 26160.0
Subtracting 0 from 27 leaves us 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.

Moving on to step 7:
38 can be fit into 270 7 times, resulting in a remainder of 4.
The number 7 becomes the next digit in our result. 
Result so far: 26160.7
If we subtract 266 from 270, we 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.

Moving on to step 8:
38 can be fit into 40 1 times, resulting in a remainder of 2.
The number 1 becomes the next digit in our result. 
Result so far: 26160.71
Subtracting 38 from 40 leaves us 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:
38 goes into 20 0 times with a remainder of 20.
Use 0 as the next digit of our solution. 
Result so far: 26160.71
The remainder is 20 after subtracting 0 from 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Advancing to step 10:
The number 38 fits into 200 5 times, leaving a remainder of 10.
Put 5 as the next digit of the answer. 
Result so far: 26160.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.

On to step 11:
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: 26160.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.

On to step 12:
38 goes into 240 6 times with a remainder of 12.
Write down 6 as next digit of the result. 
Result so far: 26160.710526
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.

Moving on to step 13:
If we divide 120 by 38, we get 3 and a remainder of 6.
Record the quotient 3 as the next digit in the result. 
Result so far: 26160.7105263
Subtract 114 from 120 to 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.

Going ahead to step 14:
60 divided by 38 is 1 with a remainder of 22.
Use 1 as the next digit of our solution. 
Result so far: 26160.71052631
If we subtract 38 from 60, we get 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 final result is 26160.71052631 with a remainder of 2.2e-08.