We're dividing 40771 by 11 
We want to figure out the number of times 40771 can be divided by 11.

Going ahead to step 1:
The number 11 fits into 4 0 times, leaving a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 4 after subtracting 0 from 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 11

Advancing to step 2:
11 goes into 40 3 times with a remainder of 7.
Use 3 as the next digit of our solution. 
Result so far: 3.0
If we subtract 33 from 40, we get 7.
Include the next digit (7) from the dividend after 7, then repeat: 77 / 11

On to step 3:
When dividing 77 by 11, we get 7 with a remainder of 0.
The next digit of our result is 7. 
Result so far: 37.0
The remainder is 0 after subtracting 77 from 77.
Include the next digit (7) from the dividend after 0, then repeat: 7 / 11

Going ahead to step 4:
When dividing 7 by 11, we get 0 with a remainder of 7.
Record the quotient 0 as the next digit in the result. 
Result so far: 370.0
Subtract 0 from 7 to get 7.
Append the next digit (1) from the dividend to 7 and continue with: 71 / 11

Going ahead to step 5:
If we divide 71 by 11, we get 6 and a remainder of 5.
The number 6 becomes the next digit in our result. 
Result so far: 3706.0
The remainder is 5 after subtracting 66 from 71.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

On to step 6:
The number 11 fits into 50 4 times, leaving a remainder of 6.
Put 4 as the next digit of the answer. 
Result so far: 3706.4
If we take 44 away from 50, we end up with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Going ahead to step 7:
60 divided by 11 is 5 with a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 3706.45
If we take 55 away from 60, we end up with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Moving on to step 8:
The number 11 fits into 50 4 times, leaving a remainder of 6.
Write down 4 as next digit of the result. 
Result so far: 3706.454
If we subtract 44 from 50, we get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Let's proceed to step 9:
11 can be fit into 60 5 times, resulting in a remainder of 5.
The next digit of our result is 5. 
Result so far: 3706.4545
Subtract 55 from 60 to get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Going ahead to step 10:
11 can be fit into 50 4 times, resulting in a remainder of 6.
The next digit of our result is 4. 
Result so far: 3706.45454
If we subtract 44 from 50, we get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

On to step 11:
When dividing 60 by 11, we get 5 with a remainder of 5.
Write down 5 as next digit of the result. 
Result so far: 3706.454545
If we subtract 55 from 60, we get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Going ahead to step 12:
The number 11 fits into 50 4 times, leaving a remainder of 6.
Put 4 as the next digit of the answer. 
Result so far: 3706.4545454
The remainder is 6 after subtracting 44 from 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Moving on to step 13:
The number 11 fits into 60 5 times, leaving a remainder of 5.
Record the quotient 5 as the next digit in the result. 
Result so far: 3706.45454545
The remainder is 5 after subtracting 55 from 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

The final result is 3706.45454545 with a remainder of 5e-09.