We look at the division of 666334 by 40 
We want to figure out the number of times 666334 can be divided by 40.

Step 1:
40 goes into 6 0 times with a remainder of 6.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 6 to get 6.
Include the next digit (6) from the dividend after 6, then repeat: 66 / 40

Advancing to step 2:
The number 40 fits into 66 1 times, leaving a remainder of 26.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
The remainder is 26 after subtracting 40 from 66.
Bring next digit (6) of the dividend behind the 26 and repeat the process: 266 / 40

On to step 3:
If we divide 266 by 40, we get 6 and a remainder of 26.
Use 6 as the next digit of our solution. 
Result so far: 16.0
If we subtract 240 from 266, we get 26.
Take the next digit (3) from the dividend and append it to 26, then repeat: 263 / 40

Going ahead to step 4:
If we divide 263 by 40, we get 6 and a remainder of 23.
The number 6 becomes the next digit in our result. 
Result so far: 166.0
Subtract 240 from 263 to get 23.
Fetch the next digit (3) from the dividend, attach it to 23 and continue: 233 / 40

Going ahead to step 5:
233 divided by 40 is 5 with a remainder of 33.
Record the quotient 5 as the next digit in the result. 
Result so far: 1665.0
Subtract 200 from 233 to get 33.
Grab the next digit (4) from the dividend, add it to 33, then carry on: 334 / 40

Advancing to step 6:
When dividing 334 by 40, we get 8 with a remainder of 14.
The next digit of our result is 8. 
Result so far: 16658.0
If we subtract 320 from 334, we get 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Let's proceed to step 7:
40 can be fit into 140 3 times, resulting in a remainder of 20.
The number 3 becomes the next digit in our result. 
Result so far: 16658.3
If we take 120 away from 140, we end up with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Let's proceed to step 8:
If we divide 200 by 40, we get 5 and a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 16658.35
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 9:
0 divided by 40 is 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 16658.35
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 10:
40 goes into 0 0 times with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 16658.35
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.

Our division results in 16658.35 with a remaining 0.0.