We're dividing 779817 by 40 
We're looking to find how many times 40 goes into 779817.

Let's proceed to step 1:
40 can be fit into 7 0 times, resulting in a remainder of 7.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 7 leaves us with 7.
Take the next digit (7) from the dividend and append it to 7, then repeat: 77 / 40

Step 2:
If we divide 77 by 40, we get 1 and a remainder of 37.
Write down 1 as next digit of the result. 
Result so far: 1.0
The remainder is 37 after subtracting 40 from 77.
Append the next digit (9) from the dividend to 37 and continue with: 379 / 40

Advancing to step 3:
If we divide 379 by 40, we get 9 and a remainder of 19.
Write down 9 as next digit of the result. 
Result so far: 19.0
If we take 360 away from 379, we end up with 19.
Append the next digit (8) from the dividend to 19 and continue with: 198 / 40

Step 4:
198 divided by 40 is 4 with a remainder of 38.
Put 4 as the next digit of the answer. 
Result so far: 194.0
Subtracting 160 from 198 leaves us with 38.
Fetch the next digit (1) from the dividend, attach it to 38 and continue: 381 / 40

On to step 5:
381 divided by 40 is 9 with a remainder of 21.
The next digit of our result is 9. 
Result so far: 1949.0
The remainder is 21 after subtracting 360 from 381.
Fetch the next digit (7) from the dividend, attach it to 21 and continue: 217 / 40

On to step 6:
40 goes into 217 5 times with a remainder of 17.
Record the quotient 5 as the next digit in the result. 
Result so far: 19495.0
Subtracting 200 from 217 leaves us with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Let's proceed to step 7:
The number 40 fits into 170 4 times, leaving a remainder of 10.
The next digit of our result is 4. 
Result so far: 19495.4
Subtracting 160 from 170 leaves us with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Step 8:
40 goes into 100 2 times with a remainder of 20.
The number 2 becomes the next digit in our result. 
Result so far: 19495.42
The remainder is 20 after subtracting 80 from 100.
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:
If we divide 200 by 40, we get 5 and a remainder of 0.
The next digit of our result is 5. 
Result so far: 19495.425
Subtract 200 from 200 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.

Advancing to step 10:
If we divide 0 by 40, we get 0 and a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 19495.425
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.

Let's proceed to step 11:
0 divided by 40 is 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 19495.425
The remainder is 0 after subtracting 0 from 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

In conclusion, the division gives 19495.425 with a balance of 0.0.