236665 ÷ 40 
Our goal is to divide 236665 by 40.

Let's proceed to step 1:
40 can be fit into 2 0 times, resulting in a remainder of 2.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 2, we get 2.
Take the next digit (3) from the dividend and append it to 2, then repeat: 23 / 40

Let's proceed to step 2:
The number 40 fits into 23 0 times, leaving a remainder of 23.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 23, we end up with 23.
Append the next digit (6) from the dividend to 23 and continue with: 236 / 40

Moving on to step 3:
236 divided by 40 is 5 with a remainder of 36.
The number 5 becomes the next digit in our result. 
Result so far: 5.0
Subtracting 200 from 236 leaves us with 36.
Take the next digit (6) from the dividend and append it to 36, then repeat: 366 / 40

Step 4:
If we divide 366 by 40, we get 9 and a remainder of 6.
Record the quotient 9 as the next digit in the result. 
Result so far: 59.0
If we subtract 360 from 366, we get 6.
Take the next digit (6) from the dividend and append it to 6, then repeat: 66 / 40

Moving on to step 5:
40 goes into 66 1 times with a remainder of 26.
Record the quotient 1 as the next digit in the result. 
Result so far: 591.0
If we take 40 away from 66, we end up with 26.
Include the next digit (5) from the dividend after 26, then repeat: 265 / 40

Step 6:
When dividing 265 by 40, we get 6 with a remainder of 25.
Write down 6 as next digit of the result. 
Result so far: 5916.0
Deduct 240 from 265 and we're left with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Moving on to step 7:
The number 40 fits into 250 6 times, leaving a remainder of 10.
The next digit of our result is 6. 
Result so far: 5916.6
Deduct 240 from 250 and we're left with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

On to step 8:
When dividing 100 by 40, we get 2 with a remainder of 20.
The next digit of our result is 2. 
Result so far: 5916.62
If we subtract 80 from 100, 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 9:
40 goes into 200 5 times with a remainder of 0.
The next digit of our result is 5. 
Result so far: 5916.625
Subtracting 200 from 200 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.

Going ahead to step 10:
40 goes into 0 0 times with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 5916.625
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.

Going ahead to step 11:
40 can be fit into 0 0 times, resulting in a remainder of 0.
The next digit of our result is 0. 
Result so far: 5916.625
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 quotient of the division is 5916.625, and the remainder is 0.0.