We look at the division of 581977 by 5 
We want to figure out the number of times 581977 can be divided by 5.

Moving on to step 1:
The number 5 fits into 5 1 times, leaving a remainder of 0.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtracting 5 from 5 leaves us with 0.
Append the next digit (8) from the dividend to 0 and continue with: 8 / 5

Going ahead to step 2:
8 divided by 5 is 1 with a remainder of 3.
Use 1 as the next digit of our solution. 
Result so far: 11.0
If we take 5 away from 8, we end up with 3.
Take the next digit (1) from the dividend and append it to 3, then repeat: 31 / 5

On to step 3:
5 goes into 31 6 times with a remainder of 1.
Record the quotient 6 as the next digit in the result. 
Result so far: 116.0
The remainder is 1 after subtracting 30 from 31.
Take the next digit (9) from the dividend and append it to 1, then repeat: 19 / 5

Going ahead to step 4:
If we divide 19 by 5, we get 3 and a remainder of 4.
Put 3 as the next digit of the answer. 
Result so far: 1163.0
Deduct 15 from 19 and we're left with 4.
Take the next digit (7) from the dividend and append it to 4, then repeat: 47 / 5

Going ahead to step 5:
47 divided by 5 is 9 with a remainder of 2.
The next digit of our result is 9. 
Result so far: 11639.0
Deduct 45 from 47 and we're left with 2.
Bring next digit (7) of the dividend behind the 2 and repeat the process: 27 / 5

Step 6:
If we divide 27 by 5, we get 5 and a remainder of 2.
The next digit of our result is 5. 
Result so far: 116395.0
The remainder is 2 after subtracting 25 from 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Let's proceed to step 7:
The number 5 fits into 20 4 times, leaving a remainder of 0.
Put 4 as the next digit of the answer. 
Result so far: 116395.4
Deduct 20 from 20 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.

Step 8:
The number 5 fits into 0 0 times, leaving a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 116395.4
Subtract 0 from 0 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.

Advancing to step 9:
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: 116395.4
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 outcome is 116395.4, with a leftover of 0.0.