We look at the division of 822797 by 5 
The aim is to understand the frequency of 5 in 822797.

Let's proceed to step 1:
8 divided by 5 is 1 with a remainder of 3.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Deduct 5 from 8 and we're left with 3.
Take the next digit (2) from the dividend and append it to 3, then repeat: 32 / 5

Going ahead to step 2:
The number 5 fits into 32 6 times, leaving a remainder of 2.
Put 6 as the next digit of the answer. 
Result so far: 16.0
Deduct 30 from 32 and we're left with 2.
Append the next digit (2) from the dividend to 2 and continue with: 22 / 5

Let's proceed to step 3:
5 can be fit into 22 4 times, resulting in a remainder of 2.
Record the quotient 4 as the next digit in the result. 
Result so far: 164.0
Deduct 20 from 22 and we're left with 2.
Include the next digit (7) from the dividend after 2, then repeat: 27 / 5

Advancing to step 4:
27 divided by 5 is 5 with a remainder of 2.
The number 5 becomes the next digit in our result. 
Result so far: 1645.0
If we take 25 away from 27, we end up with 2.
Include the next digit (9) from the dividend after 2, then repeat: 29 / 5

Step 5:
When dividing 29 by 5, we get 5 with a remainder of 4.
The number 5 becomes the next digit in our result. 
Result so far: 16455.0
Subtracting 25 from 29 leaves us with 4.
Take the next digit (7) from the dividend and append it to 4, then repeat: 47 / 5

On to step 6:
5 goes into 47 9 times with a remainder of 2.
Write down 9 as next digit of the result. 
Result so far: 164559.0
If we take 45 away from 47, we end up with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Let's proceed to step 7:
The number 5 fits into 20 4 times, leaving a remainder of 0.
Write down 4 as next digit of the result. 
Result so far: 164559.4
If we take 20 away from 20, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Step 8:
When dividing 0 by 5, we get 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 164559.4
The remainder is 0 after subtracting 0 from 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Let's proceed to step 9:
5 can be fit into 0 0 times, resulting in a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 164559.4
Deduct 0 from 0 and we're left with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

After the division, we end up with 164559.4 and a remainder of 0.0.