We're dividing 340516 by 42 
We're looking to find how many times 42 goes into 340516.

Going ahead to step 1:
The number 42 fits into 3 0 times, leaving a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Include the next digit (4) from the dividend after 3, then repeat: 34 / 42

Moving on to step 2:
When dividing 34 by 42, we get 0 with a remainder of 34.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 34 leaves us with 34.
Append the next digit (0) from the dividend to 34 and continue with: 340 / 42

Moving on to step 3:
When dividing 340 by 42, we get 8 with a remainder of 4.
The next digit of our result is 8. 
Result so far: 8.0
If we take 336 away from 340, we end up with 4.
Append the next digit (5) from the dividend to 4 and continue with: 45 / 42

Going ahead to step 4:
45 divided by 42 is 1 with a remainder of 3.
The number 1 becomes the next digit in our result. 
Result so far: 81.0
The remainder is 3 after subtracting 42 from 45.
Take the next digit (1) from the dividend and append it to 3, then repeat: 31 / 42

Let's proceed to step 5:
When dividing 31 by 42, we get 0 with a remainder of 31.
The number 0 becomes the next digit in our result. 
Result so far: 810.0
Subtracting 0 from 31 leaves us with 31.
Take the next digit (6) from the dividend and append it to 31, then repeat: 316 / 42

Step 6:
42 can be fit into 316 7 times, resulting in a remainder of 22.
The next digit of our result is 7. 
Result so far: 8107.0
The remainder is 22 after subtracting 294 from 316.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Let's proceed to step 7:
42 goes into 220 5 times with a remainder of 10.
Record the quotient 5 as the next digit in the result. 
Result so far: 8107.5
If we take 210 away from 220, we end up with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Going ahead to step 8:
42 goes into 100 2 times with a remainder of 16.
Write down 2 as next digit of the result. 
Result so far: 8107.52
Deduct 84 from 100 and we're left with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Step 9:
42 goes into 160 3 times with a remainder of 34.
The next digit of our result is 3. 
Result so far: 8107.523
Subtract 126 from 160 to get 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Moving on to step 10:
When dividing 340 by 42, we get 8 with a remainder of 4.
The number 8 becomes the next digit in our result. 
Result so far: 8107.5238
If we subtract 336 from 340, we 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.

On to step 11:
When dividing 40 by 42, we get 0 with a remainder of 40.
The next digit of our result is 0. 
Result so far: 8107.5238
Subtract 0 from 40 to get 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Advancing to step 12:
42 goes into 400 9 times with a remainder of 22.
The number 9 becomes the next digit in our result. 
Result so far: 8107.523809
If we take 378 away from 400, we end up with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Going ahead to step 13:
When dividing 220 by 42, we get 5 with a remainder of 10.
Use 5 as the next digit of our solution. 
Result so far: 8107.5238095
Deduct 210 from 220 and we're left with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Going ahead to step 14:
The number 42 fits into 100 2 times, leaving a remainder of 16.
Use 2 as the next digit of our solution. 
Result so far: 8107.52380952
If we take 84 away from 100, we end up with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Our division results in 8107.52380952 with a remaining 1.6e-08.