We look at the division of 504565 by 5 
Let's see how many times 5 fits into 504565.

Let's proceed to step 1:
5 goes into 5 1 times with a remainder of 0.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
The remainder is 0 after subtracting 5 from 5.
Bring next digit (0) of the dividend behind the 0 and repeat the process: 0 / 5

On to step 2:
0 divided by 5 is 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 10.0
The remainder is 0 after subtracting 0 from 0.
Grab the next digit (4) from the dividend, add it to 0, then carry on: 4 / 5

Advancing to step 3:
When dividing 4 by 5, we get 0 with a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 100.0
The remainder is 4 after subtracting 0 from 4.
Fetch the next digit (5) from the dividend, attach it to 4 and continue: 45 / 5

Let's proceed to step 4:
45 divided by 5 is 9 with a remainder of 0.
Put 9 as the next digit of the answer. 
Result so far: 1009.0
Subtracting 45 from 45 leaves us with 0.
Bring next digit (6) of the dividend behind the 0 and repeat the process: 6 / 5

On to step 5:
When dividing 6 by 5, we get 1 with a remainder of 1.
Put 1 as the next digit of the answer. 
Result so far: 10091.0
The remainder is 1 after subtracting 5 from 6.
Fetch the next digit (5) from the dividend, attach it to 1 and continue: 15 / 5

On to step 6:
5 can be fit into 15 3 times, resulting in a remainder of 0.
Write down 3 as next digit of the result. 
Result so far: 100913.0
Subtract 15 from 15 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.

Moving on to step 7:
5 can be fit into 0 0 times, resulting in a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 100913.0
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.

Advancing to step 8:
When dividing 0 by 5, we get 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 100913.0
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 100913.0, and the remainder is 0.0.