We look at the division of 845271 by 42 
Let's see how many times 42 fits into 845271.

Going ahead to step 1:
8 divided by 42 is 0 with a remainder of 8.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 8 to get 8.
Include the next digit (4) from the dividend after 8, then repeat: 84 / 42

Moving on to step 2:
84 divided by 42 is 2 with a remainder of 0.
The next digit of our result is 2. 
Result so far: 2.0
The remainder is 0 after subtracting 84 from 84.
Fetch the next digit (5) from the dividend, attach it to 0 and continue: 5 / 42

On to step 3:
5 divided by 42 is 0 with a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 20.0
Subtracting 0 from 5 leaves us with 5.
Take the next digit (2) from the dividend and append it to 5, then repeat: 52 / 42

Going ahead to step 4:
The number 42 fits into 52 1 times, leaving a remainder of 10.
Put 1 as the next digit of the answer. 
Result so far: 201.0
If we subtract 42 from 52, we get 10.
Append the next digit (7) from the dividend to 10 and continue with: 107 / 42

On to step 5:
42 can be fit into 107 2 times, resulting in a remainder of 23.
Write down 2 as next digit of the result. 
Result so far: 2012.0
If we subtract 84 from 107, we get 23.
Grab the next digit (1) from the dividend, add it to 23, then carry on: 231 / 42

Step 6:
231 divided by 42 is 5 with a remainder of 21.
Use 5 as the next digit of our solution. 
Result so far: 20125.0
Deduct 210 from 231 and we're left with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Step 7:
42 goes into 210 5 times with a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 20125.5
If we subtract 210 from 210, we get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Moving on to step 8:
The number 42 fits into 0 0 times, leaving a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 20125.5
Subtracting 0 from 0 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Let's proceed to step 9:
The number 42 fits into 0 0 times, leaving a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 20125.5
Subtracting 0 from 0 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The final result is 20125.5 with a remainder of 0.0.