508217 divided by 5 
We want to divide 508217 by 5.

Let's proceed to step 1:
5 divided by 5 is 1 with a remainder of 0.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
If we subtract 5 from 5, we get 0.
Bring next digit (0) of the dividend behind the 0 and repeat the process: 0 / 5

Advancing to step 2:
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: 10.0
If we subtract 0 from 0, we get 0.
Include the next digit (8) from the dividend after 0, then repeat: 8 / 5

Step 3:
The number 5 fits into 8 1 times, leaving a remainder of 3.
The next digit of our result is 1. 
Result so far: 101.0
Subtract 5 from 8 to get 3.
Bring next digit (2) of the dividend behind the 3 and repeat the process: 32 / 5

On to step 4:
5 goes into 32 6 times with a remainder of 2.
Record the quotient 6 as the next digit in the result. 
Result so far: 1016.0
Deduct 30 from 32 and we're left with 2.
Take the next digit (1) from the dividend and append it to 2, then repeat: 21 / 5

Going ahead to step 5:
5 goes into 21 4 times with a remainder of 1.
The number 4 becomes the next digit in our result. 
Result so far: 10164.0
Deduct 20 from 21 and we're left with 1.
Append the next digit (7) from the dividend to 1 and continue with: 17 / 5

Advancing to step 6:
5 goes into 17 3 times with a remainder of 2.
Put 3 as the next digit of the answer. 
Result so far: 101643.0
Subtracting 15 from 17 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.

Step 7:
20 divided by 5 is 4 with a remainder of 0.
The next digit of our result is 4. 
Result so far: 101643.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.

Advancing to step 8:
0 divided by 5 is 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 101643.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.

On to step 9:
When dividing 0 by 5, we get 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 101643.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 101643.4 and a remainder of 0.0.