We're dividing 173822 by 40 
We want to divide 173822 by 40.

Let's proceed to step 1:
40 goes into 1 0 times with a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 1 to get 1.
Append the next digit (7) from the dividend to 1 and continue with: 17 / 40

On to step 2:
When dividing 17 by 40, we get 0 with a remainder of 17.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 17, we end up with 17.
Bring next digit (3) of the dividend behind the 17 and repeat the process: 173 / 40

On to step 3:
40 can be fit into 173 4 times, resulting in a remainder of 13.
The next digit of our result is 4. 
Result so far: 4.0
The remainder is 13 after subtracting 160 from 173.
Include the next digit (8) from the dividend after 13, then repeat: 138 / 40

Let's proceed to step 4:
If we divide 138 by 40, we get 3 and a remainder of 18.
Write down 3 as next digit of the result. 
Result so far: 43.0
If we subtract 120 from 138, we get 18.
Take the next digit (2) from the dividend and append it to 18, then repeat: 182 / 40

Step 5:
182 divided by 40 is 4 with a remainder of 22.
Put 4 as the next digit of the answer. 
Result so far: 434.0
If we subtract 160 from 182, we get 22.
Grab the next digit (2) from the dividend, add it to 22, then carry on: 222 / 40

Step 6:
40 can be fit into 222 5 times, resulting in a remainder of 22.
The number 5 becomes the next digit in our result. 
Result so far: 4345.0
If we subtract 200 from 222, we get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

On to step 7:
When dividing 220 by 40, we get 5 with a remainder of 20.
Write down 5 as next digit of the result. 
Result so far: 4345.5
Deduct 200 from 220 and we're left 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.

Let's proceed to step 8:
The number 40 fits into 200 5 times, leaving a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 4345.55
Subtracting 200 from 200 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.

In conclusion, the division gives 4345.55 with a balance of 0.0.