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

Moving on to step 1:
If we divide 3 by 6, we get 0 and a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Append the next digit (1) from the dividend to 3 and continue with: 31 / 6

Going ahead to step 2:
31 divided by 6 is 5 with a remainder of 1.
Write down 5 as next digit of the result. 
Result so far: 5.0
The remainder is 1 after subtracting 30 from 31.
Bring next digit (1) of the dividend behind the 1 and repeat the process: 11 / 6

Let's proceed to step 3:
11 divided by 6 is 1 with a remainder of 5.
Record the quotient 1 as the next digit in the result. 
Result so far: 51.0
Subtract 6 from 11 to get 5.
Take the next digit (4) from the dividend and append it to 5, then repeat: 54 / 6

On to step 4:
If we divide 54 by 6, we get 9 and a remainder of 0.
Put 9 as the next digit of the answer. 
Result so far: 519.0
If we subtract 54 from 54, we get 0.
Fetch the next digit (8) from the dividend, attach it to 0 and continue: 8 / 6

On to step 5:
6 can be fit into 8 1 times, resulting in a remainder of 2.
Write down 1 as next digit of the result. 
Result so far: 5191.0
If we subtract 6 from 8, we get 2.
Fetch the next digit (7) from the dividend, attach it to 2 and continue: 27 / 6

Step 6:
6 goes into 27 4 times with a remainder of 3.
The next digit of our result is 4. 
Result so far: 51914.0
If we subtract 24 from 27, we get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Step 7:
The number 6 fits into 30 5 times, leaving a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 51914.5
Subtracting 30 from 30 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.

Moving on to step 8:
0 divided by 6 is 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 51914.5
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.

On to step 9:
6 goes into 0 0 times with a remainder of 0.
The next digit of our result is 0. 
Result so far: 51914.5
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 51914.5, and the remainder is 0.0.