Let's divide 668706 by 40
We're looking to find how many times 40 goes into 668706.

Step 1:
6 divided by 40 is 0 with a remainder of 6.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 6 after subtracting 0 from 6.
Append the next digit (6) from the dividend to 6 and continue with: 66 / 40

Advancing 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
Subtracting 40 from 66 leaves us with 26.
Append the next digit (8) from the dividend to 26 and continue with: 268 / 40

Step 3:
40 goes into 268 6 times with a remainder of 28.
Put 6 as the next digit of the answer. 
Result so far: 16.0
If we subtract 240 from 268, we get 28.
Append the next digit (7) from the dividend to 28 and continue with: 287 / 40

Step 4:
287 divided by 40 is 7 with a remainder of 7.
Use 7 as the next digit of our solution. 
Result so far: 167.0
If we subtract 280 from 287, we get 7.
Include the next digit (0) from the dividend after 7, then repeat: 70 / 40

Step 5:
70 divided by 40 is 1 with a remainder of 30.
Write down 1 as next digit of the result. 
Result so far: 1671.0
Deduct 40 from 70 and we're left with 30.
Fetch the next digit (6) from the dividend, attach it to 30 and continue: 306 / 40

Moving on to step 6:
When dividing 306 by 40, we get 7 with a remainder of 26.
Put 7 as the next digit of the answer. 
Result so far: 16717.0
Subtracting 280 from 306 leaves us with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Going ahead to step 7:
40 goes into 260 6 times with a remainder of 20.
The number 6 becomes the next digit in our result. 
Result so far: 16717.6
If we subtract 240 from 260, 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.

Moving on to step 8:
The number 40 fits into 200 5 times, leaving a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 16717.65
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.

Advancing to step 9:
40 goes into 0 0 times with a remainder of 0.
The next digit of our result is 0. 
Result so far: 16717.65
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.

Step 10:
When dividing 0 by 40, we get 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 16717.65
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 16717.65 with a remainder of 0.0.