We look at the division of 787258 by 5 
We want to divide 787258 by 5.

Let's proceed to step 1:
When dividing 7 by 5, we get 1 with a remainder of 2.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Subtract 5 from 7 to get 2.
Fetch the next digit (8) from the dividend, attach it to 2 and continue: 28 / 5

Step 2:
When dividing 28 by 5, we get 5 with a remainder of 3.
Write down 5 as next digit of the result. 
Result so far: 15.0
The remainder is 3 after subtracting 25 from 28.
Take the next digit (7) from the dividend and append it to 3, then repeat: 37 / 5

Let's proceed to step 3:
5 can be fit into 37 7 times, resulting in a remainder of 2.
The next digit of our result is 7. 
Result so far: 157.0
Subtracting 35 from 37 leaves us with 2.
Fetch the next digit (2) from the dividend, attach it to 2 and continue: 22 / 5

Advancing to step 4:
5 goes into 22 4 times with a remainder of 2.
The number 4 becomes the next digit in our result. 
Result so far: 1574.0
If we take 20 away from 22, we end up with 2.
Bring next digit (5) of the dividend behind the 2 and repeat the process: 25 / 5

Moving on to step 5:
If we divide 25 by 5, we get 5 and a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 15745.0
Subtracting 25 from 25 leaves us with 0.
Fetch the next digit (8) from the dividend, attach it to 0 and continue: 8 / 5

On to step 6:
If we divide 8 by 5, we get 1 and a remainder of 3.
Write down 1 as next digit of the result. 
Result so far: 157451.0
If we subtract 5 from 8, 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 7:
5 goes into 30 6 times with a remainder of 0.
Write down 6 as next digit of the result. 
Result so far: 157451.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.

On to step 8:
The number 5 fits into 0 0 times, leaving a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 157451.6
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:
5 goes into 0 0 times with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 157451.6
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.

The final result is 157451.6 with a remainder of 0.0.