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

Going ahead to step 1:
40 goes into 7 0 times with a remainder of 7.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 7 to get 7.
Take the next digit (7) from the dividend and append it to 7, then repeat: 77 / 40

Let's proceed to step 2:
40 goes into 77 1 times with a remainder of 37.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtracting 40 from 77 leaves us with 37.
Grab the next digit (1) from the dividend, add it to 37, then carry on: 371 / 40

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
Subtract 360 from 371 to get 11.
Grab the next digit (7) from the dividend, add it to 11, then carry on: 117 / 40

On to step 4:
40 can be fit into 117 2 times, resulting in a remainder of 37.
The next digit of our result is 2. 
Result so far: 192.0
Deduct 80 from 117 and we're left with 37.
Append the next digit (4) from the dividend to 37 and continue with: 374 / 40

Let's proceed to step 5:
374 divided by 40 is 9 with a remainder of 14.
Put 9 as the next digit of the answer. 
Result so far: 1929.0
If we subtract 360 from 374, we get 14.
Grab the next digit (2) from the dividend, add it to 14, then carry on: 142 / 40

Advancing to step 6:
40 can be fit into 142 3 times, resulting in a remainder of 22.
The next digit of our result is 3. 
Result so far: 19293.0
Subtract 120 from 142 to get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Let's proceed to step 7:
40 goes into 220 5 times with a remainder of 20.
Write down 5 as next digit of the result. 
Result so far: 19293.5
Deduct 200 from 220 and we're left 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.

Going ahead to step 8:
The number 40 fits into 200 5 times, leaving a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 19293.55
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.

Our division results in 19293.55 with a remaining 0.0.