We're dividing 31777 by 5 
Our goal is to divide 31777 by 5.

Step 1:
5 can be fit into 3 0 times, resulting in a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Append the next digit (1) from the dividend to 3 and continue with: 31 / 5

Let's proceed to step 2:
31 divided by 5 is 6 with a remainder of 1.
Write down 6 as next digit of the result. 
Result so far: 6.0
If we take 30 away from 31, we end up with 1.
Bring next digit (7) of the dividend behind the 1 and repeat the process: 17 / 5

Moving on to step 3:
17 divided by 5 is 3 with a remainder of 2.
The number 3 becomes the next digit in our result. 
Result so far: 63.0
If we take 15 away from 17, we end up with 2.
Fetch the next digit (7) from the dividend, attach it to 2 and continue: 27 / 5

Advancing to step 4:
If we divide 27 by 5, we get 5 and a remainder of 2.
The next digit of our result is 5. 
Result so far: 635.0
If we subtract 25 from 27, we get 2.
Fetch the next digit (7) from the dividend, attach it to 2 and continue: 27 / 5

Advancing to step 5:
5 goes into 27 5 times with a remainder of 2.
Write down 5 as next digit of the result. 
Result so far: 6355.0
Deduct 25 from 27 and we're left 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.

Let's proceed to step 6:
When dividing 20 by 5, we get 4 with a remainder of 0.
Record the quotient 4 as the next digit in the result. 
Result so far: 6355.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 7:
5 goes into 0 0 times with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 6355.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 8:
If we divide 0 by 5, we get 0 and a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 6355.4
Subtracting 0 from 0 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.

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