Let's divide 770159 by 40
Our goal is to divide 770159 by 40.

Let's proceed to step 1:
7 divided by 40 is 0 with a remainder of 7.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 7 and we're left with 7.
Grab the next digit (7) from the dividend, add it to 7, then carry on: 77 / 40

On to step 2:
77 divided by 40 is 1 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.
Take the next digit (0) from the dividend and append it to 37, then repeat: 370 / 40

Let's proceed to step 3:
When dividing 370 by 40, we get 9 with a remainder of 10.
Write down 9 as next digit of the result. 
Result so far: 19.0
Deduct 360 from 370 and we're left with 10.
Bring next digit (1) of the dividend behind the 10 and repeat the process: 101 / 40

Advancing to step 4:
When dividing 101 by 40, we get 2 with a remainder of 21.
Put 2 as the next digit of the answer. 
Result so far: 192.0
Deduct 80 from 101 and we're left with 21.
Append the next digit (5) from the dividend to 21 and continue with: 215 / 40

On to step 5:
40 can be fit into 215 5 times, resulting in a remainder of 15.
Put 5 as the next digit of the answer. 
Result so far: 1925.0
Deduct 200 from 215 and we're left with 15.
Take the next digit (9) from the dividend and append it to 15, then repeat: 159 / 40

On to step 6:
The number 40 fits into 159 3 times, leaving a remainder of 39.
Write down 3 as next digit of the result. 
Result so far: 19253.0
If we subtract 120 from 159, we get 39.
Since there are no more digits in the dividend, we add a zero to the remainder making it 390, and continue the process.

Moving on to step 7:
40 can be fit into 390 9 times, resulting in a remainder of 30.
Use 9 as the next digit of our solution. 
Result so far: 19253.9
Deduct 360 from 390 and we're left 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.

Step 8:
The number 40 fits into 300 7 times, leaving a remainder of 20.
Put 7 as the next digit of the answer. 
Result so far: 19253.97
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.

Going ahead to 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: 19253.975
The remainder is 0 after subtracting 200 from 200.
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 10:
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: 19253.975
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.

Moving on to step 11:
The number 40 fits into 0 0 times, leaving a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 19253.975
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.

The final outcome is 19253.975, with a leftover of 0.0.