507789 divided by 42 
Let's see how many times 42 fits into 507789.

Moving on to step 1:
42 can be fit into 5 0 times, resulting in a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Include the next digit (0) from the dividend after 5, then repeat: 50 / 42

Step 2:
42 can be fit into 50 1 times, resulting in a remainder of 8.
Use 1 as the next digit of our solution. 
Result so far: 1.0
If we subtract 42 from 50, we get 8.
Take the next digit (7) from the dividend and append it to 8, then repeat: 87 / 42

Step 3:
When dividing 87 by 42, we get 2 with a remainder of 3.
Write down 2 as next digit of the result. 
Result so far: 12.0
Subtracting 84 from 87 leaves us with 3.
Grab the next digit (7) from the dividend, add it to 3, then carry on: 37 / 42

Advancing to step 4:
42 can be fit into 37 0 times, resulting in a remainder of 37.
Write down 0 as next digit of the result. 
Result so far: 120.0
The remainder is 37 after subtracting 0 from 37.
Take the next digit (8) from the dividend and append it to 37, then repeat: 378 / 42

Step 5:
42 goes into 378 9 times with a remainder of 0.
Write down 9 as next digit of the result. 
Result so far: 1209.0
If we subtract 378 from 378, we get 0.
Include the next digit (9) from the dividend after 0, then repeat: 9 / 42

On to step 6:
The number 42 fits into 9 0 times, leaving a remainder of 9.
Use 0 as the next digit of our solution. 
Result so far: 12090.0
Deduct 0 from 9 and we're left with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

On to step 7:
When dividing 90 by 42, we get 2 with a remainder of 6.
The next digit of our result is 2. 
Result so far: 12090.2
Subtracting 84 from 90 leaves us with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Advancing to step 8:
If we divide 60 by 42, we get 1 and a remainder of 18.
Write down 1 as next digit of the result. 
Result so far: 12090.21
Deduct 42 from 60 and we're left with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Going ahead to step 9:
If we divide 180 by 42, we get 4 and a remainder of 12.
Put 4 as the next digit of the answer. 
Result so far: 12090.214
The remainder is 12 after subtracting 168 from 180.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

On to step 10:
When dividing 120 by 42, we get 2 with a remainder of 36.
Record the quotient 2 as the next digit in the result. 
Result so far: 12090.2142
Subtracting 84 from 120 leaves us with 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Advancing to step 11:
When dividing 360 by 42, we get 8 with a remainder of 24.
The next digit of our result is 8. 
Result so far: 12090.21428
Deduct 336 from 360 and we're left with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Advancing to step 12:
If we divide 240 by 42, we get 5 and a remainder of 30.
Put 5 as the next digit of the answer. 
Result so far: 12090.214285
Deduct 210 from 240 and we're left with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

On to step 13:
When dividing 300 by 42, we get 7 with a remainder of 6.
Use 7 as the next digit of our solution. 
Result so far: 12090.2142857
If we subtract 294 from 300, we 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.

Going ahead to step 14:
When dividing 60 by 42, we get 1 with a remainder of 18.
Record the quotient 1 as the next digit in the result. 
Result so far: 12090.21428571
If we subtract 42 from 60, we get 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

The quotient of the division is 12090.21428571, and the remainder is 1.8e-08.