787579 divided by 40 
We want to divide 787579 by 40.

Step 1:
The number 40 fits into 7 0 times, leaving a remainder of 7.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 7, we end up with 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.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Subtracting 40 from 78 leaves us with 38.
Include the next digit (7) from the dividend after 38, then repeat: 387 / 40

Let's proceed to step 3:
40 goes into 387 9 times with a remainder of 27.
The number 9 becomes the next digit in our result. 
Result so far: 19.0
If we subtract 360 from 387, we get 27.
Include the next digit (5) from the dividend after 27, then repeat: 275 / 40

Moving on to step 4:
The number 40 fits into 275 6 times, leaving a remainder of 35.
The next digit of our result is 6. 
Result so far: 196.0
If we subtract 240 from 275, we get 35.
Bring next digit (7) of the dividend behind the 35 and repeat the process: 357 / 40

Let's proceed to step 5:
40 can be fit into 357 8 times, resulting in a remainder of 37.
The number 8 becomes the next digit in our result. 
Result so far: 1968.0
If we take 320 away from 357, we end up with 37.
Append the next digit (9) from the dividend to 37 and continue with: 379 / 40

Advancing to step 6:
40 can be fit into 379 9 times, resulting in a remainder of 19.
Put 9 as the next digit of the answer. 
Result so far: 19689.0
Subtracting 360 from 379 leaves us 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.

Let's proceed to step 7:
If we divide 190 by 40, we get 4 and a remainder of 30.
The next digit of our result is 4. 
Result so far: 19689.4
If we subtract 160 from 190, we get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Going ahead to step 8:
40 goes into 300 7 times with a remainder of 20.
Put 7 as the next digit of the answer. 
Result so far: 19689.47
If we take 280 away from 300, 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 9:
40 can be fit into 200 5 times, resulting in a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 19689.475
If we take 200 away from 200, 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.

On to step 10:
The number 40 fits into 0 0 times, leaving a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 19689.475
Deduct 0 from 0 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 11:
If we divide 0 by 40, we get 0 and a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 19689.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.

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