We look at the division of 840171 by 83 
The aim is to understand the frequency of 83 in 840171.

On to step 1:
83 goes into 8 0 times with a remainder of 8.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 8 leaves us with 8.
Fetch the next digit (4) from the dividend, attach it to 8 and continue: 84 / 83

Moving on to step 2:
If we divide 84 by 83, we get 1 and a remainder of 1.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Subtract 83 from 84 to get 1.
Take the next digit (0) from the dividend and append it to 1, then repeat: 10 / 83

Moving on to step 3:
When dividing 10 by 83, we get 0 with a remainder of 10.
The number 0 becomes the next digit in our result. 
Result so far: 10.0
If we take 0 away from 10, we end up with 10.
Append the next digit (1) from the dividend to 10 and continue with: 101 / 83

Advancing to step 4:
83 goes into 101 1 times with a remainder of 18.
Record the quotient 1 as the next digit in the result. 
Result so far: 101.0
Deduct 83 from 101 and we're left with 18.
Grab the next digit (7) from the dividend, add it to 18, then carry on: 187 / 83

Going ahead to step 5:
83 goes into 187 2 times with a remainder of 21.
Use 2 as the next digit of our solution. 
Result so far: 1012.0
If we subtract 166 from 187, we get 21.
Append the next digit (1) from the dividend to 21 and continue with: 211 / 83

Step 6:
When dividing 211 by 83, we get 2 with a remainder of 45.
Record the quotient 2 as the next digit in the result. 
Result so far: 10122.0
Subtracting 166 from 211 leaves us with 45.
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 7:
450 divided by 83 is 5 with a remainder of 35.
Record the quotient 5 as the next digit in the result. 
Result so far: 10122.5
The remainder is 35 after subtracting 415 from 450.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Moving on to step 8:
If we divide 350 by 83, we get 4 and a remainder of 18.
The next digit of our result is 4. 
Result so far: 10122.54
Subtract 332 from 350 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.

Moving on to step 9:
180 divided by 83 is 2 with a remainder of 14.
The number 2 becomes the next digit in our result. 
Result so far: 10122.542
If we take 166 away from 180, we end up with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Moving on to step 10:
83 can be fit into 140 1 times, resulting in a remainder of 57.
The next digit of our result is 1. 
Result so far: 10122.5421
Deduct 83 from 140 and we're left with 57.
Since there are no more digits in the dividend, we add a zero to the remainder making it 570, and continue the process.

Advancing to step 11:
83 can be fit into 570 6 times, resulting in a remainder of 72.
Put 6 as the next digit of the answer. 
Result so far: 10122.54216
The remainder is 72 after subtracting 498 from 570.
Since there are no more digits in the dividend, we add a zero to the remainder making it 720, and continue the process.

Moving on to step 12:
83 can be fit into 720 8 times, resulting in a remainder of 56.
Record the quotient 8 as the next digit in the result. 
Result so far: 10122.542168
Deduct 664 from 720 and we're left with 56.
Since there are no more digits in the dividend, we add a zero to the remainder making it 560, and continue the process.

Let's proceed to step 13:
83 goes into 560 6 times with a remainder of 62.
The number 6 becomes the next digit in our result. 
Result so far: 10122.5421686
The remainder is 62 after subtracting 498 from 560.
Since there are no more digits in the dividend, we add a zero to the remainder making it 620, and continue the process.

Moving on to step 14:
83 can be fit into 620 7 times, resulting in a remainder of 39.
The number 7 becomes the next digit in our result. 
Result so far: 10122.54216867
If we take 581 away from 620, we end up with 39.
Since there are no more digits in the dividend, we add a zero to the remainder making it 390, and continue the process.

The final outcome is 10122.54216867, with a leftover of 3.9e-08.