We divide 505016 by 42
We want to figure out the number of times 505016 can be divided by 42.

Going ahead to step 1:
If we divide 5 by 42, we get 0 and 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.
Take the next digit (0) from the dividend and append it to 5, then repeat: 50 / 42

Moving on to step 2:
50 divided by 42 is 1 with a remainder of 8.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtract 42 from 50 to get 8.
Take the next digit (5) from the dividend and append it to 8, then repeat: 85 / 42

Let's proceed to step 3:
The number 42 fits into 85 2 times, leaving a remainder of 1.
The number 2 becomes the next digit in our result. 
Result so far: 12.0
The remainder is 1 after subtracting 84 from 85.
Include the next digit (0) from the dividend after 1, then repeat: 10 / 42

Advancing to step 4:
The number 42 fits into 10 0 times, leaving a remainder of 10.
The number 0 becomes the next digit in our result. 
Result so far: 120.0
Subtracting 0 from 10 leaves us with 10.
Bring next digit (1) of the dividend behind the 10 and repeat the process: 101 / 42

Going ahead to step 5:
42 can be fit into 101 2 times, resulting in a remainder of 17.
The number 2 becomes the next digit in our result. 
Result so far: 1202.0
Subtract 84 from 101 to get 17.
Take the next digit (6) from the dividend and append it to 17, then repeat: 176 / 42

Let's proceed to step 6:
The number 42 fits into 176 4 times, leaving a remainder of 8.
The number 4 becomes the next digit in our result. 
Result so far: 12024.0
If we take 168 away from 176, we end up with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Let's proceed to step 7:
When dividing 80 by 42, we get 1 with a remainder of 38.
The next digit of our result is 1. 
Result so far: 12024.1
Deduct 42 from 80 and we're left 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.

Let's proceed to step 8:
42 goes into 380 9 times with a remainder of 2.
Put 9 as the next digit of the answer. 
Result so far: 12024.19
If we take 378 away from 380, we end up with 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 9:
If we divide 20 by 42, we get 0 and a remainder of 20.
The number 0 becomes the next digit in our result. 
Result so far: 12024.19
Subtracting 0 from 20 leaves us 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.

On to step 10:
If we divide 200 by 42, we get 4 and a remainder of 32.
Write down 4 as next digit of the result. 
Result so far: 12024.1904
Subtract 168 from 200 to get 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Let's proceed to step 11:
When dividing 320 by 42, we get 7 with a remainder of 26.
The next digit of our result is 7. 
Result so far: 12024.19047
The remainder is 26 after subtracting 294 from 320.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Step 12:
260 divided by 42 is 6 with a remainder of 8.
The number 6 becomes the next digit in our result. 
Result so far: 12024.190476
If we take 252 away from 260, we end up with 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 13:
The number 42 fits into 80 1 times, leaving a remainder of 38.
Put 1 as the next digit of the answer. 
Result so far: 12024.1904761
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.

Let's proceed to step 14:
380 divided by 42 is 9 with a remainder of 2.
Use 9 as the next digit of our solution. 
Result so far: 12024.19047619
Deduct 378 from 380 and we're left with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

After the division, we end up with 12024.19047619 and a remainder of 2e-09.