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

Step 1:
If we divide 6 by 40, we get 0 and a remainder of 6.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 6 and we're left with 6.
Append the next digit (6) from the dividend to 6 and continue with: 66 / 40

Going ahead to step 2:
40 goes into 66 1 times with a remainder of 26.
The next digit of our result is 1. 
Result so far: 1.0
The remainder is 26 after subtracting 40 from 66.
Append the next digit (7) from the dividend to 26 and continue with: 267 / 40

Let's proceed to step 3:
40 goes into 267 6 times with a remainder of 27.
The number 6 becomes the next digit in our result. 
Result so far: 16.0
If we take 240 away from 267, we end up with 27.
Fetch the next digit (7) from the dividend, attach it to 27 and continue: 277 / 40

Advancing to step 4:
The number 40 fits into 277 6 times, leaving a remainder of 37.
Write down 6 as next digit of the result. 
Result so far: 166.0
The remainder is 37 after subtracting 240 from 277.
Take the next digit (4) from the dividend and append it to 37, then repeat: 374 / 40

Step 5:
When dividing 374 by 40, we get 9 with a remainder of 14.
Write down 9 as next digit of the result. 
Result so far: 1669.0
If we subtract 360 from 374, we get 14.
Append the next digit (7) from the dividend to 14 and continue with: 147 / 40

Let's proceed to step 6:
When dividing 147 by 40, we get 3 with a remainder of 27.
The next digit of our result is 3. 
Result so far: 16693.0
Deduct 120 from 147 and we're left with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Let's proceed to step 7:
The number 40 fits into 270 6 times, leaving a remainder of 30.
Record the quotient 6 as the next digit in the result. 
Result so far: 16693.6
Subtracting 240 from 270 leaves us with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Moving on to step 8:
When dividing 300 by 40, we get 7 with a remainder of 20.
Write down 7 as next digit of the result. 
Result so far: 16693.67
Subtract 280 from 300 to get 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 9:
40 goes into 200 5 times with a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 16693.675
If we take 200 away from 200, 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.

Advancing to step 10:
When dividing 0 by 40, we get 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 16693.675
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.

Step 11:
40 goes into 0 0 times with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 16693.675
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.

In conclusion, the division gives 16693.675 with a balance of 0.0.