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

On to step 1:
The number 5 fits into 8 1 times, leaving a remainder of 3.
Write down 1 as next digit of the result. 
Result so far: 1.0
Subtracting 5 from 8 leaves us with 3.
Include the next digit (2) from the dividend after 3, then repeat: 32 / 5

Advancing to step 2:
5 can be fit into 32 6 times, resulting in a remainder of 2.
Record the quotient 6 as the next digit in the result. 
Result so far: 16.0
If we take 30 away from 32, we end up with 2.
Bring next digit (9) of the dividend behind the 2 and repeat the process: 29 / 5

Advancing to step 3:
When dividing 29 by 5, we get 5 with a remainder of 4.
Put 5 as the next digit of the answer. 
Result so far: 165.0
If we subtract 25 from 29, we get 4.
Bring next digit (8) of the dividend behind the 4 and repeat the process: 48 / 5

Advancing to step 4:
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: 1659.0
The remainder is 3 after subtracting 45 from 48.
Take the next digit (1) from the dividend and append it to 3, then repeat: 31 / 5

Going ahead to step 5:
When dividing 31 by 5, we get 6 with a remainder of 1.
Use 6 as the next digit of our solution. 
Result so far: 16596.0
Deduct 30 from 31 and we're left with 1.
Append the next digit (8) from the dividend to 1 and continue with: 18 / 5

On to step 6:
18 divided by 5 is 3 with a remainder of 3.
Put 3 as the next digit of the answer. 
Result so far: 165963.0
The remainder is 3 after subtracting 15 from 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Step 7:
The number 5 fits into 30 6 times, leaving a remainder of 0.
Record the quotient 6 as the next digit in the result. 
Result so far: 165963.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:
If we divide 0 by 5, we get 0 and a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 165963.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.

Moving on to step 9:
0 divided by 5 is 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 165963.6
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 165963.6 and a remainder of 0.0.