Let's divide 40210039 by 338
The aim is to understand the frequency of 338 in 40210039.

Going ahead to step 1:
The number 338 fits into 4 0 times, leaving a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 4 after subtracting 0 from 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 338

Let's proceed to step 2:
If we divide 40 by 338, we get 0 and a remainder of 40.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 40 leaves us with 40.
Grab the next digit (2) from the dividend, add it to 40, then carry on: 402 / 338

Let's proceed to step 3:
402 divided by 338 is 1 with a remainder of 64.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Deduct 338 from 402 and we're left with 64.
Take the next digit (1) from the dividend and append it to 64, then repeat: 641 / 338

Advancing to step 4:
The number 338 fits into 641 1 times, leaving a remainder of 303.
Put 1 as the next digit of the answer. 
Result so far: 11.0
The remainder is 303 after subtracting 338 from 641.
Fetch the next digit (0) from the dividend, attach it to 303 and continue: 3030 / 338

On to step 5:
3030 divided by 338 is 8 with a remainder of 326.
The number 8 becomes the next digit in our result. 
Result so far: 118.0
If we take 2704 away from 3030, we end up with 326.
Bring next digit (0) of the dividend behind the 326 and repeat the process: 3260 / 338

Moving on to step 6:
338 can be fit into 3260 9 times, resulting in a remainder of 218.
The number 9 becomes the next digit in our result. 
Result so far: 1189.0
The remainder is 218 after subtracting 3042 from 3260.
Grab the next digit (3) from the dividend, add it to 218, then carry on: 2183 / 338

Going ahead to step 7:
338 goes into 2183 6 times with a remainder of 155.
The next digit of our result is 6. 
Result so far: 11896.0
Subtract 2028 from 2183 to get 155.
Fetch the next digit (9) from the dividend, attach it to 155 and continue: 1559 / 338

On to step 8:
1559 divided by 338 is 4 with a remainder of 207.
Record the quotient 4 as the next digit in the result. 
Result so far: 118964.0
If we subtract 1352 from 1559, we get 207.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2070, and continue the process.

Advancing to step 9:
338 goes into 2070 6 times with a remainder of 42.
The next digit of our result is 6. 
Result so far: 118964.6
Subtracting 2028 from 2070 leaves us with 42.
Since there are no more digits in the dividend, we add a zero to the remainder making it 420, and continue the process.

Let's proceed to step 10:
338 goes into 420 1 times with a remainder of 82.
Record the quotient 1 as the next digit in the result. 
Result so far: 118964.61
Subtracting 338 from 420 leaves us with 82.
Since there are no more digits in the dividend, we add a zero to the remainder making it 820, and continue the process.

Let's proceed to step 11:
820 divided by 338 is 2 with a remainder of 144.
Write down 2 as next digit of the result. 
Result so far: 118964.612
If we subtract 676 from 820, we get 144.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1440, and continue the process.

Advancing to step 12:
If we divide 1440 by 338, we get 4 and a remainder of 88.
The next digit of our result is 4. 
Result so far: 118964.6124
The remainder is 88 after subtracting 1352 from 1440.
Since there are no more digits in the dividend, we add a zero to the remainder making it 880, and continue the process.

Moving on to step 13:
If we divide 880 by 338, we get 2 and a remainder of 204.
Use 2 as the next digit of our solution. 
Result so far: 118964.61242
Deduct 676 from 880 and we're left with 204.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2040, and continue the process.

Step 14:
The number 338 fits into 2040 6 times, leaving a remainder of 12.
Use 6 as the next digit of our solution. 
Result so far: 118964.612426
If we take 2028 away from 2040, 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.

Advancing to step 15:
When dividing 120 by 338, we get 0 with a remainder of 120.
Put 0 as the next digit of the answer. 
Result so far: 118964.612426
Subtract 0 from 120 to get 120.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1200, and continue the process.

Advancing to step 16:
When dividing 1200 by 338, we get 3 with a remainder of 186.
Use 3 as the next digit of our solution. 
Result so far: 118964.61242603
Subtracting 1014 from 1200 leaves us with 186.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1860, and continue the process.

In conclusion, the division gives 118964.61242603 with a balance of 1.86e-07.