Let's divide 50811 by 40
Our goal is to divide 50811 by 40.

Going ahead to step 1:
5 divided by 40 is 0 with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Include the next digit (0) from the dividend after 5, then repeat: 50 / 40

On to step 2:
The number 40 fits into 50 1 times, leaving a remainder of 10.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Deduct 40 from 50 and we're left with 10.
Grab the next digit (8) from the dividend, add it to 10, then carry on: 108 / 40

Going ahead to step 3:
If we divide 108 by 40, we get 2 and a remainder of 28.
Use 2 as the next digit of our solution. 
Result so far: 12.0
If we subtract 80 from 108, we get 28.
Bring next digit (1) of the dividend behind the 28 and repeat the process: 281 / 40

Let's proceed to step 4:
The number 40 fits into 281 7 times, leaving a remainder of 1.
Use 7 as the next digit of our solution. 
Result so far: 127.0
If we subtract 280 from 281, we get 1.
Take the next digit (1) from the dividend and append it to 1, then repeat: 11 / 40

Moving on to step 5:
The number 40 fits into 11 0 times, leaving a remainder of 11.
Put 0 as the next digit of the answer. 
Result so far: 1270.0
Subtracting 0 from 11 leaves us with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Let's proceed to step 6:
40 goes into 110 2 times with a remainder of 30.
The number 2 becomes the next digit in our result. 
Result so far: 1270.2
Deduct 80 from 110 and we're left with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Moving on to step 7:
If we divide 300 by 40, we get 7 and a remainder of 20.
Write down 7 as next digit of the result. 
Result so far: 1270.27
Deduct 280 from 300 and we're left with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Going ahead to step 8:
200 divided by 40 is 5 with a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 1270.275
The remainder is 0 after subtracting 200 from 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Step 9:
If we divide 0 by 40, we get 0 and a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 1270.275
Subtracting 0 from 0 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.

Moving on to step 10:
When dividing 0 by 40, we get 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 1270.275
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.

The final outcome is 1270.275, with a leftover of 0.0.