We divide 821571 by 5
The aim is to understand the frequency of 5 in 821571.

Step 1:
8 divided by 5 is 1 with a remainder of 3.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Subtracting 5 from 8 leaves us with 3.
Take the next digit (2) from the dividend and append it to 3, then repeat: 32 / 5

On to step 2:
If we divide 32 by 5, we get 6 and a remainder of 2.
The next digit of our result is 6. 
Result so far: 16.0
If we take 30 away from 32, we end up with 2.
Include the next digit (1) from the dividend after 2, then repeat: 21 / 5

Step 3:
The number 5 fits into 21 4 times, leaving a remainder of 1.
Record the quotient 4 as the next digit in the result. 
Result so far: 164.0
The remainder is 1 after subtracting 20 from 21.
Include the next digit (5) from the dividend after 1, then repeat: 15 / 5

Going ahead to step 4:
When dividing 15 by 5, we get 3 with a remainder of 0.
Record the quotient 3 as the next digit in the result. 
Result so far: 1643.0
If we subtract 15 from 15, we get 0.
Include the next digit (7) from the dividend after 0, then repeat: 7 / 5

Moving on to step 5:
7 divided by 5 is 1 with a remainder of 2.
The number 1 becomes the next digit in our result. 
Result so far: 16431.0
Deduct 5 from 7 and we're left with 2.
Fetch the next digit (1) from the dividend, attach it to 2 and continue: 21 / 5

On to step 6:
5 can be fit into 21 4 times, resulting in a remainder of 1.
Use 4 as the next digit of our solution. 
Result so far: 164314.0
Subtracting 20 from 21 leaves us with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Advancing to step 7:
When dividing 10 by 5, we get 2 with a remainder of 0.
Use 2 as the next digit of our solution. 
Result so far: 164314.2
Subtract 10 from 10 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:
When dividing 0 by 5, we get 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 164314.2
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.

Advancing to step 9:
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: 164314.2
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 164314.2 with a remainder of 0.0.