We look at the division of 497838 by 40 
We're looking to find how many times 40 goes into 497838.

Advancing to step 1:
When dividing 4 by 40, we get 0 with a remainder of 4.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Take the next digit (9) from the dividend and append it to 4, then repeat: 49 / 40

Let's proceed to step 2:
40 goes into 49 1 times with a remainder of 9.
Use 1 as the next digit of our solution. 
Result so far: 1.0
The remainder is 9 after subtracting 40 from 49.
Bring next digit (7) of the dividend behind the 9 and repeat the process: 97 / 40

Moving on to step 3:
If we divide 97 by 40, we get 2 and a remainder of 17.
Use 2 as the next digit of our solution. 
Result so far: 12.0
If we subtract 80 from 97, we get 17.
Take the next digit (8) from the dividend and append it to 17, then repeat: 178 / 40

Let's proceed to step 4:
If we divide 178 by 40, we get 4 and a remainder of 18.
The next digit of our result is 4. 
Result so far: 124.0
If we take 160 away from 178, we end up with 18.
Fetch the next digit (3) from the dividend, attach it to 18 and continue: 183 / 40

Step 5:
When dividing 183 by 40, we get 4 with a remainder of 23.
The next digit of our result is 4. 
Result so far: 1244.0
The remainder is 23 after subtracting 160 from 183.
Grab the next digit (8) from the dividend, add it to 23, then carry on: 238 / 40

Moving on to step 6:
40 can be fit into 238 5 times, resulting in a remainder of 38.
Write down 5 as next digit of the result. 
Result so far: 12445.0
Subtracting 200 from 238 leaves us with 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Let's proceed to step 7:
40 can be fit into 380 9 times, resulting in a remainder of 20.
Put 9 as the next digit of the answer. 
Result so far: 12445.9
Deduct 360 from 380 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:
40 can be fit into 200 5 times, resulting in a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 12445.95
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.

Let's proceed to step 9:
40 can be fit into 0 0 times, resulting in a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 12445.95
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.

Going ahead to step 10:
If we divide 0 by 40, we get 0 and a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 12445.95
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.

After the division, we end up with 12445.95 and a remainder of 0.0.