We divide 542171 by 8
Let's see how many times 8 fits into 542171.

Step 1:
If we divide 5 by 8, we get 0 and a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Take the next digit (4) from the dividend and append it to 5, then repeat: 54 / 8

Step 2:
54 divided by 8 is 6 with a remainder of 6.
Write down 6 as next digit of the result. 
Result so far: 6.0
The remainder is 6 after subtracting 48 from 54.
Take the next digit (2) from the dividend and append it to 6, then repeat: 62 / 8

Going ahead to step 3:
If we divide 62 by 8, we get 7 and a remainder of 6.
The number 7 becomes the next digit in our result. 
Result so far: 67.0
Subtracting 56 from 62 leaves us with 6.
Bring next digit (1) of the dividend behind the 6 and repeat the process: 61 / 8

Moving on to step 4:
8 goes into 61 7 times with a remainder of 5.
The number 7 becomes the next digit in our result. 
Result so far: 677.0
Deduct 56 from 61 and we're left with 5.
Grab the next digit (7) from the dividend, add it to 5, then carry on: 57 / 8

Going ahead to step 5:
When dividing 57 by 8, we get 7 with a remainder of 1.
Use 7 as the next digit of our solution. 
Result so far: 6777.0
If we subtract 56 from 57, we get 1.
Take the next digit (1) from the dividend and append it to 1, then repeat: 11 / 8

Moving on to step 6:
8 goes into 11 1 times with a remainder of 3.
The number 1 becomes the next digit in our result. 
Result so far: 67771.0
Subtracting 8 from 11 leaves us with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Moving on to step 7:
The number 8 fits into 30 3 times, leaving a remainder of 6.
Put 3 as the next digit of the answer. 
Result so far: 67771.3
Subtract 24 from 30 to get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Let's proceed to step 8:
8 can be fit into 60 7 times, resulting in a remainder of 4.
The number 7 becomes the next digit in our result. 
Result so far: 67771.37
If we take 56 away from 60, 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.

Going ahead to step 9:
If we divide 40 by 8, we get 5 and a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 67771.375
If we take 40 away from 40, 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.

Going ahead to step 10:
8 goes into 0 0 times with a remainder of 0.
The next digit of our result is 0. 
Result so far: 67771.375
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.

Let's proceed to step 11:
0 divided by 8 is 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 67771.375
Deduct 0 from 0 and we're left 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.

After the division, we end up with 67771.375 and a remainder of 0.0.