10038822 divided by 791 
Our goal is to divide 10038822 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
If we take 0 away from 1, we end up with 1.
Include the next digit (0) from the dividend after 1, then repeat: 10 / 791

Going ahead to step 2:
791 can be fit into 10 0 times, resulting in a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 10, we end up with 10.
Include the next digit (0) from the dividend after 10, then repeat: 100 / 791

Advancing to step 3:
If we divide 100 by 791, we get 0 and a remainder of 100.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 100, we get 100.
Include the next digit (3) from the dividend after 100, then repeat: 1003 / 791

On to step 4:
791 goes into 1003 1 times with a remainder of 212.
Write down 1 as next digit of the result. 
Result so far: 1.0
If we subtract 791 from 1003, we get 212.
Include the next digit (8) from the dividend after 212, then repeat: 2128 / 791

Going ahead to step 5:
If we divide 2128 by 791, we get 2 and a remainder of 546.
Use 2 as the next digit of our solution. 
Result so far: 12.0
If we subtract 1582 from 2128, we get 546.
Take the next digit (8) from the dividend and append it to 546, then repeat: 5468 / 791

Going ahead to step 6:
When dividing 5468 by 791, we get 6 with a remainder of 722.
The next digit of our result is 6. 
Result so far: 126.0
Subtract 4746 from 5468 to get 722.
Include the next digit (2) from the dividend after 722, then repeat: 7222 / 791

Advancing to step 7:
When dividing 7222 by 791, we get 9 with a remainder of 103.
The next digit of our result is 9. 
Result so far: 1269.0
Subtract 7119 from 7222 to get 103.
Take the next digit (2) from the dividend and append it to 103, then repeat: 1032 / 791

Going ahead to step 8:
The number 791 fits into 1032 1 times, leaving a remainder of 241.
Write down 1 as next digit of the result. 
Result so far: 12691.0
If we subtract 791 from 1032, we get 241.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2410, and continue the process.

Moving on to step 9:
2410 divided by 791 is 3 with a remainder of 37.
Record the quotient 3 as the next digit in the result. 
Result so far: 12691.3
If we subtract 2373 from 2410, we get 37.
Since there are no more digits in the dividend, we add a zero to the remainder making it 370, and continue the process.

Going ahead to step 10:
791 goes into 370 0 times with a remainder of 370.
Write down 0 as next digit of the result. 
Result so far: 12691.3
The remainder is 370 after subtracting 0 from 370.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3700, and continue the process.

Going ahead to step 11:
If we divide 3700 by 791, we get 4 and a remainder of 536.
Use 4 as the next digit of our solution. 
Result so far: 12691.304
Deduct 3164 from 3700 and we're left with 536.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5360, and continue the process.

Let's proceed to step 12:
791 can be fit into 5360 6 times, resulting in a remainder of 614.
The next digit of our result is 6. 
Result so far: 12691.3046
Subtract 4746 from 5360 to get 614.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6140, and continue the process.

Advancing to step 13:
791 goes into 6140 7 times with a remainder of 603.
Record the quotient 7 as the next digit in the result. 
Result so far: 12691.30467
Subtracting 5537 from 6140 leaves us with 603.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6030, and continue the process.

Advancing to step 14:
The number 791 fits into 6030 7 times, leaving a remainder of 493.
The number 7 becomes the next digit in our result. 
Result so far: 12691.304677
Subtracting 5537 from 6030 leaves us with 493.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4930, and continue the process.

The quotient of the division is 12691.304677, and the remainder is 4.93e-05.