822338 divided by 40 
We're looking to find how many times 40 goes into 822338.

Going ahead to step 1:
When dividing 8 by 40, we get 0 with a remainder of 8.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 8 after subtracting 0 from 8.
Append the next digit (2) from the dividend to 8 and continue with: 82 / 40

Step 2:
The number 40 fits into 82 2 times, leaving a remainder of 2.
Put 2 as the next digit of the answer. 
Result so far: 2.0
If we take 80 away from 82, we end up with 2.
Take the next digit (2) from the dividend and append it to 2, then repeat: 22 / 40

Moving on to step 3:
The number 40 fits into 22 0 times, leaving a remainder of 22.
Use 0 as the next digit of our solution. 
Result so far: 20.0
If we subtract 0 from 22, we get 22.
Include the next digit (3) from the dividend after 22, then repeat: 223 / 40

Moving on to step 4:
When dividing 223 by 40, we get 5 with a remainder of 23.
The next digit of our result is 5. 
Result so far: 205.0
Deduct 200 from 223 and we're left with 23.
Bring next digit (3) of the dividend behind the 23 and repeat the process: 233 / 40

Moving on to step 5:
233 divided by 40 is 5 with a remainder of 33.
Use 5 as the next digit of our solution. 
Result so far: 2055.0
If we take 200 away from 233, we end up with 33.
Include the next digit (8) from the dividend after 33, then repeat: 338 / 40

Going ahead to step 6:
The number 40 fits into 338 8 times, leaving a remainder of 18.
Write down 8 as next digit of the result. 
Result so far: 20558.0
If we take 320 away from 338, we end up with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

On to step 7:
If we divide 180 by 40, we get 4 and a remainder of 20.
The number 4 becomes the next digit in our result. 
Result so far: 20558.4
Subtracting 160 from 180 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.

Going ahead to step 8:
The number 40 fits into 200 5 times, leaving a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 20558.45
If we subtract 200 from 200, 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.

Going ahead to step 9:
The number 40 fits into 0 0 times, leaving a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 20558.45
If we subtract 0 from 0, 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.

Advancing to step 10:
The number 40 fits into 0 0 times, leaving a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 20558.45
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 quotient of the division is 20558.45, and the remainder is 0.0.