Let's divide 797507 by 5
Let's see how many times 5 fits into 797507.

Going ahead to step 1:
5 goes into 7 1 times with a remainder of 2.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Subtracting 5 from 7 leaves us with 2.
Include the next digit (9) from the dividend after 2, then repeat: 29 / 5

Let's proceed to step 2:
5 goes into 29 5 times with a remainder of 4.
The next digit of our result is 5. 
Result so far: 15.0
The remainder is 4 after subtracting 25 from 29.
Fetch the next digit (7) from the dividend, attach it to 4 and continue: 47 / 5

Let's proceed to step 3:
The number 5 fits into 47 9 times, leaving a remainder of 2.
Use 9 as the next digit of our solution. 
Result so far: 159.0
Subtract 45 from 47 to get 2.
Grab the next digit (5) from the dividend, add it to 2, then carry on: 25 / 5

Step 4:
When dividing 25 by 5, we get 5 with a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 1595.0
The remainder is 0 after subtracting 25 from 25.
Grab the next digit (0) from the dividend, add it to 0, then carry on: 0 / 5

Let's proceed to step 5:
The number 5 fits into 0 0 times, leaving a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 15950.0
Deduct 0 from 0 and we're left with 0.
Include the next digit (7) from the dividend after 0, then repeat: 7 / 5

Let's proceed to step 6:
5 goes into 7 1 times with a remainder of 2.
Use 1 as the next digit of our solution. 
Result so far: 159501.0
Subtracting 5 from 7 leaves us with 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:
If we divide 20 by 5, we get 4 and a remainder of 0.
Record the quotient 4 as the next digit in the result. 
Result so far: 159501.4
If we take 20 away from 20, 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 8:
The number 5 fits into 0 0 times, leaving a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 159501.4
Deduct 0 from 0 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 9:
5 goes into 0 0 times with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 159501.4
Deduct 0 from 0 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.

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