We look at the division of 509387 by 42 
We're looking to find how many times 42 goes into 509387.

Moving on to step 1:
42 goes into 5 0 times with a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Append the next digit (0) from the dividend to 5 and continue with: 50 / 42

On to step 2:
50 divided by 42 is 1 with a remainder of 8.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Subtract 42 from 50 to get 8.
Bring next digit (9) of the dividend behind the 8 and repeat the process: 89 / 42

Moving on to step 3:
When dividing 89 by 42, we get 2 with a remainder of 5.
The next digit of our result is 2. 
Result so far: 12.0
Subtract 84 from 89 to get 5.
Grab the next digit (3) from the dividend, add it to 5, then carry on: 53 / 42

Going ahead to step 4:
The number 42 fits into 53 1 times, leaving a remainder of 11.
Write down 1 as next digit of the result. 
Result so far: 121.0
If we subtract 42 from 53, we get 11.
Fetch the next digit (8) from the dividend, attach it to 11 and continue: 118 / 42

Let's proceed to step 5:
118 divided by 42 is 2 with a remainder of 34.
The next digit of our result is 2. 
Result so far: 1212.0
If we take 84 away from 118, we end up with 34.
Bring next digit (7) of the dividend behind the 34 and repeat the process: 347 / 42

Moving on to step 6:
If we divide 347 by 42, we get 8 and a remainder of 11.
The number 8 becomes the next digit in our result. 
Result so far: 12128.0
Subtract 336 from 347 to get 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Advancing to step 7:
The number 42 fits into 110 2 times, leaving a remainder of 26.
The number 2 becomes the next digit in our result. 
Result so far: 12128.2
The remainder is 26 after subtracting 84 from 110.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Step 8:
The number 42 fits into 260 6 times, leaving a remainder of 8.
Write down 6 as next digit of the result. 
Result so far: 12128.26
Subtract 252 from 260 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Moving on to step 9:
If we divide 80 by 42, we get 1 and a remainder of 38.
Use 1 as the next digit of our solution. 
Result so far: 12128.261
If we take 42 away from 80, we end up with 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Going ahead to step 10:
42 can be fit into 380 9 times, resulting in a remainder of 2.
The next digit of our result is 9. 
Result so far: 12128.2619
If we subtract 378 from 380, we get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

On to step 11:
20 divided by 42 is 0 with a remainder of 20.
Write down 0 as next digit of the result. 
Result so far: 12128.2619
If we take 0 away from 20, we end up with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Moving on to step 12:
42 can be fit into 200 4 times, resulting in a remainder of 32.
The next digit of our result is 4. 
Result so far: 12128.261904
The remainder is 32 after subtracting 168 from 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Going ahead to step 13:
When dividing 320 by 42, we get 7 with a remainder of 26.
Record the quotient 7 as the next digit in the result. 
Result so far: 12128.2619047
Subtracting 294 from 320 leaves us with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Moving on to step 14:
If we divide 260 by 42, we get 6 and a remainder of 8.
The number 6 becomes the next digit in our result. 
Result so far: 12128.26190476
The remainder is 8 after subtracting 252 from 260.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

The final result is 12128.26190476 with a remainder of 8e-09.