500886 divided by 40 
Our goal is to divide 500886 by 40.

Step 1:
40 goes into 5 0 times with a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Fetch the next digit (0) from the dividend, attach it to 5 and continue: 50 / 40

Let's proceed 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
Subtract 40 from 50 to get 10.
Fetch the next digit (0) from the dividend, attach it to 10 and continue: 100 / 40

Step 3:
When dividing 100 by 40, we get 2 with a remainder of 20.
Record the quotient 2 as the next digit in the result. 
Result so far: 12.0
Subtract 80 from 100 to get 20.
Grab the next digit (8) from the dividend, add it to 20, then carry on: 208 / 40

Let's proceed to step 4:
40 goes into 208 5 times with a remainder of 8.
Write down 5 as next digit of the result. 
Result so far: 125.0
If we subtract 200 from 208, we get 8.
Append the next digit (8) from the dividend to 8 and continue with: 88 / 40

On to step 5:
If we divide 88 by 40, we get 2 and a remainder of 8.
The number 2 becomes the next digit in our result. 
Result so far: 1252.0
Deduct 80 from 88 and we're left with 8.
Grab the next digit (6) from the dividend, add it to 8, then carry on: 86 / 40

Step 6:
The number 40 fits into 86 2 times, leaving a remainder of 6.
Put 2 as the next digit of the answer. 
Result so far: 12522.0
If we take 80 away from 86, 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.

Let's proceed to step 7:
If we divide 60 by 40, we get 1 and a remainder of 20.
Write down 1 as next digit of the result. 
Result so far: 12522.1
If we take 40 away from 60, we end up 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.

On to step 8:
If we divide 200 by 40, we get 5 and a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 12522.15
If we subtract 200 from 200, 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.

Advancing to step 9:
40 goes into 0 0 times with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 12522.15
Subtract 0 from 0 to 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.

Step 10:
0 divided by 40 is 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 12522.15
Deduct 0 from 0 and we're left 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.

Our division results in 12522.15 with a remaining 0.0.