498022 divided by 40 
Let's see how many times 40 fits into 498022.

Going ahead to step 1:
When dividing 4 by 40, we get 0 with a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Grab the next digit (9) from the dividend, add it to 4, then carry on: 49 / 40

On to step 2:
49 divided by 40 is 1 with a remainder of 9.
Write down 1 as next digit of the result. 
Result so far: 1.0
Deduct 40 from 49 and we're left with 9.
Append the next digit (8) from the dividend to 9 and continue with: 98 / 40

Advancing to step 3:
When dividing 98 by 40, we get 2 with a remainder of 18.
Write down 2 as next digit of the result. 
Result so far: 12.0
Subtracting 80 from 98 leaves us with 18.
Fetch the next digit (0) from the dividend, attach it to 18 and continue: 180 / 40

Going ahead to step 4:
The number 40 fits into 180 4 times, leaving a remainder of 20.
Use 4 as the next digit of our solution. 
Result so far: 124.0
If we take 160 away from 180, we end up with 20.
Append the next digit (2) from the dividend to 20 and continue with: 202 / 40

Going ahead to step 5:
202 divided by 40 is 5 with a remainder of 2.
Use 5 as the next digit of our solution. 
Result so far: 1245.0
The remainder is 2 after subtracting 200 from 202.
Fetch the next digit (2) from the dividend, attach it to 2 and continue: 22 / 40

Going ahead to step 6:
40 can be fit into 22 0 times, resulting in a remainder of 22.
Put 0 as the next digit of the answer. 
Result so far: 12450.0
Subtract 0 from 22 to 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.

Let's proceed to step 7:
The number 40 fits into 220 5 times, leaving a remainder of 20.
Write down 5 as next digit of the result. 
Result so far: 12450.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.

Advancing to step 8:
When dividing 200 by 40, we get 5 with a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 12450.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.

The final outcome is 12450.55, with a leftover of 0.0.