798538 divided by 5 
The aim is to understand the frequency of 5 in 798538.

On to step 1:
If we divide 7 by 5, we get 1 and a remainder of 2.
The next digit of our result is 1. 
Result so far: 1.0
If we take 5 away from 7, we end up with 2.
Fetch the next digit (9) from the dividend, attach it to 2 and continue: 29 / 5

Moving on to step 2:
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: 15.0
If we subtract 25 from 29, we get 4.
Fetch the next digit (8) from the dividend, attach it to 4 and continue: 48 / 5

Step 3:
5 can be fit into 48 9 times, resulting in a remainder of 3.
Put 9 as the next digit of the answer. 
Result so far: 159.0
Deduct 45 from 48 and we're left with 3.
Bring next digit (5) of the dividend behind the 3 and repeat the process: 35 / 5

Step 4:
If we divide 35 by 5, we get 7 and a remainder of 0.
Put 7 as the next digit of the answer. 
Result so far: 1597.0
Subtract 35 from 35 to get 0.
Bring next digit (3) of the dividend behind the 0 and repeat the process: 3 / 5

Let's proceed to step 5:
The number 5 fits into 3 0 times, leaving a remainder of 3.
The next digit of our result is 0. 
Result so far: 15970.0
If we take 0 away from 3, we end up with 3.
Bring next digit (8) of the dividend behind the 3 and repeat the process: 38 / 5

On to step 6:
5 goes into 38 7 times with a remainder of 3.
Use 7 as the next digit of our solution. 
Result so far: 159707.0
If we subtract 35 from 38, we get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

On to step 7:
If we divide 30 by 5, we get 6 and a remainder of 0.
The next digit of our result is 6. 
Result so far: 159707.6
Subtract 30 from 30 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.

Moving on to step 8:
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: 159707.6
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:
The number 5 fits into 0 0 times, leaving a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 159707.6
If we take 0 away from 0, 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.

The final result is 159707.6 with a remainder of 0.0.