771588 divided by 40 
Our goal is to divide 771588 by 40.

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
If we subtract 0 from 7, we get 7.
Append the next digit (7) from the dividend to 7 and continue with: 77 / 40

Going ahead to step 2:
The number 40 fits into 77 1 times, leaving a remainder of 37.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtract 40 from 77 to get 37.
Grab the next digit (1) from the dividend, add it to 37, then carry on: 371 / 40

Let's proceed to step 3:
When dividing 371 by 40, we get 9 with a remainder of 11.
Write down 9 as next digit of the result. 
Result so far: 19.0
Subtracting 360 from 371 leaves us with 11.
Fetch the next digit (5) from the dividend, attach it to 11 and continue: 115 / 40

Moving on to step 4:
When dividing 115 by 40, we get 2 with a remainder of 35.
Write down 2 as next digit of the result. 
Result so far: 192.0
If we take 80 away from 115, we end up with 35.
Append the next digit (8) from the dividend to 35 and continue with: 358 / 40

Step 5:
If we divide 358 by 40, we get 8 and a remainder of 38.
The next digit of our result is 8. 
Result so far: 1928.0
Deduct 320 from 358 and we're left with 38.
Fetch the next digit (8) from the dividend, attach it to 38 and continue: 388 / 40

Let's proceed to step 6:
388 divided by 40 is 9 with a remainder of 28.
Put 9 as the next digit of the answer. 
Result so far: 19289.0
If we subtract 360 from 388, we get 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Step 7:
280 divided by 40 is 7 with a remainder of 0.
The number 7 becomes the next digit in our result. 
Result so far: 19289.7
If we take 280 away from 280, 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.

Going ahead to step 8:
40 can be fit into 0 0 times, resulting in a remainder of 0.
The next digit of our result is 0. 
Result so far: 19289.7
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 9:
The number 40 fits into 0 0 times, leaving a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 19289.7
If we subtract 0 from 0, 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.

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