We divide 842175 by 40
We want to figure out the number of times 842175 can be divided by 40.

Let's proceed to step 1:
If we divide 8 by 40, we get 0 and a remainder of 8.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 8 leaves us with 8.
Take the next digit (4) from the dividend and append it to 8, then repeat: 84 / 40

On to step 2:
40 goes into 84 2 times with a remainder of 4.
Use 2 as the next digit of our solution. 
Result so far: 2.0
Deduct 80 from 84 and we're left with 4.
Include the next digit (2) from the dividend after 4, then repeat: 42 / 40

Going ahead to step 3:
If we divide 42 by 40, we get 1 and a remainder of 2.
Use 1 as the next digit of our solution. 
Result so far: 21.0
Subtracting 40 from 42 leaves us with 2.
Bring next digit (1) of the dividend behind the 2 and repeat the process: 21 / 40

Moving on to step 4:
If we divide 21 by 40, we get 0 and a remainder of 21.
Use 0 as the next digit of our solution. 
Result so far: 210.0
The remainder is 21 after subtracting 0 from 21.
Include the next digit (7) from the dividend after 21, then repeat: 217 / 40

On to step 5:
The number 40 fits into 217 5 times, leaving a remainder of 17.
Put 5 as the next digit of the answer. 
Result so far: 2105.0
If we take 200 away from 217, we end up with 17.
Fetch the next digit (5) from the dividend, attach it to 17 and continue: 175 / 40

Going ahead to step 6:
The number 40 fits into 175 4 times, leaving a remainder of 15.
Write down 4 as next digit of the result. 
Result so far: 21054.0
Deduct 160 from 175 and we're left with 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:
When dividing 150 by 40, we get 3 with a remainder of 30.
Put 3 as the next digit of the answer. 
Result so far: 21054.3
Subtract 120 from 150 to get 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 8:
When dividing 300 by 40, we get 7 with a remainder of 20.
Write down 7 as next digit of the result. 
Result so far: 21054.37
Subtracting 280 from 300 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.

Step 9:
The number 40 fits into 200 5 times, leaving a remainder of 0.
The next digit of our result is 5. 
Result so far: 21054.375
Deduct 200 from 200 and we're left 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.

Advancing to step 10:
40 can be fit into 0 0 times, resulting in a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 21054.375
If we take 0 away from 0, we end up 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 11:
When dividing 0 by 40, we get 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 21054.375
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.

Our division results in 21054.375 with a remaining 0.0.