We're dividing 12786704 by 791 
Our goal is to divide 12786704 by 791.

Step 1:
When dividing 1 by 791, we get 0 with a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Fetch the next digit (2) from the dividend, attach it to 1 and continue: 12 / 791

Going ahead to step 2:
When dividing 12 by 791, we get 0 with a remainder of 12.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 12 and we're left with 12.
Take the next digit (7) from the dividend and append it to 12, then repeat: 127 / 791

Step 3:
When dividing 127 by 791, we get 0 with a remainder of 127.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 127 leaves us with 127.
Fetch the next digit (8) from the dividend, attach it to 127 and continue: 1278 / 791

Let's proceed to step 4:
791 goes into 1278 1 times with a remainder of 487.
Use 1 as the next digit of our solution. 
Result so far: 1.0
If we subtract 791 from 1278, we get 487.
Fetch the next digit (6) from the dividend, attach it to 487 and continue: 4876 / 791

Let's proceed to step 5:
791 can be fit into 4876 6 times, resulting in a remainder of 130.
The next digit of our result is 6. 
Result so far: 16.0
Deduct 4746 from 4876 and we're left with 130.
Fetch the next digit (7) from the dividend, attach it to 130 and continue: 1307 / 791

Let's proceed to step 6:
When dividing 1307 by 791, we get 1 with a remainder of 516.
Put 1 as the next digit of the answer. 
Result so far: 161.0
Deduct 791 from 1307 and we're left with 516.
Grab the next digit (0) from the dividend, add it to 516, then carry on: 5160 / 791

Step 7:
The number 791 fits into 5160 6 times, leaving a remainder of 414.
Record the quotient 6 as the next digit in the result. 
Result so far: 1616.0
Subtract 4746 from 5160 to get 414.
Bring next digit (4) of the dividend behind the 414 and repeat the process: 4144 / 791

Going ahead to step 8:
When dividing 4144 by 791, we get 5 with a remainder of 189.
Record the quotient 5 as the next digit in the result. 
Result so far: 16165.0
If we subtract 3955 from 4144, we get 189.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1890, and continue the process.

On to step 9:
If we divide 1890 by 791, we get 2 and a remainder of 308.
Use 2 as the next digit of our solution. 
Result so far: 16165.2
Subtract 1582 from 1890 to get 308.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3080, and continue the process.

Going ahead to step 10:
3080 divided by 791 is 3 with a remainder of 707.
The number 3 becomes the next digit in our result. 
Result so far: 16165.23
If we take 2373 away from 3080, we end up with 707.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7070, and continue the process.

Step 11:
The number 791 fits into 7070 8 times, leaving a remainder of 742.
Write down 8 as next digit of the result. 
Result so far: 16165.238
If we take 6328 away from 7070, we end up with 742.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7420, and continue the process.

Let's proceed to step 12:
7420 divided by 791 is 9 with a remainder of 301.
Use 9 as the next digit of our solution. 
Result so far: 16165.2389
Subtracting 7119 from 7420 leaves us with 301.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3010, and continue the process.

On to step 13:
The number 791 fits into 3010 3 times, leaving a remainder of 637.
Put 3 as the next digit of the answer. 
Result so far: 16165.23893
If we subtract 2373 from 3010, we get 637.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6370, and continue the process.

Advancing to step 14:
If we divide 6370 by 791, we get 8 and a remainder of 42.
Write down 8 as next digit of the result. 
Result so far: 16165.238938
If we subtract 6328 from 6370, we get 42.
Since there are no more digits in the dividend, we add a zero to the remainder making it 420, and continue the process.

On to step 15:
420 divided by 791 is 0 with a remainder of 420.
The number 0 becomes the next digit in our result. 
Result so far: 16165.238938
Subtracting 0 from 420 leaves us with 420.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4200, and continue the process.

On to step 16:
When dividing 4200 by 791, we get 5 with a remainder of 245.
The next digit of our result is 5. 
Result so far: 16165.23893805
If we take 3955 away from 4200, we end up with 245.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2450, and continue the process.

The quotient of the division is 16165.23893805, and the remainder is 2.45e-07.