We look at the division of 512874 by 8 
We want to divide 512874 by 8.

Let's proceed to step 1:
8 can be fit into 5 0 times, resulting in a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Take the next digit (1) from the dividend and append it to 5, then repeat: 51 / 8

Going ahead to step 2:
The number 8 fits into 51 6 times, leaving a remainder of 3.
Record the quotient 6 as the next digit in the result. 
Result so far: 6.0
If we take 48 away from 51, we end up with 3.
Append the next digit (2) from the dividend to 3 and continue with: 32 / 8

On to step 3:
When dividing 32 by 8, we get 4 with a remainder of 0.
The number 4 becomes the next digit in our result. 
Result so far: 64.0
If we take 32 away from 32, we end up with 0.
Fetch the next digit (8) from the dividend, attach it to 0 and continue: 8 / 8

Let's proceed to step 4:
8 can be fit into 8 1 times, resulting in a remainder of 0.
Put 1 as the next digit of the answer. 
Result so far: 641.0
Subtracting 8 from 8 leaves us with 0.
Include the next digit (7) from the dividend after 0, then repeat: 7 / 8

Let's proceed to step 5:
If we divide 7 by 8, we get 0 and a remainder of 7.
Use 0 as the next digit of our solution. 
Result so far: 6410.0
Subtract 0 from 7 to get 7.
Grab the next digit (4) from the dividend, add it to 7, then carry on: 74 / 8

Let's proceed to step 6:
If we divide 74 by 8, we get 9 and a remainder of 2.
The number 9 becomes the next digit in our result. 
Result so far: 64109.0
If we take 72 away from 74, 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 7:
The number 8 fits into 20 2 times, leaving a remainder of 4.
Put 2 as the next digit of the answer. 
Result so far: 64109.2
If we take 16 away from 20, we end up 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 8:
8 goes into 40 5 times with a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 64109.25
Subtract 40 from 40 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.

Step 9:
When dividing 0 by 8, we get 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 64109.25
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.

Advancing to step 10:
8 can be fit into 0 0 times, resulting in a remainder of 0.
The next digit of our result is 0. 
Result so far: 64109.25
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.

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