Let's divide 509811 by 42
We want to figure out the number of times 509811 can be divided by 42.

Let's proceed to step 1:
42 can be fit into 5 0 times, resulting in a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Fetch the next digit (0) from the dividend, attach it to 5 and continue: 50 / 42

On to step 2:
If we divide 50 by 42, we get 1 and a remainder of 8.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Subtracting 42 from 50 leaves us with 8.
Include the next digit (9) from the dividend after 8, then repeat: 89 / 42

Let's proceed to step 3:
42 can be fit into 89 2 times, resulting in a remainder of 5.
The next digit of our result is 2. 
Result so far: 12.0
If we take 84 away from 89, we end up with 5.
Append the next digit (8) from the dividend to 5 and continue with: 58 / 42

Let's proceed to step 4:
42 can be fit into 58 1 times, resulting in a remainder of 16.
The number 1 becomes the next digit in our result. 
Result so far: 121.0
If we take 42 away from 58, we end up with 16.
Append the next digit (1) from the dividend to 16 and continue with: 161 / 42

Step 5:
If we divide 161 by 42, we get 3 and a remainder of 35.
Put 3 as the next digit of the answer. 
Result so far: 1213.0
Subtracting 126 from 161 leaves us with 35.
Append the next digit (1) from the dividend to 35 and continue with: 351 / 42

Going ahead to step 6:
If we divide 351 by 42, we get 8 and a remainder of 15.
The next digit of our result is 8. 
Result so far: 12138.0
If we subtract 336 from 351, we get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

On to step 7:
The number 42 fits into 150 3 times, leaving a remainder of 24.
Record the quotient 3 as the next digit in the result. 
Result so far: 12138.3
Subtract 126 from 150 to get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Going ahead to step 8:
240 divided by 42 is 5 with a remainder of 30.
The next digit of our result is 5. 
Result so far: 12138.35
The remainder is 30 after subtracting 210 from 240.
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 9:
When dividing 300 by 42, we get 7 with a remainder of 6.
Record the quotient 7 as the next digit in the result. 
Result so far: 12138.357
Subtract 294 from 300 to 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.

On to step 10:
60 divided by 42 is 1 with a remainder of 18.
Put 1 as the next digit of the answer. 
Result so far: 12138.3571
Subtracting 42 from 60 leaves us 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.

On to step 11:
180 divided by 42 is 4 with a remainder of 12.
Record the quotient 4 as the next digit in the result. 
Result so far: 12138.35714
If we take 168 away from 180, we end up with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Let's proceed to step 12:
120 divided by 42 is 2 with a remainder of 36.
The next digit of our result is 2. 
Result so far: 12138.357142
If we subtract 84 from 120, we get 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Step 13:
The number 42 fits into 360 8 times, leaving a remainder of 24.
The next digit of our result is 8. 
Result so far: 12138.3571428
If we subtract 336 from 360, we get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Let's proceed to step 14:
240 divided by 42 is 5 with a remainder of 30.
Write down 5 as next digit of the result. 
Result so far: 12138.35714285
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.

The final result is 12138.35714285 with a remainder of 3e-08.