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

On to step 1:
If we divide 7 by 5, we get 1 and a remainder of 2.
Put 1 as the next digit of the answer. 
Result so far: 1.0
The remainder is 2 after subtracting 5 from 7.
Grab the next digit (9) from the dividend, add it to 2, then carry on: 29 / 5

Step 2:
5 goes into 29 5 times with a remainder of 4.
The next digit of our result is 5. 
Result so far: 15.0
Subtract 25 from 29 to get 4.
Bring next digit (8) of the dividend behind the 4 and repeat the process: 48 / 5

Advancing to step 3:
5 can be fit into 48 9 times, resulting in a remainder of 3.
Write down 9 as next digit of the result. 
Result so far: 159.0
The remainder is 3 after subtracting 45 from 48.
Fetch the next digit (0) from the dividend, attach it to 3 and continue: 30 / 5

On to step 4:
5 can be fit into 30 6 times, resulting in a remainder of 0.
The number 6 becomes the next digit in our result. 
Result so far: 1596.0
If we take 30 away from 30, we end up with 0.
Bring next digit (8) of the dividend behind the 0 and repeat the process: 8 / 5

Going ahead to step 5:
5 goes into 8 1 times with a remainder of 3.
Use 1 as the next digit of our solution. 
Result so far: 15961.0
If we subtract 5 from 8, we get 3.
Fetch the next digit (9) from the dividend, attach it to 3 and continue: 39 / 5

Advancing to step 6:
39 divided by 5 is 7 with a remainder of 4.
Record the quotient 7 as the next digit in the result. 
Result so far: 159617.0
The remainder is 4 after subtracting 35 from 39.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Going ahead to step 7:
5 goes into 40 8 times with a remainder of 0.
The next digit of our result is 8. 
Result so far: 159617.8
Subtracting 40 from 40 leaves us 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.

Moving on to step 8:
If we divide 0 by 5, we get 0 and a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 159617.8
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.

Step 9:
5 goes into 0 0 times with a remainder of 0.
The next digit of our result is 0. 
Result so far: 159617.8
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 final result is 159617.8 with a remainder of 0.0.