We look at the division of 407157 by 82 
The aim is to understand the frequency of 82 in 407157.

Step 1:
82 goes into 4 0 times with a remainder of 4.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 4 and we're left with 4.
Bring next digit (0) of the dividend behind the 4 and repeat the process: 40 / 82

Advancing to step 2:
If we divide 40 by 82, we get 0 and a remainder of 40.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 40, we end up with 40.
Bring next digit (7) of the dividend behind the 40 and repeat the process: 407 / 82

On to step 3:
82 goes into 407 4 times with a remainder of 79.
The next digit of our result is 4. 
Result so far: 4.0
If we take 328 away from 407, we end up with 79.
Append the next digit (1) from the dividend to 79 and continue with: 791 / 82

Advancing to step 4:
If we divide 791 by 82, we get 9 and a remainder of 53.
Record the quotient 9 as the next digit in the result. 
Result so far: 49.0
Subtracting 738 from 791 leaves us with 53.
Grab the next digit (5) from the dividend, add it to 53, then carry on: 535 / 82

Let's proceed to step 5:
82 goes into 535 6 times with a remainder of 43.
Record the quotient 6 as the next digit in the result. 
Result so far: 496.0
Subtract 492 from 535 to get 43.
Append the next digit (7) from the dividend to 43 and continue with: 437 / 82

On to step 6:
If we divide 437 by 82, we get 5 and a remainder of 27.
The number 5 becomes the next digit in our result. 
Result so far: 4965.0
Deduct 410 from 437 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.

Moving on to step 7:
82 can be fit into 270 3 times, resulting in a remainder of 24.
The next digit of our result is 3. 
Result so far: 4965.3
The remainder is 24 after subtracting 246 from 270.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Advancing to step 8:
82 goes into 240 2 times with a remainder of 76.
Write down 2 as next digit of the result. 
Result so far: 4965.32
Subtract 164 from 240 to get 76.
Since there are no more digits in the dividend, we add a zero to the remainder making it 760, and continue the process.

Going ahead to step 9:
760 divided by 82 is 9 with a remainder of 22.
The next digit of our result is 9. 
Result so far: 4965.329
Deduct 738 from 760 and we're left with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Moving on to step 10:
82 can be fit into 220 2 times, resulting in a remainder of 56.
Record the quotient 2 as the next digit in the result. 
Result so far: 4965.3292
Subtract 164 from 220 to get 56.
Since there are no more digits in the dividend, we add a zero to the remainder making it 560, and continue the process.

Advancing to step 11:
82 goes into 560 6 times with a remainder of 68.
Write down 6 as next digit of the result. 
Result so far: 4965.32926
Deduct 492 from 560 and we're left with 68.
Since there are no more digits in the dividend, we add a zero to the remainder making it 680, and continue the process.

Moving on to step 12:
680 divided by 82 is 8 with a remainder of 24.
The next digit of our result is 8. 
Result so far: 4965.329268
Subtracting 656 from 680 leaves us with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Going ahead to step 13:
When dividing 240 by 82, we get 2 with a remainder of 76.
Put 2 as the next digit of the answer. 
Result so far: 4965.3292682
The remainder is 76 after subtracting 164 from 240.
Since there are no more digits in the dividend, we add a zero to the remainder making it 760, and continue the process.

On to step 14:
82 goes into 760 9 times with a remainder of 22.
The number 9 becomes the next digit in our result. 
Result so far: 4965.32926829
If we subtract 738 from 760, we get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Our division results in 4965.32926829 with a remaining 2.2e-08.