Let's divide 349087 by 42
We want to divide 349087 by 42.

Going ahead to step 1:
The number 42 fits into 3 0 times, leaving a remainder of 3.
Use 0 as the next digit of our solution. 
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 / 42

Advancing to step 2:
If we divide 34 by 42, we get 0 and a remainder of 34.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 34 to get 34.
Take the next digit (9) from the dividend and append it to 34, then repeat: 349 / 42

Step 3:
349 divided by 42 is 8 with a remainder of 13.
Put 8 as the next digit of the answer. 
Result so far: 8.0
If we subtract 336 from 349, we get 13.
Grab the next digit (0) from the dividend, add it to 13, then carry on: 130 / 42

On to step 4:
The number 42 fits into 130 3 times, leaving a remainder of 4.
Put 3 as the next digit of the answer. 
Result so far: 83.0
Subtracting 126 from 130 leaves us with 4.
Take the next digit (8) from the dividend and append it to 4, then repeat: 48 / 42

Moving on to step 5:
48 divided by 42 is 1 with a remainder of 6.
Put 1 as the next digit of the answer. 
Result so far: 831.0
Subtracting 42 from 48 leaves us with 6.
Grab the next digit (7) from the dividend, add it to 6, then carry on: 67 / 42

Going ahead to step 6:
42 goes into 67 1 times with a remainder of 25.
The number 1 becomes the next digit in our result. 
Result so far: 8311.0
Deduct 42 from 67 and we're left with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

On to step 7:
The number 42 fits into 250 5 times, leaving a remainder of 40.
The next digit of our result is 5. 
Result so far: 8311.5
If we subtract 210 from 250, we 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.

On to step 8:
400 divided by 42 is 9 with a remainder of 22.
Write down 9 as next digit of the result. 
Result so far: 8311.59
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.

Step 9:
The number 42 fits into 220 5 times, leaving a remainder of 10.
The number 5 becomes the next digit in our result. 
Result so far: 8311.595
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 10:
When dividing 100 by 42, we get 2 with a remainder of 16.
Put 2 as the next digit of the answer. 
Result so far: 8311.5952
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.

Going ahead to step 11:
160 divided by 42 is 3 with a remainder of 34.
The next digit of our result is 3. 
Result so far: 8311.59523
Subtracting 126 from 160 leaves us with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Going ahead to step 12:
42 goes into 340 8 times with a remainder of 4.
Record the quotient 8 as the next digit in the result. 
Result so far: 8311.595238
The remainder is 4 after subtracting 336 from 340.
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 13:
40 divided by 42 is 0 with a remainder of 40.
Write down 0 as next digit of the result. 
Result so far: 8311.595238
If we subtract 0 from 40, we 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.

On to step 14:
42 goes into 400 9 times with a remainder of 22.
The next digit of our result is 9. 
Result so far: 8311.59523809
Deduct 378 from 400 and we're left 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.

After the division, we end up with 8311.59523809 and a remainder of 2.2e-08.