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

Advancing to step 1:
5 divided by 82 is 0 with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Bring next digit (1) of the dividend behind the 5 and repeat the process: 51 / 82

Let's proceed to step 2:
82 goes into 51 0 times with a remainder of 51.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 51 and we're left with 51.
Include the next digit (8) from the dividend after 51, then repeat: 518 / 82

Let's proceed to step 3:
82 can be fit into 518 6 times, resulting in a remainder of 26.
The number 6 becomes the next digit in our result. 
Result so far: 6.0
If we take 492 away from 518, we end up with 26.
Take the next digit (5) from the dividend and append it to 26, then repeat: 265 / 82

On to step 4:
82 goes into 265 3 times with a remainder of 19.
Put 3 as the next digit of the answer. 
Result so far: 63.0
Subtract 246 from 265 to get 19.
Take the next digit (1) from the dividend and append it to 19, then repeat: 191 / 82

Let's proceed to step 5:
If we divide 191 by 82, we get 2 and a remainder of 27.
Put 2 as the next digit of the answer. 
Result so far: 632.0
The remainder is 27 after subtracting 164 from 191.
Take the next digit (1) from the dividend and append it to 27, then repeat: 271 / 82

On to step 6:
The number 82 fits into 271 3 times, leaving a remainder of 25.
Use 3 as the next digit of our solution. 
Result so far: 6323.0
The remainder is 25 after subtracting 246 from 271.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

On to step 7:
82 goes into 250 3 times with a remainder of 4.
The number 3 becomes the next digit in our result. 
Result so far: 6323.3
The remainder is 4 after subtracting 246 from 250.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Let's proceed to step 8:
82 can be fit into 40 0 times, resulting in a remainder of 40.
Put 0 as the next digit of the answer. 
Result so far: 6323.3
Subtracting 0 from 40 leaves us with 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

On to step 9:
82 goes into 400 4 times with a remainder of 72.
Use 4 as the next digit of our solution. 
Result so far: 6323.304
If we subtract 328 from 400, we get 72.
Since there are no more digits in the dividend, we add a zero to the remainder making it 720, and continue the process.

Let's proceed to step 10:
82 can be fit into 720 8 times, resulting in a remainder of 64.
Record the quotient 8 as the next digit in the result. 
Result so far: 6323.3048
The remainder is 64 after subtracting 656 from 720.
Since there are no more digits in the dividend, we add a zero to the remainder making it 640, and continue the process.

Moving on to step 11:
640 divided by 82 is 7 with a remainder of 66.
Write down 7 as next digit of the result. 
Result so far: 6323.30487
Subtracting 574 from 640 leaves us with 66.
Since there are no more digits in the dividend, we add a zero to the remainder making it 660, and continue the process.

Let's proceed to step 12:
The number 82 fits into 660 8 times, leaving a remainder of 4.
The next digit of our result is 8. 
Result so far: 6323.304878
Deduct 656 from 660 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Advancing to step 13:
When dividing 40 by 82, we get 0 with a remainder of 40.
The next digit of our result is 0. 
Result so far: 6323.304878
Subtracting 0 from 40 leaves us with 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Going ahead to step 14:
When dividing 400 by 82, we get 4 with a remainder of 72.
The next digit of our result is 4. 
Result so far: 6323.30487804
Subtracting 328 from 400 leaves us with 72.
Since there are no more digits in the dividend, we add a zero to the remainder making it 720, and continue the process.

Our division results in 6323.30487804 with a remaining 7.2e-08.