We look at the division of 7835798 by 338 
The aim is to understand the frequency of 338 in 7835798.

On to step 1:
338 can be fit into 7 0 times, resulting in a remainder of 7.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 7, we end up with 7.
Grab the next digit (8) from the dividend, add it to 7, then carry on: 78 / 338

Advancing to step 2:
338 can be fit into 78 0 times, resulting in a remainder of 78.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 78 after subtracting 0 from 78.
Append the next digit (3) from the dividend to 78 and continue with: 783 / 338

Going ahead to step 3:
338 goes into 783 2 times with a remainder of 107.
Put 2 as the next digit of the answer. 
Result so far: 2.0
Subtracting 676 from 783 leaves us with 107.
Append the next digit (5) from the dividend to 107 and continue with: 1075 / 338

Moving on to step 4:
338 goes into 1075 3 times with a remainder of 61.
The next digit of our result is 3. 
Result so far: 23.0
Deduct 1014 from 1075 and we're left with 61.
Fetch the next digit (7) from the dividend, attach it to 61 and continue: 617 / 338

On to step 5:
617 divided by 338 is 1 with a remainder of 279.
Put 1 as the next digit of the answer. 
Result so far: 231.0
Deduct 338 from 617 and we're left with 279.
Grab the next digit (9) from the dividend, add it to 279, then carry on: 2799 / 338

Moving on to step 6:
338 can be fit into 2799 8 times, resulting in a remainder of 95.
Use 8 as the next digit of our solution. 
Result so far: 2318.0
Deduct 2704 from 2799 and we're left with 95.
Append the next digit (8) from the dividend to 95 and continue with: 958 / 338

Step 7:
When dividing 958 by 338, we get 2 with a remainder of 282.
Write down 2 as next digit of the result. 
Result so far: 23182.0
The remainder is 282 after subtracting 676 from 958.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2820, and continue the process.

Going ahead to step 8:
The number 338 fits into 2820 8 times, leaving a remainder of 116.
The number 8 becomes the next digit in our result. 
Result so far: 23182.8
If we take 2704 away from 2820, we end up with 116.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1160, and continue the process.

Let's proceed to step 9:
When dividing 1160 by 338, we get 3 with a remainder of 146.
Record the quotient 3 as the next digit in the result. 
Result so far: 23182.83
If we subtract 1014 from 1160, we get 146.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1460, and continue the process.

On to step 10:
When dividing 1460 by 338, we get 4 with a remainder of 108.
The number 4 becomes the next digit in our result. 
Result so far: 23182.834
If we subtract 1352 from 1460, we get 108.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1080, and continue the process.

Moving on to step 11:
When dividing 1080 by 338, we get 3 with a remainder of 66.
Write down 3 as next digit of the result. 
Result so far: 23182.8343
If we subtract 1014 from 1080, we get 66.
Since there are no more digits in the dividend, we add a zero to the remainder making it 660, and continue the process.

On to step 12:
The number 338 fits into 660 1 times, leaving a remainder of 322.
Record the quotient 1 as the next digit in the result. 
Result so far: 23182.83431
If we subtract 338 from 660, we get 322.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3220, and continue the process.

Let's proceed to step 13:
3220 divided by 338 is 9 with a remainder of 178.
Record the quotient 9 as the next digit in the result. 
Result so far: 23182.834319
If we take 3042 away from 3220, we end up with 178.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1780, and continue the process.

Moving on to step 14:
When dividing 1780 by 338, we get 5 with a remainder of 90.
The next digit of our result is 5. 
Result so far: 23182.8343195
Subtract 1690 from 1780 to get 90.
Since there are no more digits in the dividend, we add a zero to the remainder making it 900, and continue the process.

Moving on to step 15:
When dividing 900 by 338, we get 2 with a remainder of 224.
The number 2 becomes the next digit in our result. 
Result so far: 23182.83431952
Subtracting 676 from 900 leaves us with 224.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2240, and continue the process.

The final result is 23182.83431952 with a remainder of 2.24e-07.