We're dividing 665091 by 40 
Let's see how many times 40 fits into 665091.

Moving on to step 1:
The number 40 fits into 6 0 times, leaving a remainder of 6.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 6 leaves us with 6.
Bring next digit (6) of the dividend behind the 6 and repeat the process: 66 / 40

Going ahead to step 2:
40 can be fit into 66 1 times, resulting in a remainder of 26.
Put 1 as the next digit of the answer. 
Result so far: 1.0
If we subtract 40 from 66, we get 26.
Append the next digit (5) from the dividend to 26 and continue with: 265 / 40

Moving on to step 3:
40 can be fit into 265 6 times, resulting in a remainder of 25.
Use 6 as the next digit of our solution. 
Result so far: 16.0
Subtracting 240 from 265 leaves us with 25.
Grab the next digit (0) from the dividend, add it to 25, then carry on: 250 / 40

Let's proceed to step 4:
The number 40 fits into 250 6 times, leaving a remainder of 10.
The next digit of our result is 6. 
Result so far: 166.0
Deduct 240 from 250 and we're left with 10.
Take the next digit (9) from the dividend and append it to 10, then repeat: 109 / 40

Moving on to step 5:
40 can be fit into 109 2 times, resulting in a remainder of 29.
Put 2 as the next digit of the answer. 
Result so far: 1662.0
If we take 80 away from 109, we end up with 29.
Fetch the next digit (1) from the dividend, attach it to 29 and continue: 291 / 40

Let's proceed to step 6:
The number 40 fits into 291 7 times, leaving a remainder of 11.
The number 7 becomes the next digit in our result. 
Result so far: 16627.0
If we subtract 280 from 291, we get 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Moving on to step 7:
40 goes into 110 2 times with a remainder of 30.
The next digit of our result is 2. 
Result so far: 16627.2
The remainder is 30 after subtracting 80 from 110.
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:
40 goes into 300 7 times with a remainder of 20.
Use 7 as the next digit of our solution. 
Result so far: 16627.27
If we subtract 280 from 300, we 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:
If we divide 200 by 40, we get 5 and a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 16627.275
The remainder is 0 after subtracting 200 from 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Step 10:
When dividing 0 by 40, we get 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 16627.275
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.

Step 11:
If we divide 0 by 40, we get 0 and a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 16627.275
If we subtract 0 from 0, 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 final result is 16627.275 with a remainder of 0.0.