We look at the division of 240077 by 40 
Let's see how many times 40 fits into 240077.

Advancing to step 1:
40 can be fit into 2 0 times, resulting in a remainder of 2.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 2 to get 2.
Append the next digit (4) from the dividend to 2 and continue with: 24 / 40

Going ahead to step 2:
When dividing 24 by 40, we get 0 with a remainder of 24.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 24, we end up with 24.
Append the next digit (0) from the dividend to 24 and continue with: 240 / 40

Let's proceed to step 3:
The number 40 fits into 240 6 times, leaving a remainder of 0.
Put 6 as the next digit of the answer. 
Result so far: 6.0
The remainder is 0 after subtracting 240 from 240.
Fetch the next digit (0) from the dividend, attach it to 0 and continue: 0 / 40

Step 4:
40 can be fit into 0 0 times, resulting in a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 60.0
Subtracting 0 from 0 leaves us with 0.
Fetch the next digit (7) from the dividend, attach it to 0 and continue: 7 / 40

Moving on to step 5:
40 can be fit into 7 0 times, resulting in a remainder of 7.
Record the quotient 0 as the next digit in the result. 
Result so far: 600.0
If we take 0 away from 7, we end up with 7.
Take the next digit (7) from the dividend and append it to 7, then repeat: 77 / 40

Let's proceed to step 6:
If we divide 77 by 40, we get 1 and a remainder of 37.
The next digit of our result is 1. 
Result so far: 6001.0
Subtracting 40 from 77 leaves us with 37.
Since there are no more digits in the dividend, we add a zero to the remainder making it 370, and continue the process.

Moving on to step 7:
The number 40 fits into 370 9 times, leaving a remainder of 10.
Write down 9 as next digit of the result. 
Result so far: 6001.9
Subtract 360 from 370 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Step 8:
40 goes into 100 2 times with a remainder of 20.
Put 2 as the next digit of the answer. 
Result so far: 6001.92
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.

On to step 9:
40 goes into 200 5 times with a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 6001.925
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.

Let's proceed to step 10:
The number 40 fits into 0 0 times, leaving a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 6001.925
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.

Step 11:
40 goes into 0 0 times with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 6001.925
Deduct 0 from 0 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.

The quotient of the division is 6001.925, and the remainder is 0.0.