We divide 40428878 by 781
Our goal is to divide 40428878 by 781.

Advancing to step 1:
781 goes into 4 0 times with 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.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 781

Going ahead to step 2:
781 can be fit into 40 0 times, resulting in a remainder of 40.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 40 leaves us with 40.
Append the next digit (4) from the dividend to 40 and continue with: 404 / 781

Going ahead to step 3:
When dividing 404 by 781, we get 0 with a remainder of 404.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 404 after subtracting 0 from 404.
Take the next digit (2) from the dividend and append it to 404, then repeat: 4042 / 781

On to step 4:
781 can be fit into 4042 5 times, resulting in a remainder of 137.
The number 5 becomes the next digit in our result. 
Result so far: 5.0
If we subtract 3905 from 4042, we get 137.
Take the next digit (8) from the dividend and append it to 137, then repeat: 1378 / 781

Advancing to step 5:
781 goes into 1378 1 times with a remainder of 597.
The next digit of our result is 1. 
Result so far: 51.0
The remainder is 597 after subtracting 781 from 1378.
Take the next digit (8) from the dividend and append it to 597, then repeat: 5978 / 781

Advancing to step 6:
If we divide 5978 by 781, we get 7 and a remainder of 511.
Write down 7 as next digit of the result. 
Result so far: 517.0
Subtracting 5467 from 5978 leaves us with 511.
Include the next digit (7) from the dividend after 511, then repeat: 5117 / 781

Going ahead to step 7:
If we divide 5117 by 781, we get 6 and a remainder of 431.
Put 6 as the next digit of the answer. 
Result so far: 5176.0
Subtract 4686 from 5117 to get 431.
Include the next digit (8) from the dividend after 431, then repeat: 4318 / 781

Advancing to step 8:
The number 781 fits into 4318 5 times, leaving a remainder of 413.
The next digit of our result is 5. 
Result so far: 51765.0
Subtracting 3905 from 4318 leaves us with 413.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4130, and continue the process.

Advancing to step 9:
4130 divided by 781 is 5 with a remainder of 225.
The number 5 becomes the next digit in our result. 
Result so far: 51765.5
If we take 3905 away from 4130, we end up with 225.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2250, and continue the process.

Let's proceed to step 10:
The number 781 fits into 2250 2 times, leaving a remainder of 688.
The number 2 becomes the next digit in our result. 
Result so far: 51765.52
The remainder is 688 after subtracting 1562 from 2250.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6880, and continue the process.

Let's proceed to step 11:
The number 781 fits into 6880 8 times, leaving a remainder of 632.
The next digit of our result is 8. 
Result so far: 51765.528
If we take 6248 away from 6880, we end up with 632.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6320, and continue the process.

Advancing to step 12:
When dividing 6320 by 781, we get 8 with a remainder of 72.
The number 8 becomes the next digit in our result. 
Result so far: 51765.5288
Subtract 6248 from 6320 to get 72.
Since there are no more digits in the dividend, we add a zero to the remainder making it 720, and continue the process.

The final outcome is 51765.5288, with a leftover of 0.00072.