Let's divide 564987 by 5
We're looking to find how many times 5 goes into 564987.

Going ahead to step 1:
When dividing 5 by 5, we get 1 with a remainder of 0.
Put 1 as the next digit of the answer. 
Result so far: 1.0
The remainder is 0 after subtracting 5 from 5.
Bring next digit (6) of the dividend behind the 0 and repeat the process: 6 / 5

Moving on to step 2:
6 divided by 5 is 1 with a remainder of 1.
Record the quotient 1 as the next digit in the result. 
Result so far: 11.0
Deduct 5 from 6 and we're left with 1.
Bring next digit (4) of the dividend behind the 1 and repeat the process: 14 / 5

Advancing to step 3:
5 can be fit into 14 2 times, resulting in a remainder of 4.
Record the quotient 2 as the next digit in the result. 
Result so far: 112.0
If we take 10 away from 14, we end up with 4.
Append the next digit (9) from the dividend to 4 and continue with: 49 / 5

Step 4:
5 goes into 49 9 times with a remainder of 4.
The number 9 becomes the next digit in our result. 
Result so far: 1129.0
If we subtract 45 from 49, we get 4.
Take the next digit (8) from the dividend and append it to 4, then repeat: 48 / 5

Step 5:
When dividing 48 by 5, we get 9 with a remainder of 3.
Record the quotient 9 as the next digit in the result. 
Result so far: 11299.0
The remainder is 3 after subtracting 45 from 48.
Grab the next digit (7) from the dividend, add it to 3, then carry on: 37 / 5

Moving on to step 6:
5 goes into 37 7 times with a remainder of 2.
Use 7 as the next digit of our solution. 
Result so far: 112997.0
If we take 35 away from 37, we end up 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.
Write down 4 as next digit of the result. 
Result so far: 112997.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.

Step 8:
5 can be fit into 0 0 times, resulting in a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 112997.4
If we subtract 0 from 0, 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.

On to step 9:
5 can be fit into 0 0 times, resulting in a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 112997.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.

After the division, we end up with 112997.4 and a remainder of 0.0.