Let's divide 40771 by 24
We're looking to find how many times 24 goes into 40771.

Let's proceed to step 1:
24 goes into 4 0 times with a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Bring next digit (0) of the dividend behind the 4 and repeat the process: 40 / 24

On to step 2:
The number 24 fits into 40 1 times, leaving a remainder of 16.
The next digit of our result is 1. 
Result so far: 1.0
Subtract 24 from 40 to get 16.
Fetch the next digit (7) from the dividend, attach it to 16 and continue: 167 / 24

Going ahead to step 3:
The number 24 fits into 167 6 times, leaving a remainder of 23.
Put 6 as the next digit of the answer. 
Result so far: 16.0
If we subtract 144 from 167, we get 23.
Take the next digit (7) from the dividend and append it to 23, then repeat: 237 / 24

On to step 4:
If we divide 237 by 24, we get 9 and a remainder of 21.
Put 9 as the next digit of the answer. 
Result so far: 169.0
If we subtract 216 from 237, we get 21.
Bring next digit (1) of the dividend behind the 21 and repeat the process: 211 / 24

Moving on to step 5:
211 divided by 24 is 8 with a remainder of 19.
The next digit of our result is 8. 
Result so far: 1698.0
Deduct 192 from 211 and we're left with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Step 6:
If we divide 190 by 24, we get 7 and a remainder of 22.
Record the quotient 7 as the next digit in the result. 
Result so far: 1698.7
Subtracting 168 from 190 leaves us with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Step 7:
When dividing 220 by 24, we get 9 with a remainder of 4.
Record the quotient 9 as the next digit in the result. 
Result so far: 1698.79
Subtract 216 from 220 to get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Let's proceed to step 8:
40 divided by 24 is 1 with a remainder of 16.
Use 1 as the next digit of our solution. 
Result so far: 1698.791
Subtracting 24 from 40 leaves us with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Step 9:
24 can be fit into 160 6 times, resulting in a remainder of 16.
Use 6 as the next digit of our solution. 
Result so far: 1698.7916
If we subtract 144 from 160, we get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Going ahead to step 10:
When dividing 160 by 24, we get 6 with a remainder of 16.
Use 6 as the next digit of our solution. 
Result so far: 1698.79166
Deduct 144 from 160 and we're left with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Our division results in 1698.79166 with a remaining 1.6e-05.