We look at the division of 5027 by 6 
Our goal is to divide 5027 by 6.

Let's proceed to step 1:
6 goes into 5 0 times with a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Append the next digit (0) from the dividend to 5 and continue with: 50 / 6

Going ahead to step 2:
The number 6 fits into 50 8 times, leaving a remainder of 2.
Put 8 as the next digit of the answer. 
Result so far: 8.0
Subtracting 48 from 50 leaves us with 2.
Take the next digit (2) from the dividend and append it to 2, then repeat: 22 / 6

On to step 3:
6 goes into 22 3 times with a remainder of 4.
Write down 3 as next digit of the result. 
Result so far: 83.0
If we subtract 18 from 22, we get 4.
Grab the next digit (7) from the dividend, add it to 4, then carry on: 47 / 6

Advancing to step 4:
The number 6 fits into 47 7 times, leaving a remainder of 5.
Write down 7 as next digit of the result. 
Result so far: 837.0
The remainder is 5 after subtracting 42 from 47.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Going ahead to step 5:
50 divided by 6 is 8 with a remainder of 2.
Write down 8 as next digit of the result. 
Result so far: 837.8
If we take 48 away from 50, 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.

Moving on to step 6:
6 can be fit into 20 3 times, resulting in a remainder of 2.
The number 3 becomes the next digit in our result. 
Result so far: 837.83
The remainder is 2 after subtracting 18 from 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Advancing to step 7:
6 goes into 20 3 times with a remainder of 2.
Use 3 as the next digit of our solution. 
Result so far: 837.833
Subtract 18 from 20 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

The quotient of the division is 837.833, and the remainder is 0.0002.