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

Moving on to step 1:
40 can be fit into 7 0 times, resulting in a remainder of 7.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 7 to get 7.
Bring next digit (8) of the dividend behind the 7 and repeat the process: 78 / 40

Advancing to step 2:
When dividing 78 by 40, we get 1 with a remainder of 38.
Use 1 as the next digit of our solution. 
Result so far: 1.0
If we subtract 40 from 78, we get 38.
Fetch the next digit (0) from the dividend, attach it to 38 and continue: 380 / 40

Going ahead to step 3:
When dividing 380 by 40, we get 9 with a remainder of 20.
Record the quotient 9 as the next digit in the result. 
Result so far: 19.0
Subtract 360 from 380 to get 20.
Append the next digit (5) from the dividend to 20 and continue with: 205 / 40

Advancing to step 4:
The number 40 fits into 205 5 times, leaving a remainder of 5.
The next digit of our result is 5. 
Result so far: 195.0
Subtract 200 from 205 to get 5.
Fetch the next digit (3) from the dividend, attach it to 5 and continue: 53 / 40

On to step 5:
The number 40 fits into 53 1 times, leaving a remainder of 13.
The number 1 becomes the next digit in our result. 
Result so far: 1951.0
Subtracting 40 from 53 leaves us with 13.
Append the next digit (9) from the dividend to 13 and continue with: 139 / 40

Step 6:
40 can be fit into 139 3 times, resulting in a remainder of 19.
Write down 3 as next digit of the result. 
Result so far: 19513.0
Deduct 120 from 139 and we're left with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Advancing to step 7:
When dividing 190 by 40, we get 4 with a remainder of 30.
The next digit of our result is 4. 
Result so far: 19513.4
Subtracting 160 from 190 leaves us with 30.
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:
The number 40 fits into 300 7 times, leaving a remainder of 20.
The next digit of our result is 7. 
Result so far: 19513.47
If we subtract 280 from 300, we 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.

Advancing to step 9:
If we divide 200 by 40, we get 5 and a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 19513.475
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 10:
40 goes into 0 0 times with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 19513.475
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:
If we divide 0 by 40, we get 0 and a remainder of 0.
The next digit of our result is 0. 
Result so far: 19513.475
If we take 0 away from 0, we end up 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 19513.475, with a leftover of 0.0.