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

Step 1:
The number 5 fits into 5 1 times, leaving a remainder of 0.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Subtracting 5 from 5 leaves us with 0.
Append the next digit (0) from the dividend to 0 and continue with: 0 / 5

Step 2:
0 divided by 5 is 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 10.0
If we take 0 away from 0, we end up with 0.
Grab the next digit (5) from the dividend, add it to 0, then carry on: 5 / 5

Step 3:
5 can be fit into 5 1 times, resulting in a remainder of 0.
Use 1 as the next digit of our solution. 
Result so far: 101.0
If we subtract 5 from 5, we get 0.
Grab the next digit (9) from the dividend, add it to 0, then carry on: 9 / 5

On to step 4:
The number 5 fits into 9 1 times, leaving a remainder of 4.
Put 1 as the next digit of the answer. 
Result so far: 1011.0
If we subtract 5 from 9, we get 4.
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 5:
40 divided by 5 is 8 with a remainder of 0.
Record the quotient 8 as the next digit in the result. 
Result so far: 1011.8
If we take 40 away from 40, 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.

Going ahead to step 6:
The number 5 fits into 0 0 times, leaving a remainder of 0.
The next digit of our result is 0. 
Result so far: 1011.8
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.

Let's proceed to step 7:
When dividing 0 by 5, we get 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 1011.8
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.

The quotient of the division is 1011.8, and the remainder is 0.0.