We divide 336664 by 40
We want to figure out the number of times 336664 can be divided by 40.

Moving on to step 1:
If we divide 3 by 40, we get 0 and a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Grab the next digit (3) from the dividend, add it to 3, then carry on: 33 / 40

Let's proceed to step 2:
33 divided by 40 is 0 with a remainder of 33.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 33 and we're left with 33.
Take the next digit (6) from the dividend and append it to 33, then repeat: 336 / 40

Advancing to step 3:
The number 40 fits into 336 8 times, leaving a remainder of 16.
The number 8 becomes the next digit in our result. 
Result so far: 8.0
Deduct 320 from 336 and we're left with 16.
Append the next digit (6) from the dividend to 16 and continue with: 166 / 40

Let's proceed to step 4:
The number 40 fits into 166 4 times, leaving a remainder of 6.
Record the quotient 4 as the next digit in the result. 
Result so far: 84.0
If we take 160 away from 166, we end up with 6.
Fetch the next digit (6) from the dividend, attach it to 6 and continue: 66 / 40

Step 5:
40 can be fit into 66 1 times, resulting in a remainder of 26.
Use 1 as the next digit of our solution. 
Result so far: 841.0
Subtract 40 from 66 to get 26.
Fetch the next digit (4) from the dividend, attach it to 26 and continue: 264 / 40

Moving on to step 6:
264 divided by 40 is 6 with a remainder of 24.
Use 6 as the next digit of our solution. 
Result so far: 8416.0
Subtract 240 from 264 to get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

On to step 7:
240 divided by 40 is 6 with a remainder of 0.
The next digit of our result is 6. 
Result so far: 8416.6
Deduct 240 from 240 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 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: 8416.6
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.

On to step 9:
40 can be fit into 0 0 times, resulting in a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 8416.6
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.

After the division, we end up with 8416.6 and a remainder of 0.0.