We divide 240564 by 31
We want to divide 240564 by 31.

Moving on to step 1:
When dividing 2 by 31, we get 0 with a remainder of 2.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 2, we end up with 2.
Take the next digit (4) from the dividend and append it to 2, then repeat: 24 / 31

Step 2:
If we divide 24 by 31, we get 0 and 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.
Append the next digit (0) from the dividend to 24 and continue with: 240 / 31

Going ahead to step 3:
The number 31 fits into 240 7 times, leaving a remainder of 23.
Put 7 as the next digit of the answer. 
Result so far: 7.0
Deduct 217 from 240 and we're left with 23.
Append the next digit (5) from the dividend to 23 and continue with: 235 / 31

Advancing to step 4:
235 divided by 31 is 7 with a remainder of 18.
Write down 7 as next digit of the result. 
Result so far: 77.0
Subtracting 217 from 235 leaves us with 18.
Fetch the next digit (6) from the dividend, attach it to 18 and continue: 186 / 31

Advancing to step 5:
31 goes into 186 6 times with a remainder of 0.
Put 6 as the next digit of the answer. 
Result so far: 776.0
The remainder is 0 after subtracting 186 from 186.
Append the next digit (4) from the dividend to 0 and continue with: 4 / 31

Advancing to step 6:
31 goes into 4 0 times with a remainder of 4.
Record the quotient 0 as the next digit in the result. 
Result so far: 7760.0
The remainder is 4 after subtracting 0 from 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Advancing to step 7:
If we divide 40 by 31, we get 1 and a remainder of 9.
Record the quotient 1 as the next digit in the result. 
Result so far: 7760.1
If we subtract 31 from 40, we get 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Step 8:
31 can be fit into 90 2 times, resulting in a remainder of 28.
Put 2 as the next digit of the answer. 
Result so far: 7760.12
Subtracting 62 from 90 leaves us with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Advancing to step 9:
The number 31 fits into 280 9 times, leaving a remainder of 1.
Write down 9 as next digit of the result. 
Result so far: 7760.129
If we subtract 279 from 280, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Let's proceed to step 10:
If we divide 10 by 31, we get 0 and a remainder of 10.
Record the quotient 0 as the next digit in the result. 
Result so far: 7760.129
Deduct 0 from 10 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 11:
31 can be fit into 100 3 times, resulting in a remainder of 7.
The number 3 becomes the next digit in our result. 
Result so far: 7760.12903
If we take 93 away from 100, we end up with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Going ahead to step 12:
31 can be fit into 70 2 times, resulting in a remainder of 8.
Put 2 as the next digit of the answer. 
Result so far: 7760.129032
If we subtract 62 from 70, we get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Going ahead to step 13:
When dividing 80 by 31, we get 2 with a remainder of 18.
Write down 2 as next digit of the result. 
Result so far: 7760.1290322
The remainder is 18 after subtracting 62 from 80.
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 7760.1290322, and the remainder is 1.8e-07.