We divide 40997579 by 793
We want to divide 40997579 by 793.

On to step 1:
When dividing 4 by 793, we get 0 with a remainder of 4.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 793

Moving on to step 2:
40 divided by 793 is 0 with a remainder of 40.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 40, we end up with 40.
Include the next digit (9) from the dividend after 40, then repeat: 409 / 793

On to step 3:
When dividing 409 by 793, we get 0 with a remainder of 409.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 409 to get 409.
Append the next digit (9) from the dividend to 409 and continue with: 4099 / 793

On to step 4:
4099 divided by 793 is 5 with a remainder of 134.
The next digit of our result is 5. 
Result so far: 5.0
If we take 3965 away from 4099, we end up with 134.
Take the next digit (7) from the dividend and append it to 134, then repeat: 1347 / 793

Advancing to step 5:
1347 divided by 793 is 1 with a remainder of 554.
The number 1 becomes the next digit in our result. 
Result so far: 51.0
Subtracting 793 from 1347 leaves us with 554.
Take the next digit (5) from the dividend and append it to 554, then repeat: 5545 / 793

On to step 6:
If we divide 5545 by 793, we get 6 and a remainder of 787.
Use 6 as the next digit of our solution. 
Result so far: 516.0
Subtract 4758 from 5545 to get 787.
Append the next digit (7) from the dividend to 787 and continue with: 7877 / 793

Step 7:
If we divide 7877 by 793, we get 9 and a remainder of 740.
Use 9 as the next digit of our solution. 
Result so far: 5169.0
Subtract 7137 from 7877 to get 740.
Fetch the next digit (9) from the dividend, attach it to 740 and continue: 7409 / 793

Advancing to step 8:
When dividing 7409 by 793, we get 9 with a remainder of 272.
The number 9 becomes the next digit in our result. 
Result so far: 51699.0
Deduct 7137 from 7409 and we're left with 272.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2720, and continue the process.

Step 9:
When dividing 2720 by 793, we get 3 with a remainder of 341.
Use 3 as the next digit of our solution. 
Result so far: 51699.3
The remainder is 341 after subtracting 2379 from 2720.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3410, and continue the process.

On to step 10:
793 can be fit into 3410 4 times, resulting in a remainder of 238.
The number 4 becomes the next digit in our result. 
Result so far: 51699.34
Subtract 3172 from 3410 to get 238.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2380, and continue the process.

Let's proceed to step 11:
2380 divided by 793 is 3 with a remainder of 1.
Write down 3 as next digit of the result. 
Result so far: 51699.343
If we take 2379 away from 2380, we end up with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Step 12:
793 goes into 10 0 times with a remainder of 10.
The next digit of our result is 0. 
Result so far: 51699.343
Subtract 0 from 10 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Moving on to step 13:
793 can be fit into 100 0 times, resulting in a remainder of 100.
Use 0 as the next digit of our solution. 
Result so far: 51699.343
If we subtract 0 from 100, we get 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1000, and continue the process.

The final outcome is 51699.343, with a leftover of 0.0001.