We're dividing 512860 by 6 
Let's see how many times 6 fits into 512860.

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
Subtract 0 from 5 to get 5.
Append the next digit (1) from the dividend to 5 and continue with: 51 / 6

Moving on to step 2:
6 can be fit into 51 8 times, resulting in a remainder of 3.
Record the quotient 8 as the next digit in the result. 
Result so far: 8.0
Subtract 48 from 51 to get 3.
Fetch the next digit (2) from the dividend, attach it to 3 and continue: 32 / 6

Moving on to step 3:
32 divided by 6 is 5 with a remainder of 2.
The number 5 becomes the next digit in our result. 
Result so far: 85.0
If we take 30 away from 32, we end up with 2.
Grab the next digit (8) from the dividend, add it to 2, then carry on: 28 / 6

Step 4:
When dividing 28 by 6, we get 4 with a remainder of 4.
Record the quotient 4 as the next digit in the result. 
Result so far: 854.0
If we subtract 24 from 28, we get 4.
Append the next digit (6) from the dividend to 4 and continue with: 46 / 6

Advancing to step 5:
6 can be fit into 46 7 times, resulting in a remainder of 4.
Record the quotient 7 as the next digit in the result. 
Result so far: 8547.0
If we take 42 away from 46, we end up with 4.
Include the next digit (0) from the dividend after 4, then repeat: 40 / 6

Moving on to step 6:
The number 6 fits into 40 6 times, leaving a remainder of 4.
Write down 6 as next digit of the result. 
Result so far: 85476.0
Subtracting 36 from 40 leaves us with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

On to step 7:
If we divide 40 by 6, we get 6 and a remainder of 4.
Record the quotient 6 as the next digit in the result. 
Result so far: 85476.6
Subtract 36 from 40 to get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Moving on to step 8:
6 goes into 40 6 times with a remainder of 4.
Write down 6 as next digit of the result. 
Result so far: 85476.66
Subtract 36 from 40 to get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

The quotient of the division is 85476.66, and the remainder is 0.004.