40517682 divided by 793 
We want to divide 40517682 by 793.

On to step 1:
793 goes into 4 0 times with a remainder of 4.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Include the next digit (0) from the dividend after 4, then repeat: 40 / 793

Moving on to step 2:
When dividing 40 by 793, we get 0 with a remainder of 40.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 40 leaves us with 40.
Append the next digit (5) from the dividend to 40 and continue with: 405 / 793

Let's proceed to step 3:
405 divided by 793 is 0 with a remainder of 405.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 405, we get 405.
Include the next digit (1) from the dividend after 405, then repeat: 4051 / 793

Step 4:
793 can be fit into 4051 5 times, resulting in a remainder of 86.
Put 5 as the next digit of the answer. 
Result so far: 5.0
Deduct 3965 from 4051 and we're left with 86.
Fetch the next digit (7) from the dividend, attach it to 86 and continue: 867 / 793

Advancing to step 5:
793 goes into 867 1 times with a remainder of 74.
The number 1 becomes the next digit in our result. 
Result so far: 51.0
The remainder is 74 after subtracting 793 from 867.
Append the next digit (6) from the dividend to 74 and continue with: 746 / 793

Advancing to step 6:
793 goes into 746 0 times with a remainder of 746.
Write down 0 as next digit of the result. 
Result so far: 510.0
If we take 0 away from 746, we end up with 746.
Fetch the next digit (8) from the dividend, attach it to 746 and continue: 7468 / 793

Let's proceed to step 7:
If we divide 7468 by 793, we get 9 and a remainder of 331.
Record the quotient 9 as the next digit in the result. 
Result so far: 5109.0
If we subtract 7137 from 7468, we get 331.
Bring next digit (2) of the dividend behind the 331 and repeat the process: 3312 / 793

Advancing to step 8:
793 goes into 3312 4 times with a remainder of 140.
Write down 4 as next digit of the result. 
Result so far: 51094.0
Deduct 3172 from 3312 and we're left with 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1400, and continue the process.

Going ahead to step 9:
The number 793 fits into 1400 1 times, leaving a remainder of 607.
The next digit of our result is 1. 
Result so far: 51094.1
If we subtract 793 from 1400, we get 607.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6070, and continue the process.

On to step 10:
6070 divided by 793 is 7 with a remainder of 519.
The number 7 becomes the next digit in our result. 
Result so far: 51094.17
Subtract 5551 from 6070 to get 519.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5190, and continue the process.

Let's proceed to step 11:
793 goes into 5190 6 times with a remainder of 432.
The number 6 becomes the next digit in our result. 
Result so far: 51094.176
Subtracting 4758 from 5190 leaves us with 432.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4320, and continue the process.

Let's proceed to step 12:
4320 divided by 793 is 5 with a remainder of 355.
Write down 5 as next digit of the result. 
Result so far: 51094.1765
If we take 3965 away from 4320, we end up with 355.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3550, and continue the process.

Moving on to step 13:
793 goes into 3550 4 times with a remainder of 378.
Write down 4 as next digit of the result. 
Result so far: 51094.17654
If we subtract 3172 from 3550, we get 378.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3780, and continue the process.

Moving on to step 14:
3780 divided by 793 is 4 with a remainder of 608.
Record the quotient 4 as the next digit in the result. 
Result so far: 51094.176544
Deduct 3172 from 3780 and we're left with 608.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6080, and continue the process.

The quotient of the division is 51094.176544, and the remainder is 6.08e-05.