Let's divide 665979 by 40
We want to figure out the number of times 665979 can be divided by 40.

Let's proceed 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
If we subtract 0 from 6, we get 6.
Grab the next digit (6) from the dividend, add it to 6, then carry on: 66 / 40

Let's proceed to step 2:
When dividing 66 by 40, we get 1 with a remainder of 26.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Deduct 40 from 66 and we're left with 26.
Append the next digit (5) from the dividend to 26 and continue with: 265 / 40

Moving on to step 3:
The number 40 fits into 265 6 times, leaving a remainder of 25.
Use 6 as the next digit of our solution. 
Result so far: 16.0
If we take 240 away from 265, we end up with 25.
Take the next digit (9) from the dividend and append it to 25, then repeat: 259 / 40

Step 4:
259 divided by 40 is 6 with a remainder of 19.
Put 6 as the next digit of the answer. 
Result so far: 166.0
If we take 240 away from 259, we end up with 19.
Fetch the next digit (7) from the dividend, attach it to 19 and continue: 197 / 40

Advancing to step 5:
40 goes into 197 4 times with a remainder of 37.
Put 4 as the next digit of the answer. 
Result so far: 1664.0
If we take 160 away from 197, we end up with 37.
Append the next digit (9) from the dividend to 37 and continue with: 379 / 40

Step 6:
The number 40 fits into 379 9 times, leaving a remainder of 19.
The number 9 becomes the next digit in our result. 
Result so far: 16649.0
Subtracting 360 from 379 leaves us with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

On to step 7:
40 goes into 190 4 times with a remainder of 30.
The number 4 becomes the next digit in our result. 
Result so far: 16649.4
Subtracting 160 from 190 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.

Advancing to step 8:
The number 40 fits into 300 7 times, leaving a remainder of 20.
Use 7 as the next digit of our solution. 
Result so far: 16649.47
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.

On to step 9:
If we divide 200 by 40, we get 5 and a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 16649.475
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.

Step 10:
0 divided by 40 is 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 16649.475
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.

Advancing to step 11:
If we divide 0 by 40, we get 0 and a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 16649.475
The remainder is 0 after subtracting 0 from 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 16649.475, and the remainder is 0.0.