We divide 791616 by 40
We're looking to find how many times 40 goes into 791616.

Step 1:
The number 40 fits into 7 0 times, leaving a remainder of 7.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 7 to get 7.
Grab the next digit (9) from the dividend, add it to 7, then carry on: 79 / 40

Let's proceed to step 2:
40 can be fit into 79 1 times, resulting in a remainder of 39.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Subtracting 40 from 79 leaves us with 39.
Take the next digit (1) from the dividend and append it to 39, then repeat: 391 / 40

Let's proceed to step 3:
When dividing 391 by 40, we get 9 with a remainder of 31.
Use 9 as the next digit of our solution. 
Result so far: 19.0
Deduct 360 from 391 and we're left with 31.
Bring next digit (6) of the dividend behind the 31 and repeat the process: 316 / 40

Let's proceed to step 4:
When dividing 316 by 40, we get 7 with a remainder of 36.
The next digit of our result is 7. 
Result so far: 197.0
Deduct 280 from 316 and we're left with 36.
Take the next digit (1) from the dividend and append it to 36, then repeat: 361 / 40

On to step 5:
When dividing 361 by 40, we get 9 with a remainder of 1.
Record the quotient 9 as the next digit in the result. 
Result so far: 1979.0
Subtract 360 from 361 to get 1.
Take the next digit (6) from the dividend and append it to 1, then repeat: 16 / 40

Advancing to step 6:
The number 40 fits into 16 0 times, leaving a remainder of 16.
Write down 0 as next digit of the result. 
Result so far: 19790.0
Subtract 0 from 16 to get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

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

Advancing to step 8:
40 can be fit into 0 0 times, resulting in a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 19790.4
The remainder is 0 after subtracting 0 from 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Step 9:
0 divided by 40 is 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 19790.4
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.

The final result is 19790.4 with a remainder of 0.0.