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

Step 1:
5 goes into 5 1 times with a remainder of 0.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Subtract 5 from 5 to get 0.
Take the next digit (1) from the dividend and append it to 0, then repeat: 1 / 5

Advancing to step 2:
5 can be fit into 1 0 times, resulting in a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 10.0
The remainder is 1 after subtracting 0 from 1.
Include the next digit (2) from the dividend after 1, then repeat: 12 / 5

Moving on to step 3:
When dividing 12 by 5, we get 2 with a remainder of 2.
Put 2 as the next digit of the answer. 
Result so far: 102.0
If we take 10 away from 12, we end up with 2.
Include the next digit (9) from the dividend after 2, then repeat: 29 / 5

Moving on to step 4:
If we divide 29 by 5, we get 5 and a remainder of 4.
The next digit of our result is 5. 
Result so far: 1025.0
Deduct 25 from 29 and we're left with 4.
Take the next digit (9) from the dividend and append it to 4, then repeat: 49 / 5

Moving on to step 5:
5 goes into 49 9 times with a remainder of 4.
The number 9 becomes the next digit in our result. 
Result so far: 10259.0
Subtract 45 from 49 to get 4.
Fetch the next digit (7) from the dividend, attach it to 4 and continue: 47 / 5

Step 6:
5 can be fit into 47 9 times, resulting in a remainder of 2.
Use 9 as the next digit of our solution. 
Result so far: 102599.0
The remainder is 2 after subtracting 45 from 47.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Advancing to step 7:
When dividing 20 by 5, we get 4 with a remainder of 0.
The next digit of our result is 4. 
Result so far: 102599.4
Subtracting 20 from 20 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.

Let's proceed to step 8:
When dividing 0 by 5, we get 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 102599.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.

Let's proceed to step 9:
5 goes into 0 0 times with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 102599.4
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 quotient of the division is 102599.4, and the remainder is 0.0.