We're dividing 158077 by 5 
We want to figure out the number of times 158077 can be divided by 5.

On to step 1:
When dividing 1 by 5, we get 0 with a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 1, we get 1.
Include the next digit (5) from the dividend after 1, then repeat: 15 / 5

Going ahead to step 2:
The number 5 fits into 15 3 times, leaving a remainder of 0.
Write down 3 as next digit of the result. 
Result so far: 3.0
Subtracting 15 from 15 leaves us with 0.
Fetch the next digit (8) from the dividend, attach it to 0 and continue: 8 / 5

On to step 3:
5 can be fit into 8 1 times, resulting in a remainder of 3.
The number 1 becomes the next digit in our result. 
Result so far: 31.0
If we take 5 away from 8, we end up with 3.
Bring next digit (0) of the dividend behind the 3 and repeat the process: 30 / 5

Moving on to step 4:
If we divide 30 by 5, we get 6 and a remainder of 0.
The next digit of our result is 6. 
Result so far: 316.0
If we take 30 away from 30, we end up with 0.
Take the next digit (7) from the dividend and append it to 0, then repeat: 7 / 5

Advancing to step 5:
5 goes into 7 1 times with a remainder of 2.
The next digit of our result is 1. 
Result so far: 3161.0
Deduct 5 from 7 and we're left with 2.
Fetch the next digit (7) from the dividend, attach it to 2 and continue: 27 / 5

Step 6:
27 divided by 5 is 5 with a remainder of 2.
Use 5 as the next digit of our solution. 
Result so far: 31615.0
Subtract 25 from 27 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

On to step 7:
20 divided by 5 is 4 with a remainder of 0.
Write down 4 as next digit of the result. 
Result so far: 31615.4
If we subtract 20 from 20, 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.

Step 8:
The number 5 fits into 0 0 times, leaving a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 31615.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.

On to step 9:
5 goes into 0 0 times with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 31615.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.

The final result is 31615.4 with a remainder of 0.0.