5089554 divided by 40 
Let's see how many times 40 fits into 5089554.

On to step 1:
40 goes into 5 0 times with a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Grab the next digit (0) from the dividend, add it to 5, then carry on: 50 / 40

Step 2:
If we divide 50 by 40, we get 1 and a remainder of 10.
Use 1 as the next digit of our solution. 
Result so far: 1.0
If we take 40 away from 50, we end up with 10.
Include the next digit (8) from the dividend after 10, then repeat: 108 / 40

Advancing to step 3:
40 goes into 108 2 times with a remainder of 28.
Record the quotient 2 as the next digit in the result. 
Result so far: 12.0
Subtract 80 from 108 to get 28.
Bring next digit (9) of the dividend behind the 28 and repeat the process: 289 / 40

Advancing to step 4:
The number 40 fits into 289 7 times, leaving a remainder of 9.
Put 7 as the next digit of the answer. 
Result so far: 127.0
If we take 280 away from 289, we end up with 9.
Bring next digit (5) of the dividend behind the 9 and repeat the process: 95 / 40

On to step 5:
40 goes into 95 2 times with a remainder of 15.
The next digit of our result is 2. 
Result so far: 1272.0
The remainder is 15 after subtracting 80 from 95.
Include the next digit (5) from the dividend after 15, then repeat: 155 / 40

Step 6:
When dividing 155 by 40, we get 3 with a remainder of 35.
The next digit of our result is 3. 
Result so far: 12723.0
Deduct 120 from 155 and we're left with 35.
Include the next digit (4) from the dividend after 35, then repeat: 354 / 40

On to step 7:
40 can be fit into 354 8 times, resulting in a remainder of 34.
Use 8 as the next digit of our solution. 
Result so far: 127238.0
Deduct 320 from 354 and we're left with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Going ahead to step 8:
When dividing 340 by 40, we get 8 with a remainder of 20.
The next digit of our result is 8. 
Result so far: 127238.8
Deduct 320 from 340 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.

Let's proceed to step 9:
When dividing 200 by 40, we get 5 with a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 127238.85
Deduct 200 from 200 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.

On to step 10:
40 can be fit into 0 0 times, resulting in a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 127238.85
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.

Let's proceed to step 11:
When dividing 0 by 40, we get 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 127238.85
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.

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