Let's divide 40409697 by 349
The aim is to understand the frequency of 349 in 40409697.

On to step 1:
349 goes into 4 0 times with a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 349

Going ahead to step 2:
When dividing 40 by 349, we get 0 with a remainder of 40.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 40 to get 40.
Append the next digit (4) from the dividend to 40 and continue with: 404 / 349

Let's proceed to step 3:
When dividing 404 by 349, we get 1 with a remainder of 55.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Deduct 349 from 404 and we're left with 55.
Fetch the next digit (0) from the dividend, attach it to 55 and continue: 550 / 349

Let's proceed to step 4:
If we divide 550 by 349, we get 1 and a remainder of 201.
Use 1 as the next digit of our solution. 
Result so far: 11.0
If we take 349 away from 550, we end up with 201.
Include the next digit (9) from the dividend after 201, then repeat: 2019 / 349

On to step 5:
The number 349 fits into 2019 5 times, leaving a remainder of 274.
The next digit of our result is 5. 
Result so far: 115.0
Deduct 1745 from 2019 and we're left with 274.
Fetch the next digit (6) from the dividend, attach it to 274 and continue: 2746 / 349

On to step 6:
If we divide 2746 by 349, we get 7 and a remainder of 303.
Write down 7 as next digit of the result. 
Result so far: 1157.0
Deduct 2443 from 2746 and we're left with 303.
Append the next digit (9) from the dividend to 303 and continue with: 3039 / 349

Going ahead to step 7:
The number 349 fits into 3039 8 times, leaving a remainder of 247.
The number 8 becomes the next digit in our result. 
Result so far: 11578.0
Deduct 2792 from 3039 and we're left with 247.
Bring next digit (7) of the dividend behind the 247 and repeat the process: 2477 / 349

Moving on to step 8:
When dividing 2477 by 349, we get 7 with a remainder of 34.
Put 7 as the next digit of the answer. 
Result so far: 115787.0
If we subtract 2443 from 2477, we 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 9:
If we divide 340 by 349, we get 0 and a remainder of 340.
Write down 0 as next digit of the result. 
Result so far: 115787.0
Subtract 0 from 340 to get 340.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3400, and continue the process.

Going ahead to step 10:
349 can be fit into 3400 9 times, resulting in a remainder of 259.
The number 9 becomes the next digit in our result. 
Result so far: 115787.09
Subtracting 3141 from 3400 leaves us with 259.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2590, and continue the process.

Advancing to step 11:
The number 349 fits into 2590 7 times, leaving a remainder of 147.
Use 7 as the next digit of our solution. 
Result so far: 115787.097
The remainder is 147 after subtracting 2443 from 2590.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1470, and continue the process.

Moving on to step 12:
349 goes into 1470 4 times with a remainder of 74.
Write down 4 as next digit of the result. 
Result so far: 115787.0974
Subtract 1396 from 1470 to get 74.
Since there are no more digits in the dividend, we add a zero to the remainder making it 740, and continue the process.

Moving on to step 13:
If we divide 740 by 349, we get 2 and a remainder of 42.
The next digit of our result is 2. 
Result so far: 115787.09742
Subtracting 698 from 740 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.

Going ahead to step 14:
420 divided by 349 is 1 with a remainder of 71.
Put 1 as the next digit of the answer. 
Result so far: 115787.097421
If we subtract 349 from 420, we get 71.
Since there are no more digits in the dividend, we add a zero to the remainder making it 710, and continue the process.

Moving on to step 15:
When dividing 710 by 349, we get 2 with a remainder of 12.
Put 2 as the next digit of the answer. 
Result so far: 115787.0974212
Subtract 698 from 710 to 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.

Going ahead to step 16:
349 can be fit into 120 0 times, resulting in a remainder of 120.
Use 0 as the next digit of our solution. 
Result so far: 115787.0974212
Deduct 0 from 120 and we're left with 120.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1200, and continue the process.

Our division results in 115787.0974212 with a remaining 1.2e-07.