We're dividing 40142591 by 780 
Let's see how many times 780 fits into 40142591.

Going ahead to step 1:
4 divided by 780 is 0 with a remainder of 4.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 4 after subtracting 0 from 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 780

On to step 2:
The number 780 fits into 40 0 times, leaving a remainder of 40.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 40 after subtracting 0 from 40.
Grab the next digit (1) from the dividend, add it to 40, then carry on: 401 / 780

Step 3:
780 can be fit into 401 0 times, resulting in a remainder of 401.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 401 leaves us with 401.
Bring next digit (4) of the dividend behind the 401 and repeat the process: 4014 / 780

Moving on to step 4:
When dividing 4014 by 780, we get 5 with a remainder of 114.
Write down 5 as next digit of the result. 
Result so far: 5.0
If we subtract 3900 from 4014, we get 114.
Grab the next digit (2) from the dividend, add it to 114, then carry on: 1142 / 780

Going ahead to step 5:
The number 780 fits into 1142 1 times, leaving a remainder of 362.
Use 1 as the next digit of our solution. 
Result so far: 51.0
The remainder is 362 after subtracting 780 from 1142.
Take the next digit (5) from the dividend and append it to 362, then repeat: 3625 / 780

On to step 6:
If we divide 3625 by 780, we get 4 and a remainder of 505.
The number 4 becomes the next digit in our result. 
Result so far: 514.0
Subtracting 3120 from 3625 leaves us with 505.
Append the next digit (9) from the dividend to 505 and continue with: 5059 / 780

On to step 7:
If we divide 5059 by 780, we get 6 and a remainder of 379.
The number 6 becomes the next digit in our result. 
Result so far: 5146.0
The remainder is 379 after subtracting 4680 from 5059.
Grab the next digit (1) from the dividend, add it to 379, then carry on: 3791 / 780

Advancing to step 8:
If we divide 3791 by 780, we get 4 and a remainder of 671.
Record the quotient 4 as the next digit in the result. 
Result so far: 51464.0
If we subtract 3120 from 3791, we get 671.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6710, and continue the process.

On to step 9:
780 goes into 6710 8 times with a remainder of 470.
Use 8 as the next digit of our solution. 
Result so far: 51464.8
The remainder is 470 after subtracting 6240 from 6710.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4700, and continue the process.

On to step 10:
4700 divided by 780 is 6 with a remainder of 20.
Write down 6 as next digit of the result. 
Result so far: 51464.86
If we take 4680 away from 4700, 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.

Step 11:
The number 780 fits into 200 0 times, leaving a remainder of 200.
The number 0 becomes the next digit in our result. 
Result so far: 51464.86
If we subtract 0 from 200, we get 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2000, and continue the process.

Moving on to step 12:
780 can be fit into 2000 2 times, resulting in a remainder of 440.
Write down 2 as next digit of the result. 
Result so far: 51464.8602
If we subtract 1560 from 2000, we get 440.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4400, and continue the process.

On to step 13:
If we divide 4400 by 780, we get 5 and a remainder of 500.
Put 5 as the next digit of the answer. 
Result so far: 51464.86025
Subtract 3900 from 4400 to get 500.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5000, and continue the process.

Going ahead to step 14:
5000 divided by 780 is 6 with a remainder of 320.
Write down 6 as next digit of the result. 
Result so far: 51464.860256
Deduct 4680 from 5000 and we're left with 320.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3200, and continue the process.

Going ahead to step 15:
3200 divided by 780 is 4 with a remainder of 80.
Write down 4 as next digit of the result. 
Result so far: 51464.8602564
Subtracting 3120 from 3200 leaves us with 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 800, and continue the process.

Let's proceed to step 16:
If we divide 800 by 780, we get 1 and a remainder of 20.
The next digit of our result is 1. 
Result so far: 51464.86025641
Subtract 780 from 800 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.

The final outcome is 51464.86025641, with a leftover of 2e-08.