We divide 665884 by 40
Let's see how many times 40 fits into 665884.

Moving on to step 1:
If we divide 6 by 40, we get 0 and a remainder of 6.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 6 and we're left with 6.
Fetch the next digit (6) from the dividend, attach it to 6 and continue: 66 / 40

Advancing 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
Subtract 40 from 66 to get 26.
Grab the next digit (5) from the dividend, add it to 26, then carry on: 265 / 40

Advancing to step 3:
265 divided by 40 is 6 with a remainder of 25.
The number 6 becomes the next digit in our result. 
Result so far: 16.0
The remainder is 25 after subtracting 240 from 265.
Grab the next digit (8) from the dividend, add it to 25, then carry on: 258 / 40

Let's proceed to step 4:
If we divide 258 by 40, we get 6 and a remainder of 18.
The number 6 becomes the next digit in our result. 
Result so far: 166.0
If we subtract 240 from 258, we get 18.
Include the next digit (8) from the dividend after 18, then repeat: 188 / 40

Moving on to step 5:
40 goes into 188 4 times with a remainder of 28.
Use 4 as the next digit of our solution. 
Result so far: 1664.0
If we take 160 away from 188, we end up with 28.
Bring next digit (4) of the dividend behind the 28 and repeat the process: 284 / 40

Going ahead to step 6:
284 divided by 40 is 7 with a remainder of 4.
The next digit of our result is 7. 
Result so far: 16647.0
If we subtract 280 from 284, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Step 7:
40 can be fit into 40 1 times, resulting in a remainder of 0.
Use 1 as the next digit of our solution. 
Result so far: 16647.1
If we take 40 away from 40, 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 8:
If we divide 0 by 40, we get 0 and a remainder of 0.
The next digit of our result is 0. 
Result so far: 16647.1
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.

Let's proceed to step 9:
40 can be fit into 0 0 times, resulting in a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 16647.1
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 16647.1, with a leftover of 0.0.