We're dividing 501771 by 5 
We want to divide 501771 by 5.

On to 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
If we take 5 away from 5, we end up with 0.
Grab the next digit (0) from the dividend, add it to 0, then carry on: 0 / 5

Going ahead to step 2:
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: 10.0
Subtracting 0 from 0 leaves us with 0.
Fetch the next digit (1) from the dividend, attach it to 0 and continue: 1 / 5

Going ahead to step 3:
1 divided by 5 is 0 with a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 100.0
Subtracting 0 from 1 leaves us with 1.
Bring next digit (7) of the dividend behind the 1 and repeat the process: 17 / 5

Let's proceed to step 4:
17 divided by 5 is 3 with a remainder of 2.
Record the quotient 3 as the next digit in the result. 
Result so far: 1003.0
If we subtract 15 from 17, we get 2.
Append the next digit (7) from the dividend to 2 and continue with: 27 / 5

Going ahead to step 5:
When dividing 27 by 5, we get 5 with a remainder of 2.
Write down 5 as next digit of the result. 
Result so far: 10035.0
If we take 25 away from 27, we end up with 2.
Grab the next digit (1) from the dividend, add it to 2, then carry on: 21 / 5

On to step 6:
If we divide 21 by 5, we get 4 and a remainder of 1.
The next digit of our result is 4. 
Result so far: 100354.0
If we take 20 away from 21, we end up with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Moving on to step 7:
5 goes into 10 2 times with a remainder of 0.
Write down 2 as next digit of the result. 
Result so far: 100354.2
Subtracting 10 from 10 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:
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: 100354.2
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 goes into 0 0 times with a remainder of 0.
The next digit of our result is 0. 
Result so far: 100354.2
Subtract 0 from 0 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.

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