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

Moving on to step 1:
The number 5 fits into 7 1 times, leaving a remainder of 2.
Use 1 as the next digit of our solution. 
Result so far: 1.0
The remainder is 2 after subtracting 5 from 7.
Include the next digit (9) from the dividend after 2, then repeat: 29 / 5

Advancing to step 2:
The number 5 fits into 29 5 times, leaving a remainder of 4.
Use 5 as the next digit of our solution. 
Result so far: 15.0
Subtract 25 from 29 to get 4.
Include the next digit (7) from the dividend after 4, then repeat: 47 / 5

Advancing to step 3:
5 goes into 47 9 times with a remainder of 2.
The number 9 becomes the next digit in our result. 
Result so far: 159.0
Subtract 45 from 47 to get 2.
Fetch the next digit (8) from the dividend, attach it to 2 and continue: 28 / 5

Step 4:
5 goes into 28 5 times with a remainder of 3.
Write down 5 as next digit of the result. 
Result so far: 1595.0
If we subtract 25 from 28, we get 3.
Grab the next digit (1) from the dividend, add it to 3, then carry on: 31 / 5

Let's proceed to step 5:
5 goes into 31 6 times with a remainder of 1.
The number 6 becomes the next digit in our result. 
Result so far: 15956.0
Deduct 30 from 31 and we're left with 1.
Fetch the next digit (5) from the dividend, attach it to 1 and continue: 15 / 5

Step 6:
5 can be fit into 15 3 times, resulting in a remainder of 0.
The next digit of our result is 3. 
Result so far: 159563.0
If we take 15 away from 15, 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.

Let's proceed to step 7:
The number 5 fits into 0 0 times, leaving a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 159563.0
Subtract 0 from 0 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Going ahead to step 8:
The number 5 fits into 0 0 times, leaving a remainder of 0.
The next digit of our result is 0. 
Result so far: 159563.0
If we subtract 0 from 0, we get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The final result is 159563.0 with a remainder of 0.0.