We're dividing 842165 by 41 
Let's see how many times 41 fits into 842165.

On to step 1:
When dividing 8 by 41, we get 0 with a remainder of 8.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 8 after subtracting 0 from 8.
Fetch the next digit (4) from the dividend, attach it to 8 and continue: 84 / 41

Moving on to step 2:
The number 41 fits into 84 2 times, leaving a remainder of 2.
Use 2 as the next digit of our solution. 
Result so far: 2.0
Subtract 82 from 84 to get 2.
Include the next digit (2) from the dividend after 2, then repeat: 22 / 41

On to step 3:
22 divided by 41 is 0 with a remainder of 22.
The number 0 becomes the next digit in our result. 
Result so far: 20.0
Subtract 0 from 22 to get 22.
Bring next digit (1) of the dividend behind the 22 and repeat the process: 221 / 41

Advancing to step 4:
If we divide 221 by 41, we get 5 and a remainder of 16.
Use 5 as the next digit of our solution. 
Result so far: 205.0
The remainder is 16 after subtracting 205 from 221.
Include the next digit (6) from the dividend after 16, then repeat: 166 / 41

Going ahead to step 5:
If we divide 166 by 41, we get 4 and a remainder of 2.
Write down 4 as next digit of the result. 
Result so far: 2054.0
Subtract 164 from 166 to get 2.
Take the next digit (5) from the dividend and append it to 2, then repeat: 25 / 41

Going ahead to step 6:
25 divided by 41 is 0 with a remainder of 25.
The next digit of our result is 0. 
Result so far: 20540.0
If we subtract 0 from 25, we get 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Going ahead to step 7:
If we divide 250 by 41, we get 6 and a remainder of 4.
Record the quotient 6 as the next digit in the result. 
Result so far: 20540.6
Subtract 246 from 250 to get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Let's proceed to step 8:
If we divide 40 by 41, we get 0 and a remainder of 40.
Use 0 as the next digit of our solution. 
Result so far: 20540.6
Deduct 0 from 40 and we're left with 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Let's proceed to step 9:
The number 41 fits into 400 9 times, leaving a remainder of 31.
The number 9 becomes the next digit in our result. 
Result so far: 20540.609
Subtract 369 from 400 to get 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

Going ahead to step 10:
If we divide 310 by 41, we get 7 and a remainder of 23.
The next digit of our result is 7. 
Result so far: 20540.6097
Subtracting 287 from 310 leaves us with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Going ahead to step 11:
41 can be fit into 230 5 times, resulting in a remainder of 25.
Write down 5 as next digit of the result. 
Result so far: 20540.60975
If we subtract 205 from 230, we get 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Step 12:
The number 41 fits into 250 6 times, leaving a remainder of 4.
Use 6 as the next digit of our solution. 
Result so far: 20540.609756
If we take 246 away from 250, we end up with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Going ahead to step 13:
41 can be fit into 40 0 times, resulting in a remainder of 40.
Write down 0 as next digit of the result. 
Result so far: 20540.609756
The remainder is 40 after subtracting 0 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Let's proceed to step 14:
41 can be fit into 400 9 times, resulting in a remainder of 31.
Put 9 as the next digit of the answer. 
Result so far: 20540.60975609
Subtracting 369 from 400 leaves us with 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

After the division, we end up with 20540.60975609 and a remainder of 3.1e-08.