We divide 946117 by 38
The aim is to understand the frequency of 38 in 946117.

Advancing 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
Deduct 0 from 9 and we're left with 9.
Include the next digit (4) from the dividend after 9, then repeat: 94 / 38

Advancing to step 2:
If we divide 94 by 38, we get 2 and a remainder of 18.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
The remainder is 18 after subtracting 76 from 94.
Take the next digit (6) from the dividend and append it to 18, then repeat: 186 / 38

Going ahead to step 3:
If we divide 186 by 38, we get 4 and a remainder of 34.
Record the quotient 4 as the next digit in the result. 
Result so far: 24.0
Deduct 152 from 186 and we're left with 34.
Grab the next digit (1) from the dividend, add it to 34, then carry on: 341 / 38

Advancing to step 4:
341 divided by 38 is 8 with a remainder of 37.
Put 8 as the next digit of the answer. 
Result so far: 248.0
Subtracting 304 from 341 leaves us with 37.
Bring next digit (1) of the dividend behind the 37 and repeat the process: 371 / 38

Moving on to step 5:
When dividing 371 by 38, we get 9 with a remainder of 29.
Write down 9 as next digit of the result. 
Result so far: 2489.0
Deduct 342 from 371 and we're left with 29.
Grab the next digit (7) from the dividend, add it to 29, then carry on: 297 / 38

Step 6:
297 divided by 38 is 7 with a remainder of 31.
Put 7 as the next digit of the answer. 
Result so far: 24897.0
If we take 266 away from 297, we end up with 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

Let's proceed to step 7:
310 divided by 38 is 8 with a remainder of 6.
The number 8 becomes the next digit in our result. 
Result so far: 24897.8
The remainder is 6 after subtracting 304 from 310.
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 8:
When dividing 60 by 38, we get 1 with a remainder of 22.
Record the quotient 1 as the next digit in the result. 
Result so far: 24897.81
Subtract 38 from 60 to 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.

Step 9:
When dividing 220 by 38, we get 5 with a remainder of 30.
Put 5 as the next digit of the answer. 
Result so far: 24897.815
Subtracting 190 from 220 leaves us with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Moving on to step 10:
When dividing 300 by 38, we get 7 with a remainder of 34.
The next digit of our result is 7. 
Result so far: 24897.8157
Subtract 266 from 300 to get 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Moving on to step 11:
The number 38 fits into 340 8 times, leaving a remainder of 36.
Use 8 as the next digit of our solution. 
Result so far: 24897.81578
If we subtract 304 from 340, we get 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Step 12:
38 can be fit into 360 9 times, resulting in a remainder of 18.
Write down 9 as next digit of the result. 
Result so far: 24897.815789
The remainder is 18 after subtracting 342 from 360.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Step 13:
If we divide 180 by 38, we get 4 and a remainder of 28.
Use 4 as the next digit of our solution. 
Result so far: 24897.8157894
Subtracting 152 from 180 leaves us with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

On to step 14:
If we divide 280 by 38, we get 7 and a remainder of 14.
Record the quotient 7 as the next digit in the result. 
Result so far: 24897.81578947
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.

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