We're dividing 793117 by 5 
The aim is to understand the frequency of 5 in 793117.

Let's proceed to step 1:
If we divide 7 by 5, we get 1 and a remainder of 2.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Deduct 5 from 7 and we're left with 2.
Grab the next digit (9) from the dividend, add it to 2, then carry on: 29 / 5

Going ahead to step 2:
When dividing 29 by 5, we get 5 with a remainder of 4.
Use 5 as the next digit of our solution. 
Result so far: 15.0
Deduct 25 from 29 and we're left with 4.
Grab the next digit (3) from the dividend, add it to 4, then carry on: 43 / 5

Advancing to step 3:
When dividing 43 by 5, we get 8 with a remainder of 3.
Use 8 as the next digit of our solution. 
Result so far: 158.0
Subtract 40 from 43 to get 3.
Take the next digit (1) from the dividend and append it to 3, then repeat: 31 / 5

On to step 4:
5 goes into 31 6 times with a remainder of 1.
Put 6 as the next digit of the answer. 
Result so far: 1586.0
Subtract 30 from 31 to get 1.
Append the next digit (1) from the dividend to 1 and continue with: 11 / 5

Going ahead to step 5:
The number 5 fits into 11 2 times, leaving a remainder of 1.
The next digit of our result is 2. 
Result so far: 15862.0
Deduct 10 from 11 and we're left with 1.
Fetch the next digit (7) from the dividend, attach it to 1 and continue: 17 / 5

Going ahead to step 6:
5 goes into 17 3 times with a remainder of 2.
Record the quotient 3 as the next digit in the result. 
Result so far: 158623.0
If we subtract 15 from 17, we get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Step 7:
5 goes into 20 4 times with a remainder of 0.
Record the quotient 4 as the next digit in the result. 
Result so far: 158623.4
Subtract 20 from 20 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.

Step 8:
0 divided by 5 is 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 158623.4
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.

Let's proceed to step 9:
0 divided by 5 is 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 158623.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.

The quotient of the division is 158623.4, and the remainder is 0.0.