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

Moving on to step 1:
3 divided by 8 is 0 with a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Append the next digit (4) from the dividend to 3 and continue with: 34 / 8

Going ahead to step 2:
8 goes into 34 4 times with a remainder of 2.
The next digit of our result is 4. 
Result so far: 4.0
If we take 32 away from 34, we end up with 2.
Append the next digit (2) from the dividend to 2 and continue with: 22 / 8

Let's proceed to step 3:
The number 8 fits into 22 2 times, leaving a remainder of 6.
The number 2 becomes the next digit in our result. 
Result so far: 42.0
Deduct 16 from 22 and we're left with 6.
Fetch the next digit (8) from the dividend, attach it to 6 and continue: 68 / 8

On to step 4:
If we divide 68 by 8, we get 8 and a remainder of 4.
Use 8 as the next digit of our solution. 
Result so far: 428.0
If we subtract 64 from 68, we get 4.
Include the next digit (6) from the dividend after 4, then repeat: 46 / 8

Step 5:
If we divide 46 by 8, we get 5 and a remainder of 6.
Use 5 as the next digit of our solution. 
Result so far: 4285.0
Subtracting 40 from 46 leaves us with 6.
Grab the next digit (5) from the dividend, add it to 6, then carry on: 65 / 8

Moving on to step 6:
When dividing 65 by 8, we get 8 with a remainder of 1.
Put 8 as the next digit of the answer. 
Result so far: 42858.0
Deduct 64 from 65 and we're left with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Moving on to step 7:
The number 8 fits into 10 1 times, leaving a remainder of 2.
Write down 1 as next digit of the result. 
Result so far: 42858.1
Deduct 8 from 10 and we're left 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.

Step 8:
The number 8 fits into 20 2 times, leaving a remainder of 4.
The number 2 becomes the next digit in our result. 
Result so far: 42858.12
Subtracting 16 from 20 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.

Step 9:
8 goes into 40 5 times with a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 42858.125
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.

Advancing to step 10:
8 goes into 0 0 times with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 42858.125
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.

Moving on to step 11:
8 goes into 0 0 times with a remainder of 0.
The next digit of our result is 0. 
Result so far: 42858.125
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.

The final outcome is 42858.125, with a leftover of 0.0.