We divide 240731 by 77
We want to figure out the number of times 240731 can be divided by 77.

Moving on to step 1:
If we divide 2 by 77, we get 0 and a remainder of 2.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 2, we get 2.
Grab the next digit (4) from the dividend, add it to 2, then carry on: 24 / 77

Let's proceed to step 2:
24 divided by 77 is 0 with a remainder of 24.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 24 after subtracting 0 from 24.
Grab the next digit (0) from the dividend, add it to 24, then carry on: 240 / 77

Step 3:
77 can be fit into 240 3 times, resulting in a remainder of 9.
Write down 3 as next digit of the result. 
Result so far: 3.0
If we subtract 231 from 240, we get 9.
Take the next digit (7) from the dividend and append it to 9, then repeat: 97 / 77

Going ahead to step 4:
If we divide 97 by 77, we get 1 and a remainder of 20.
Write down 1 as next digit of the result. 
Result so far: 31.0
Subtract 77 from 97 to get 20.
Grab the next digit (3) from the dividend, add it to 20, then carry on: 203 / 77

Let's proceed to step 5:
If we divide 203 by 77, we get 2 and a remainder of 49.
Record the quotient 2 as the next digit in the result. 
Result so far: 312.0
Subtract 154 from 203 to get 49.
Take the next digit (1) from the dividend and append it to 49, then repeat: 491 / 77

Step 6:
If we divide 491 by 77, we get 6 and a remainder of 29.
Write down 6 as next digit of the result. 
Result so far: 3126.0
The remainder is 29 after subtracting 462 from 491.
Since there are no more digits in the dividend, we add a zero to the remainder making it 290, and continue the process.

Moving on to step 7:
77 goes into 290 3 times with a remainder of 59.
Record the quotient 3 as the next digit in the result. 
Result so far: 3126.3
If we take 231 away from 290, we end up with 59.
Since there are no more digits in the dividend, we add a zero to the remainder making it 590, and continue the process.

Moving on to step 8:
If we divide 590 by 77, we get 7 and a remainder of 51.
Use 7 as the next digit of our solution. 
Result so far: 3126.37
Deduct 539 from 590 and we're left with 51.
Since there are no more digits in the dividend, we add a zero to the remainder making it 510, and continue the process.

Moving on to step 9:
77 goes into 510 6 times with a remainder of 48.
Put 6 as the next digit of the answer. 
Result so far: 3126.376
If we subtract 462 from 510, we get 48.
Since there are no more digits in the dividend, we add a zero to the remainder making it 480, and continue the process.

Advancing to step 10:
When dividing 480 by 77, we get 6 with a remainder of 18.
Record the quotient 6 as the next digit in the result. 
Result so far: 3126.3766
Deduct 462 from 480 and we're left with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

The quotient of the division is 3126.3766, and the remainder is 0.00018.