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

Step 1:
40 goes into 7 0 times with a remainder of 7.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 7 leaves us with 7.
Grab the next digit (9) from the dividend, add it to 7, then carry on: 79 / 40

Step 2:
40 goes into 79 1 times with a remainder of 39.
The next digit of our result is 1. 
Result so far: 1.0
The remainder is 39 after subtracting 40 from 79.
Bring next digit (1) of the dividend behind the 39 and repeat the process: 391 / 40

Going ahead to step 3:
40 can be fit into 391 9 times, resulting in a remainder of 31.
Use 9 as the next digit of our solution. 
Result so far: 19.0
Subtract 360 from 391 to get 31.
Bring next digit (7) of the dividend behind the 31 and repeat the process: 317 / 40

On to step 4:
When dividing 317 by 40, we get 7 with a remainder of 37.
Use 7 as the next digit of our solution. 
Result so far: 197.0
The remainder is 37 after subtracting 280 from 317.
Bring next digit (5) of the dividend behind the 37 and repeat the process: 375 / 40

Going ahead to step 5:
40 goes into 375 9 times with a remainder of 15.
Put 9 as the next digit of the answer. 
Result so far: 1979.0
Subtracting 360 from 375 leaves us with 15.
Include the next digit (4) from the dividend after 15, then repeat: 154 / 40

Let's proceed to step 6:
40 can be fit into 154 3 times, resulting in a remainder of 34.
The next digit of our result is 3. 
Result so far: 19793.0
If we subtract 120 from 154, we get 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Let's proceed to step 7:
40 can be fit into 340 8 times, resulting in a remainder of 20.
Put 8 as the next digit of the answer. 
Result so far: 19793.8
Subtracting 320 from 340 leaves us 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.
Put 5 as the next digit of the answer. 
Result so far: 19793.85
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.

Advancing to step 9:
40 can be fit into 0 0 times, resulting in a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 19793.85
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.

On to step 10:
0 divided by 40 is 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 19793.85
Subtract 0 from 0 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.

The quotient of the division is 19793.85, and the remainder is 0.0.