We're dividing 31890296 by 791 
Let's see how many times 791 fits into 31890296.

Moving on to step 1:
791 can be fit into 3 0 times, resulting in a remainder of 3.
The number 0 becomes the next digit in our 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 goes into 31 0 times with 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.
Include the next digit (8) from the dividend after 31, then repeat: 318 / 791

Let's proceed to step 3:
When dividing 318 by 791, we get 0 with a remainder of 318.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 318 to get 318.
Fetch the next digit (9) from the dividend, attach it to 318 and continue: 3189 / 791

Advancing to step 4:
If we divide 3189 by 791, we get 4 and a remainder of 25.
The number 4 becomes the next digit in our result. 
Result so far: 4.0
Subtract 3164 from 3189 to get 25.
Take the next digit (0) from the dividend and append it to 25, then repeat: 250 / 791

Moving on to step 5:
250 divided by 791 is 0 with a remainder of 250.
The number 0 becomes the next digit in our result. 
Result so far: 40.0
The remainder is 250 after subtracting 0 from 250.
Take the next digit (2) from the dividend and append it to 250, then repeat: 2502 / 791

Let's proceed to step 6:
When dividing 2502 by 791, we get 3 with a remainder of 129.
Put 3 as the next digit of the answer. 
Result so far: 403.0
If we subtract 2373 from 2502, we get 129.
Include the next digit (9) from the dividend after 129, then repeat: 1299 / 791

Moving on to step 7:
The number 791 fits into 1299 1 times, leaving a remainder of 508.
Record the quotient 1 as the next digit in the result. 
Result so far: 4031.0
Subtracting 791 from 1299 leaves us with 508.
Fetch the next digit (6) from the dividend, attach it to 508 and continue: 5086 / 791

Let's proceed to step 8:
791 can be fit into 5086 6 times, resulting in a remainder of 340.
Put 6 as the next digit of the answer. 
Result so far: 40316.0
Subtract 4746 from 5086 to get 340.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3400, and continue the process.

Let's proceed to step 9:
If we divide 3400 by 791, we get 4 and a remainder of 236.
The next digit of our result is 4. 
Result so far: 40316.4
The remainder is 236 after subtracting 3164 from 3400.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2360, and continue the process.

Step 10:
791 goes into 2360 2 times with a remainder of 778.
The next digit of our result is 2. 
Result so far: 40316.42
Subtract 1582 from 2360 to get 778.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7780, and continue the process.

Moving on to step 11:
791 can be fit into 7780 9 times, resulting in a remainder of 661.
Record the quotient 9 as the next digit in the result. 
Result so far: 40316.429
If we subtract 7119 from 7780, we get 661.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6610, and continue the process.

Step 12:
The number 791 fits into 6610 8 times, leaving a remainder of 282.
The next digit of our result is 8. 
Result so far: 40316.4298
The remainder is 282 after subtracting 6328 from 6610.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2820, and continue the process.

Going ahead to step 13:
791 goes into 2820 3 times with a remainder of 447.
Use 3 as the next digit of our solution. 
Result so far: 40316.42983
Subtract 2373 from 2820 to get 447.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4470, and continue the process.

Step 14:
When dividing 4470 by 791, we get 5 with a remainder of 515.
Write down 5 as next digit of the result. 
Result so far: 40316.429835
Subtract 3955 from 4470 to get 515.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5150, and continue the process.

Advancing to step 15:
791 can be fit into 5150 6 times, resulting in a remainder of 404.
Record the quotient 6 as the next digit in the result. 
Result so far: 40316.4298356
The remainder is 404 after subtracting 4746 from 5150.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4040, and continue the process.

On to step 16:
791 goes into 4040 5 times with a remainder of 85.
The number 5 becomes the next digit in our result. 
Result so far: 40316.42983565
If we subtract 3955 from 4040, we get 85.
Since there are no more digits in the dividend, we add a zero to the remainder making it 850, and continue the process.

The final outcome is 40316.42983565, with a leftover of 8.5e-08.