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

Advancing to step 1:
40 goes into 6 0 times with a remainder of 6.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 6, we end up with 6.
Fetch the next digit (4) from the dividend, attach it to 6 and continue: 64 / 40

Let's proceed to step 2:
The number 40 fits into 64 1 times, leaving a remainder of 24.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
If we subtract 40 from 64, we get 24.
Fetch the next digit (7) from the dividend, attach it to 24 and continue: 247 / 40

Going ahead to step 3:
247 divided by 40 is 6 with a remainder of 7.
Record the quotient 6 as the next digit in the result. 
Result so far: 16.0
If we take 240 away from 247, we end up with 7.
Include the next digit (1) from the dividend after 7, then repeat: 71 / 40

Let's proceed to step 4:
40 can be fit into 71 1 times, resulting in a remainder of 31.
Put 1 as the next digit of the answer. 
Result so far: 161.0
The remainder is 31 after subtracting 40 from 71.
Append the next digit (4) from the dividend to 31 and continue with: 314 / 40

Going ahead to step 5:
If we divide 314 by 40, we get 7 and a remainder of 34.
Write down 7 as next digit of the result. 
Result so far: 1617.0
Subtracting 280 from 314 leaves us with 34.
Append the next digit (2) from the dividend to 34 and continue with: 342 / 40

Moving on to step 6:
The number 40 fits into 342 8 times, leaving a remainder of 22.
Put 8 as the next digit of the answer. 
Result so far: 16178.0
If we take 320 away from 342, we end up with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Moving on to step 7:
40 can be fit into 220 5 times, resulting in a remainder of 20.
The next digit of our result is 5. 
Result so far: 16178.5
Subtracting 200 from 220 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.

On to step 8:
40 goes into 200 5 times with a remainder of 0.
The next digit of our result is 5. 
Result so far: 16178.55
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.

The quotient of the division is 16178.55, and the remainder is 0.0.