We look at the division of 3410317 by 342 
The aim is to understand the frequency of 342 in 3410317.

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

Going ahead to step 2:
34 divided by 342 is 0 with a remainder of 34.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 34 after subtracting 0 from 34.
Grab the next digit (1) from the dividend, add it to 34, then carry on: 341 / 342

Advancing to step 3:
When dividing 341 by 342, we get 0 with a remainder of 341.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 341 and we're left with 341.
Take the next digit (0) from the dividend and append it to 341, then repeat: 3410 / 342

On to step 4:
342 can be fit into 3410 9 times, resulting in a remainder of 332.
Put 9 as the next digit of the answer. 
Result so far: 9.0
Subtract 3078 from 3410 to get 332.
Take the next digit (3) from the dividend and append it to 332, then repeat: 3323 / 342

Moving on to step 5:
342 goes into 3323 9 times with a remainder of 245.
The next digit of our result is 9. 
Result so far: 99.0
Subtracting 3078 from 3323 leaves us with 245.
Append the next digit (1) from the dividend to 245 and continue with: 2451 / 342

Going ahead to step 6:
If we divide 2451 by 342, we get 7 and a remainder of 57.
Use 7 as the next digit of our solution. 
Result so far: 997.0
The remainder is 57 after subtracting 2394 from 2451.
Include the next digit (7) from the dividend after 57, then repeat: 577 / 342

Moving on to step 7:
577 divided by 342 is 1 with a remainder of 235.
Record the quotient 1 as the next digit in the result. 
Result so far: 9971.0
If we subtract 342 from 577, we get 235.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2350, and continue the process.

Step 8:
When dividing 2350 by 342, we get 6 with a remainder of 298.
Put 6 as the next digit of the answer. 
Result so far: 9971.6
Subtracting 2052 from 2350 leaves us with 298.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2980, and continue the process.

Going ahead to step 9:
If we divide 2980 by 342, we get 8 and a remainder of 244.
Write down 8 as next digit of the result. 
Result so far: 9971.68
Subtracting 2736 from 2980 leaves us with 244.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2440, and continue the process.

On to step 10:
If we divide 2440 by 342, we get 7 and a remainder of 46.
The number 7 becomes the next digit in our result. 
Result so far: 9971.687
Deduct 2394 from 2440 and we're left with 46.
Since there are no more digits in the dividend, we add a zero to the remainder making it 460, and continue the process.

On to step 11:
342 can be fit into 460 1 times, resulting in a remainder of 118.
The next digit of our result is 1. 
Result so far: 9971.6871
If we take 342 away from 460, we end up with 118.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1180, and continue the process.

Step 12:
342 can be fit into 1180 3 times, resulting in a remainder of 154.
Record the quotient 3 as the next digit in the result. 
Result so far: 9971.68713
If we subtract 1026 from 1180, we get 154.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1540, and continue the process.

On to step 13:
When dividing 1540 by 342, we get 4 with a remainder of 172.
The next digit of our result is 4. 
Result so far: 9971.687134
Subtract 1368 from 1540 to get 172.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1720, and continue the process.

Moving on to step 14:
342 can be fit into 1720 5 times, resulting in a remainder of 10.
The next digit of our result is 5. 
Result so far: 9971.6871345
Deduct 1710 from 1720 and we're left 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 15:
If we divide 100 by 342, we get 0 and a remainder of 100.
Use 0 as the next digit of our solution. 
Result so far: 9971.6871345
The remainder is 100 after subtracting 0 from 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1000, and continue the process.

Our division results in 9971.6871345 with a remaining 1e-07.