We look at the division of 54378971 by 349 
The aim is to understand the frequency of 349 in 54378971.

On to step 1:
If we divide 5 by 349, we get 0 and a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Grab the next digit (4) from the dividend, add it to 5, then carry on: 54 / 349

Advancing to step 2:
If we divide 54 by 349, we get 0 and a remainder of 54.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 54 and we're left with 54.
Take the next digit (3) from the dividend and append it to 54, then repeat: 543 / 349

Step 3:
349 can be fit into 543 1 times, resulting in a remainder of 194.
Put 1 as the next digit of the answer. 
Result so far: 1.0
If we take 349 away from 543, we end up with 194.
Append the next digit (7) from the dividend to 194 and continue with: 1947 / 349

Step 4:
The number 349 fits into 1947 5 times, leaving a remainder of 202.
Record the quotient 5 as the next digit in the result. 
Result so far: 15.0
The remainder is 202 after subtracting 1745 from 1947.
Take the next digit (8) from the dividend and append it to 202, then repeat: 2028 / 349

On to step 5:
349 can be fit into 2028 5 times, resulting in a remainder of 283.
The next digit of our result is 5. 
Result so far: 155.0
Deduct 1745 from 2028 and we're left with 283.
Grab the next digit (9) from the dividend, add it to 283, then carry on: 2839 / 349

Step 6:
When dividing 2839 by 349, we get 8 with a remainder of 47.
The next digit of our result is 8. 
Result so far: 1558.0
Deduct 2792 from 2839 and we're left with 47.
Grab the next digit (7) from the dividend, add it to 47, then carry on: 477 / 349

Step 7:
349 goes into 477 1 times with a remainder of 128.
Use 1 as the next digit of our solution. 
Result so far: 15581.0
Subtracting 349 from 477 leaves us with 128.
Take the next digit (1) from the dividend and append it to 128, then repeat: 1281 / 349

Advancing to step 8:
The number 349 fits into 1281 3 times, leaving a remainder of 234.
The next digit of our result is 3. 
Result so far: 155813.0
If we subtract 1047 from 1281, we get 234.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2340, and continue the process.

On to step 9:
2340 divided by 349 is 6 with a remainder of 246.
Write down 6 as next digit of the result. 
Result so far: 155813.6
Deduct 2094 from 2340 and we're left with 246.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2460, and continue the process.

Advancing to step 10:
When dividing 2460 by 349, we get 7 with a remainder of 17.
Use 7 as the next digit of our solution. 
Result so far: 155813.67
Deduct 2443 from 2460 and we're left with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Advancing to step 11:
349 goes into 170 0 times with a remainder of 170.
Write down 0 as next digit of the result. 
Result so far: 155813.67
If we take 0 away from 170, we end up with 170.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1700, and continue the process.

Advancing to step 12:
349 goes into 1700 4 times with a remainder of 304.
Record the quotient 4 as the next digit in the result. 
Result so far: 155813.6704
If we subtract 1396 from 1700, we get 304.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3040, and continue the process.

Let's proceed to step 13:
The number 349 fits into 3040 8 times, leaving a remainder of 248.
Use 8 as the next digit of our solution. 
Result so far: 155813.67048
If we take 2792 away from 3040, we end up with 248.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2480, and continue the process.

On to step 14:
The number 349 fits into 2480 7 times, leaving a remainder of 37.
The number 7 becomes the next digit in our result. 
Result so far: 155813.670487
Subtract 2443 from 2480 to get 37.
Since there are no more digits in the dividend, we add a zero to the remainder making it 370, and continue the process.

Step 15:
349 can be fit into 370 1 times, resulting in a remainder of 21.
Use 1 as the next digit of our solution. 
Result so far: 155813.6704871
Subtract 349 from 370 to get 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

On to step 16:
210 divided by 349 is 0 with a remainder of 210.
The number 0 becomes the next digit in our result. 
Result so far: 155813.6704871
If we subtract 0 from 210, we get 210.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2100, and continue the process.

The quotient of the division is 155813.6704871, and the remainder is 2.1e-07.