667765 divided by 40 
We want to figure out the number of times 667765 can be divided by 40.

Going ahead to step 1:
6 divided by 40 is 0 with a remainder of 6.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 6, we get 6.
Append the next digit (6) from the dividend to 6 and continue with: 66 / 40

Moving on to step 2:
40 can be fit into 66 1 times, resulting in a remainder of 26.
Write down 1 as next digit of the result. 
Result so far: 1.0
Deduct 40 from 66 and we're left with 26.
Append the next digit (7) from the dividend to 26 and continue with: 267 / 40

Let's proceed to step 3:
The number 40 fits into 267 6 times, leaving a remainder of 27.
The number 6 becomes the next digit in our result. 
Result so far: 16.0
Subtract 240 from 267 to get 27.
Take the next digit (7) from the dividend and append it to 27, then repeat: 277 / 40

Let's proceed to step 4:
40 goes into 277 6 times with a remainder of 37.
Write down 6 as next digit of the result. 
Result so far: 166.0
Deduct 240 from 277 and we're left with 37.
Bring next digit (6) of the dividend behind the 37 and repeat the process: 376 / 40

On to step 5:
40 can be fit into 376 9 times, resulting in a remainder of 16.
The next digit of our result is 9. 
Result so far: 1669.0
Subtracting 360 from 376 leaves us with 16.
Fetch the next digit (5) from the dividend, attach it to 16 and continue: 165 / 40

Going ahead to step 6:
40 goes into 165 4 times with a remainder of 5.
Record the quotient 4 as the next digit in the result. 
Result so far: 16694.0
Subtract 160 from 165 to get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Advancing to step 7:
50 divided by 40 is 1 with a remainder of 10.
Record the quotient 1 as the next digit in the result. 
Result so far: 16694.1
Subtract 40 from 50 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

On to step 8:
If we divide 100 by 40, we get 2 and a remainder of 20.
The next digit of our result is 2. 
Result so far: 16694.12
Subtract 80 from 100 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.

Step 9:
40 can be fit into 200 5 times, resulting in a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 16694.125
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.

Going ahead to step 10:
When dividing 0 by 40, we get 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 16694.125
Subtract 0 from 0 to 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 11:
40 goes into 0 0 times with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 16694.125
Subtract 0 from 0 to 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 final result is 16694.125 with a remainder of 0.0.