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

Let's proceed to step 1:
40 can be fit into 6 0 times, resulting in a remainder of 6.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 6, we get 6.
Include the next digit (2) from the dividend after 6, then repeat: 62 / 40

Going ahead to step 2:
When dividing 62 by 40, we get 1 with a remainder of 22.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Subtract 40 from 62 to get 22.
Fetch the next digit (9) from the dividend, attach it to 22 and continue: 229 / 40

Advancing to step 3:
The number 40 fits into 229 5 times, leaving a remainder of 29.
The next digit of our result is 5. 
Result so far: 15.0
The remainder is 29 after subtracting 200 from 229.
Include the next digit (8) from the dividend after 29, then repeat: 298 / 40

On to step 4:
The number 40 fits into 298 7 times, leaving a remainder of 18.
The next digit of our result is 7. 
Result so far: 157.0
If we subtract 280 from 298, we get 18.
Fetch the next digit (4) from the dividend, attach it to 18 and continue: 184 / 40

Advancing to step 5:
When dividing 184 by 40, we get 4 with a remainder of 24.
Write down 4 as next digit of the result. 
Result so far: 1574.0
Subtract 160 from 184 to get 24.
Include the next digit (2) from the dividend after 24, then repeat: 242 / 40

Moving on to step 6:
40 goes into 242 6 times with a remainder of 2.
Put 6 as the next digit of the answer. 
Result so far: 15746.0
Subtracting 240 from 242 leaves us with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Moving on to step 7:
When dividing 20 by 40, we get 0 with a remainder of 20.
Write down 0 as next digit of the result. 
Result so far: 15746.0
Subtracting 0 from 20 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.

Let's proceed to step 8:
If we divide 200 by 40, we get 5 and a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 15746.05
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.

Step 9:
The number 40 fits into 0 0 times, leaving a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 15746.05
The remainder is 0 after subtracting 0 from 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:
0 divided by 40 is 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 15746.05
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.

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