31849151 divided by 791 
We want to divide 31849151 by 791.

Step 1:
When dividing 3 by 791, we get 0 with a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Take the next digit (1) from the dividend and append it to 3, then repeat: 31 / 791

On to step 2:
791 can be fit into 31 0 times, resulting in a remainder of 31.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 31 leaves us with 31.
Take the next digit (8) from the dividend and append it to 31, then repeat: 318 / 791

Step 3:
318 divided by 791 is 0 with a remainder of 318.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 318 to get 318.
Bring next digit (4) of the dividend behind the 318 and repeat the process: 3184 / 791

On to step 4:
791 can be fit into 3184 4 times, resulting in a remainder of 20.
Put 4 as the next digit of the answer. 
Result so far: 4.0
Subtracting 3164 from 3184 leaves us with 20.
Grab the next digit (9) from the dividend, add it to 20, then carry on: 209 / 791

Let's proceed to step 5:
The number 791 fits into 209 0 times, leaving a remainder of 209.
The next digit of our result is 0. 
Result so far: 40.0
Deduct 0 from 209 and we're left with 209.
Bring next digit (1) of the dividend behind the 209 and repeat the process: 2091 / 791

On to step 6:
The number 791 fits into 2091 2 times, leaving a remainder of 509.
The number 2 becomes the next digit in our result. 
Result so far: 402.0
Subtract 1582 from 2091 to get 509.
Append the next digit (5) from the dividend to 509 and continue with: 5095 / 791

Going ahead to step 7:
791 goes into 5095 6 times with a remainder of 349.
Put 6 as the next digit of the answer. 
Result so far: 4026.0
The remainder is 349 after subtracting 4746 from 5095.
Append the next digit (1) from the dividend to 349 and continue with: 3491 / 791

Moving on to step 8:
3491 divided by 791 is 4 with a remainder of 327.
Use 4 as the next digit of our solution. 
Result so far: 40264.0
If we subtract 3164 from 3491, we get 327.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3270, and continue the process.

Step 9:
791 can be fit into 3270 4 times, resulting in a remainder of 106.
Use 4 as the next digit of our solution. 
Result so far: 40264.4
The remainder is 106 after subtracting 3164 from 3270.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1060, and continue the process.

Step 10:
1060 divided by 791 is 1 with a remainder of 269.
Put 1 as the next digit of the answer. 
Result so far: 40264.41
Deduct 791 from 1060 and we're left with 269.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2690, and continue the process.

Let's proceed to step 11:
791 goes into 2690 3 times with a remainder of 317.
Put 3 as the next digit of the answer. 
Result so far: 40264.413
The remainder is 317 after subtracting 2373 from 2690.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3170, and continue the process.

Moving on to step 12:
3170 divided by 791 is 4 with a remainder of 6.
Write down 4 as next digit of the result. 
Result so far: 40264.4134
Deduct 3164 from 3170 and we're left with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Step 13:
791 goes into 60 0 times with a remainder of 60.
The number 0 becomes the next digit in our result. 
Result so far: 40264.4134
If we subtract 0 from 60, we get 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 600, and continue the process.

On to step 14:
When dividing 600 by 791, we get 0 with a remainder of 600.
The number 0 becomes the next digit in our result. 
Result so far: 40264.4134
Subtracting 0 from 600 leaves us with 600.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6000, and continue the process.

Our division results in 40264.4134 with a remaining 6e-05.