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

Moving on to step 1:
3 divided by 82 is 0 with a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Append the next digit (9) from the dividend to 3 and continue with: 39 / 82

Advancing to step 2:
82 goes into 39 0 times with a remainder of 39.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 39, we get 39.
Grab the next digit (7) from the dividend, add it to 39, then carry on: 397 / 82

Moving on to step 3:
The number 82 fits into 397 4 times, leaving a remainder of 69.
The number 4 becomes the next digit in our result. 
Result so far: 4.0
If we take 328 away from 397, we end up with 69.
Grab the next digit (2) from the dividend, add it to 69, then carry on: 692 / 82

Moving on to step 4:
If we divide 692 by 82, we get 8 and a remainder of 36.
Write down 8 as next digit of the result. 
Result so far: 48.0
If we take 656 away from 692, we end up with 36.
Append the next digit (2) from the dividend to 36 and continue with: 362 / 82

Let's proceed to step 5:
When dividing 362 by 82, we get 4 with a remainder of 34.
Use 4 as the next digit of our solution. 
Result so far: 484.0
Subtracting 328 from 362 leaves us with 34.
Append the next digit (9) from the dividend to 34 and continue with: 349 / 82

On to step 6:
If we divide 349 by 82, we get 4 and a remainder of 21.
Put 4 as the next digit of the answer. 
Result so far: 4844.0
If we take 328 away from 349, we end up with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

On to step 7:
The number 82 fits into 210 2 times, leaving a remainder of 46.
The number 2 becomes the next digit in our result. 
Result so far: 4844.2
Subtracting 164 from 210 leaves us with 46.
Since there are no more digits in the dividend, we add a zero to the remainder making it 460, and continue the process.

Advancing to step 8:
When dividing 460 by 82, we get 5 with a remainder of 50.
Write down 5 as next digit of the result. 
Result so far: 4844.25
If we take 410 away from 460, we end up with 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 500, and continue the process.

Let's proceed to step 9:
82 goes into 500 6 times with a remainder of 8.
Write down 6 as next digit of the result. 
Result so far: 4844.256
If we subtract 492 from 500, we get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Let's proceed to step 10:
80 divided by 82 is 0 with a remainder of 80.
Write down 0 as next digit of the result. 
Result so far: 4844.256
If we subtract 0 from 80, we get 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 800, and continue the process.

Moving on to step 11:
82 can be fit into 800 9 times, resulting in a remainder of 62.
Use 9 as the next digit of our solution. 
Result so far: 4844.25609
If we subtract 738 from 800, we get 62.
Since there are no more digits in the dividend, we add a zero to the remainder making it 620, and continue the process.

Let's proceed to step 12:
If we divide 620 by 82, we get 7 and a remainder of 46.
The number 7 becomes the next digit in our result. 
Result so far: 4844.256097
If we subtract 574 from 620, we get 46.
Since there are no more digits in the dividend, we add a zero to the remainder making it 460, and continue the process.

On to step 13:
When dividing 460 by 82, we get 5 with a remainder of 50.
Use 5 as the next digit of our solution. 
Result so far: 4844.2560975
Deduct 410 from 460 and we're left with 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 500, and continue the process.

Going ahead to step 14:
If we divide 500 by 82, we get 6 and a remainder of 8.
Put 6 as the next digit of the answer. 
Result so far: 4844.25609756
If we subtract 492 from 500, we get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

The final outcome is 4844.25609756, with a leftover of 8e-09.