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

On to step 1:
The number 171 fits into 8 0 times, leaving a remainder of 8.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 8, we get 8.
Fetch the next digit (5) from the dividend, attach it to 8 and continue: 85 / 171

Moving on to step 2:
When dividing 85 by 171, we get 0 with a remainder of 85.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 85 to get 85.
Include the next digit (8) from the dividend after 85, then repeat: 858 / 171

Going ahead to step 3:
The number 171 fits into 858 5 times, leaving a remainder of 3.
The next digit of our result is 5. 
Result so far: 5.0
Subtracting 855 from 858 leaves us with 3.
Include the next digit (3) from the dividend after 3, then repeat: 33 / 171

Moving on to step 4:
If we divide 33 by 171, we get 0 and a remainder of 33.
The next digit of our result is 0. 
Result so far: 50.0
Subtracting 0 from 33 leaves us with 33.
Append the next digit (8) from the dividend to 33 and continue with: 338 / 171

Advancing to step 5:
If we divide 338 by 171, we get 1 and a remainder of 167.
Put 1 as the next digit of the answer. 
Result so far: 501.0
Deduct 171 from 338 and we're left with 167.
Bring next digit (9) of the dividend behind the 167 and repeat the process: 1679 / 171

Let's proceed to step 6:
The number 171 fits into 1679 9 times, leaving a remainder of 140.
The number 9 becomes the next digit in our result. 
Result so far: 5019.0
Deduct 1539 from 1679 and we're left with 140.
Fetch the next digit (5) from the dividend, attach it to 140 and continue: 1405 / 171

On to step 7:
The number 171 fits into 1405 8 times, leaving a remainder of 37.
The next digit of our result is 8. 
Result so far: 50198.0
Subtract 1368 from 1405 to get 37.
Fetch the next digit (8) from the dividend, attach it to 37 and continue: 378 / 171

On to step 8:
The number 171 fits into 378 2 times, leaving a remainder of 36.
Use 2 as the next digit of our solution. 
Result so far: 501982.0
If we subtract 342 from 378, we get 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

On to step 9:
360 divided by 171 is 2 with a remainder of 18.
The next digit of our result is 2. 
Result so far: 501982.2
Subtract 342 from 360 to get 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

On to step 10:
171 goes into 180 1 times with a remainder of 9.
Write down 1 as next digit of the result. 
Result so far: 501982.21
The remainder is 9 after subtracting 171 from 180.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Going ahead to step 11:
171 can be fit into 90 0 times, resulting in a remainder of 90.
Record the quotient 0 as the next digit in the result. 
Result so far: 501982.21
If we subtract 0 from 90, we get 90.
Since there are no more digits in the dividend, we add a zero to the remainder making it 900, and continue the process.

Advancing to step 12:
900 divided by 171 is 5 with a remainder of 45.
The next digit of our result is 5. 
Result so far: 501982.2105
The remainder is 45 after subtracting 855 from 900.
Since there are no more digits in the dividend, we add a zero to the remainder making it 450, and continue the process.

Going ahead to step 13:
171 can be fit into 450 2 times, resulting in a remainder of 108.
Write down 2 as next digit of the result. 
Result so far: 501982.21052
Subtracting 342 from 450 leaves us with 108.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1080, and continue the process.

Let's proceed to step 14:
If we divide 1080 by 171, we get 6 and a remainder of 54.
Record the quotient 6 as the next digit in the result. 
Result so far: 501982.210526
Subtracting 1026 from 1080 leaves us with 54.
Since there are no more digits in the dividend, we add a zero to the remainder making it 540, and continue the process.

Going ahead to step 15:
171 can be fit into 540 3 times, resulting in a remainder of 27.
The number 3 becomes the next digit in our result. 
Result so far: 501982.2105263
Deduct 513 from 540 and we're left with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Going ahead to step 16:
171 goes into 270 1 times with a remainder of 99.
The number 1 becomes the next digit in our result. 
Result so far: 501982.21052631
Deduct 171 from 270 and we're left with 99.
Since there are no more digits in the dividend, we add a zero to the remainder making it 990, and continue the process.

The final outcome is 501982.21052631, with a leftover of 9.9e-08.