662364 divided by 40 
We're looking to find how many times 40 goes into 662364.

Going ahead 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
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

On to step 2:
If we divide 66 by 40, we get 1 and a remainder of 26.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Deduct 40 from 66 and we're left with 26.
Grab the next digit (2) from the dividend, add it to 26, then carry on: 262 / 40

Advancing to step 3:
The number 40 fits into 262 6 times, leaving a remainder of 22.
The number 6 becomes the next digit in our result. 
Result so far: 16.0
The remainder is 22 after subtracting 240 from 262.
Include the next digit (3) from the dividend after 22, then repeat: 223 / 40

Let's proceed to step 4:
If we divide 223 by 40, we get 5 and a remainder of 23.
Write down 5 as next digit of the result. 
Result so far: 165.0
Subtracting 200 from 223 leaves us with 23.
Bring next digit (6) of the dividend behind the 23 and repeat the process: 236 / 40

Advancing to step 5:
When dividing 236 by 40, we get 5 with a remainder of 36.
Record the quotient 5 as the next digit in the result. 
Result so far: 1655.0
Deduct 200 from 236 and we're left with 36.
Append the next digit (4) from the dividend to 36 and continue with: 364 / 40

On to step 6:
40 goes into 364 9 times with a remainder of 4.
Use 9 as the next digit of our solution. 
Result so far: 16559.0
If we take 360 away from 364, we end up with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Step 7:
If we divide 40 by 40, we get 1 and a remainder of 0.
The next digit of our result is 1. 
Result so far: 16559.1
Deduct 40 from 40 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:
0 divided by 40 is 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 16559.1
Subtracting 0 from 0 leaves us 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.

On to step 9:
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: 16559.1
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.

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