We look at the division of 42679420 by 171 
The aim is to understand the frequency of 171 in 42679420.

Step 1:
If we divide 4 by 171, we get 0 and a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Grab the next digit (2) from the dividend, add it to 4, then carry on: 42 / 171

Going ahead to step 2:
171 can be fit into 42 0 times, resulting in a remainder of 42.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 42, we end up with 42.
Fetch the next digit (6) from the dividend, attach it to 42 and continue: 426 / 171

Step 3:
171 can be fit into 426 2 times, resulting in a remainder of 84.
Put 2 as the next digit of the answer. 
Result so far: 2.0
If we take 342 away from 426, we end up with 84.
Bring next digit (7) of the dividend behind the 84 and repeat the process: 847 / 171

Advancing to step 4:
847 divided by 171 is 4 with a remainder of 163.
Put 4 as the next digit of the answer. 
Result so far: 24.0
If we take 684 away from 847, we end up with 163.
Bring next digit (9) of the dividend behind the 163 and repeat the process: 1639 / 171

Going ahead to step 5:
If we divide 1639 by 171, we get 9 and a remainder of 100.
Record the quotient 9 as the next digit in the result. 
Result so far: 249.0
Subtracting 1539 from 1639 leaves us with 100.
Grab the next digit (4) from the dividend, add it to 100, then carry on: 1004 / 171

Moving on to step 6:
The number 171 fits into 1004 5 times, leaving a remainder of 149.
Record the quotient 5 as the next digit in the result. 
Result so far: 2495.0
Deduct 855 from 1004 and we're left with 149.
Append the next digit (2) from the dividend to 149 and continue with: 1492 / 171

Moving on to step 7:
1492 divided by 171 is 8 with a remainder of 124.
Record the quotient 8 as the next digit in the result. 
Result so far: 24958.0
Subtract 1368 from 1492 to get 124.
Include the next digit (0) from the dividend after 124, then repeat: 1240 / 171

Going ahead to step 8:
171 can be fit into 1240 7 times, resulting in a remainder of 43.
Use 7 as the next digit of our solution. 
Result so far: 249587.0
Subtracting 1197 from 1240 leaves us with 43.
Since there are no more digits in the dividend, we add a zero to the remainder making it 430, and continue the process.

Step 9:
The number 171 fits into 430 2 times, leaving a remainder of 88.
The next digit of our result is 2. 
Result so far: 249587.2
Subtract 342 from 430 to get 88.
Since there are no more digits in the dividend, we add a zero to the remainder making it 880, and continue the process.

Advancing to step 10:
If we divide 880 by 171, we get 5 and a remainder of 25.
Record the quotient 5 as the next digit in the result. 
Result so far: 249587.25
Subtracting 855 from 880 leaves us with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Step 11:
171 can be fit into 250 1 times, resulting in a remainder of 79.
The number 1 becomes the next digit in our result. 
Result so far: 249587.251
Deduct 171 from 250 and we're left with 79.
Since there are no more digits in the dividend, we add a zero to the remainder making it 790, and continue the process.

On to step 12:
171 can be fit into 790 4 times, resulting in a remainder of 106.
Record the quotient 4 as the next digit in the result. 
Result so far: 249587.2514
Subtract 684 from 790 to get 106.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1060, and continue the process.

On to step 13:
When dividing 1060 by 171, we get 6 with a remainder of 34.
Use 6 as the next digit of our solution. 
Result so far: 249587.25146
Subtracting 1026 from 1060 leaves us with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Advancing to step 14:
When dividing 340 by 171, we get 1 with a remainder of 169.
Use 1 as the next digit of our solution. 
Result so far: 249587.251461
If we subtract 171 from 340, we get 169.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1690, and continue the process.

On to step 15:
171 can be fit into 1690 9 times, resulting in a remainder of 151.
The number 9 becomes the next digit in our result. 
Result so far: 249587.2514619
Subtracting 1539 from 1690 leaves us with 151.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1510, and continue the process.

Going ahead to step 16:
1510 divided by 171 is 8 with a remainder of 142.
The next digit of our result is 8. 
Result so far: 249587.25146198
The remainder is 142 after subtracting 1368 from 1510.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1420, and continue the process.

The final result is 249587.25146198 with a remainder of 1.42e-07.