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

Going ahead to step 1:
When dividing 7 by 38, we get 0 with a remainder of 7.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 7 after subtracting 0 from 7.
Fetch the next digit (9) from the dividend, attach it to 7 and continue: 79 / 38

Going ahead to step 2:
38 goes into 79 2 times with a remainder of 3.
Put 2 as the next digit of the answer. 
Result so far: 2.0
If we take 76 away from 79, we end up with 3.
Append the next digit (8) from the dividend to 3 and continue with: 38 / 38

On to step 3:
The number 38 fits into 38 1 times, leaving a remainder of 0.
Write down 1 as next digit of the result. 
Result so far: 21.0
The remainder is 0 after subtracting 38 from 38.
Bring next digit (3) of the dividend behind the 0 and repeat the process: 3 / 38

Advancing to step 4:
The number 38 fits into 3 0 times, leaving a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 210.0
Deduct 0 from 3 and we're left with 3.
Grab the next digit (3) from the dividend, add it to 3, then carry on: 33 / 38

Advancing to step 5:
38 goes into 33 0 times with a remainder of 33.
Put 0 as the next digit of the answer. 
Result so far: 2100.0
If we take 0 away from 33, we end up with 33.
Bring next digit (9) of the dividend behind the 33 and repeat the process: 339 / 38

On to step 6:
339 divided by 38 is 8 with a remainder of 35.
Use 8 as the next digit of our solution. 
Result so far: 21008.0
The remainder is 35 after subtracting 304 from 339.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Advancing to step 7:
38 can be fit into 350 9 times, resulting in a remainder of 8.
The next digit of our result is 9. 
Result so far: 21008.9
Subtract 342 from 350 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

On to step 8:
38 can be fit into 80 2 times, resulting in a remainder of 4.
Use 2 as the next digit of our solution. 
Result so far: 21008.92
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 9:
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: 21008.921
The remainder is 2 after subtracting 38 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Moving on to step 10:
When dividing 20 by 38, we get 0 with a remainder of 20.
Write down 0 as next digit of the result. 
Result so far: 21008.921
If we subtract 0 from 20, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Moving on to step 11:
When dividing 200 by 38, we get 5 with a remainder of 10.
The number 5 becomes the next digit in our result. 
Result so far: 21008.92105
Subtracting 190 from 200 leaves us with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Let's proceed to step 12:
If we divide 100 by 38, we get 2 and a remainder of 24.
The number 2 becomes the next digit in our result. 
Result so far: 21008.921052
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.

Advancing to step 13:
The number 38 fits into 240 6 times, leaving a remainder of 12.
Use 6 as the next digit of our solution. 
Result so far: 21008.9210526
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.

Let's proceed to step 14:
If we divide 120 by 38, we get 3 and a remainder of 6.
Use 3 as the next digit of our solution. 
Result so far: 21008.92105263
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.

The final outcome is 21008.92105263, with a leftover of 6e-09.