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

Going ahead to step 1:
The number 40 fits into 5 0 times, leaving a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Fetch the next digit (7) from the dividend, attach it to 5 and continue: 57 / 40

Let's proceed to step 2:
When dividing 57 by 40, we get 1 with a remainder of 17.
Write down 1 as next digit of the result. 
Result so far: 1.0
Subtracting 40 from 57 leaves us with 17.
Bring next digit (8) of the dividend behind the 17 and repeat the process: 178 / 40

Advancing to step 3:
If we divide 178 by 40, we get 4 and a remainder of 18.
Use 4 as the next digit of our solution. 
Result so far: 14.0
If we subtract 160 from 178, we get 18.
Bring next digit (8) of the dividend behind the 18 and repeat the process: 188 / 40

Let's proceed to step 4:
40 goes into 188 4 times with a remainder of 28.
The next digit of our result is 4. 
Result so far: 144.0
Deduct 160 from 188 and we're left with 28.
Bring next digit (6) of the dividend behind the 28 and repeat the process: 286 / 40

On to step 5:
40 can be fit into 286 7 times, resulting in a remainder of 6.
Write down 7 as next digit of the result. 
Result so far: 1447.0
Subtract 280 from 286 to get 6.
Take the next digit (3) from the dividend and append it to 6, then repeat: 63 / 40

Moving on to step 6:
63 divided by 40 is 1 with a remainder of 23.
Record the quotient 1 as the next digit in the result. 
Result so far: 14471.0
Subtract 40 from 63 to get 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Going ahead to step 7:
40 can be fit into 230 5 times, resulting in a remainder of 30.
Record the quotient 5 as the next digit in the result. 
Result so far: 14471.5
The remainder is 30 after subtracting 200 from 230.
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 8:
40 can be fit into 300 7 times, resulting in a remainder of 20.
The number 7 becomes the next digit in our result. 
Result so far: 14471.57
Subtract 280 from 300 to get 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 9:
If we divide 200 by 40, we get 5 and a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 14471.575
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.

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

Let's proceed to step 11:
40 can be fit into 0 0 times, resulting in a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 14471.575
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 14471.575, with a leftover of 0.0.