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

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

Advancing to step 2:
If we divide 0 by 5, we get 0 and a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 10.0
Subtracting 0 from 0 leaves us with 0.
Include the next digit (6) from the dividend after 0, then repeat: 6 / 5

Step 3:
5 goes into 6 1 times with a remainder of 1.
Record the quotient 1 as the next digit in the result. 
Result so far: 101.0
If we take 5 away from 6, we end up with 1.
Include the next digit (2) from the dividend after 1, then repeat: 12 / 5

On to step 4:
If we divide 12 by 5, we get 2 and a remainder of 2.
Put 2 as the next digit of the answer. 
Result so far: 1012.0
Subtract 10 from 12 to get 2.
Include the next digit (8) from the dividend after 2, then repeat: 28 / 5

Advancing to step 5:
If we divide 28 by 5, we get 5 and a remainder of 3.
Put 5 as the next digit of the answer. 
Result so far: 10125.0
If we subtract 25 from 28, 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.

Going ahead to step 6:
5 goes into 30 6 times with a remainder of 0.
The number 6 becomes the next digit in our result. 
Result so far: 10125.6
If we take 30 away from 30, 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 7:
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: 10125.6
Subtracting 0 from 0 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.

Going ahead to step 8:
0 divided by 5 is 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 10125.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.

Our division results in 10125.6 with a remaining 0.0.