We look at the division of 31081567 by 791 
Let's see how many times 791 fits into 31081567.

Let's proceed to 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
Deduct 0 from 3 and we're left with 3.
Fetch the next digit (1) from the dividend, attach it to 3 and continue: 31 / 791

Moving on to step 2:
31 divided by 791 is 0 with a remainder of 31.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 31 leaves us with 31.
Bring next digit (0) of the dividend behind the 31 and repeat the process: 310 / 791

On to step 3:
When dividing 310 by 791, we get 0 with a remainder of 310.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 310, we get 310.
Take the next digit (8) from the dividend and append it to 310, then repeat: 3108 / 791

Advancing to step 4:
791 goes into 3108 3 times with a remainder of 735.
The next digit of our result is 3. 
Result so far: 3.0
Subtracting 2373 from 3108 leaves us with 735.
Append the next digit (1) from the dividend to 735 and continue with: 7351 / 791

Going ahead to step 5:
791 goes into 7351 9 times with a remainder of 232.
The number 9 becomes the next digit in our result. 
Result so far: 39.0
Subtracting 7119 from 7351 leaves us with 232.
Fetch the next digit (5) from the dividend, attach it to 232 and continue: 2325 / 791

Step 6:
2325 divided by 791 is 2 with a remainder of 743.
Put 2 as the next digit of the answer. 
Result so far: 392.0
If we subtract 1582 from 2325, we get 743.
Bring next digit (6) of the dividend behind the 743 and repeat the process: 7436 / 791

On to step 7:
791 goes into 7436 9 times with a remainder of 317.
The number 9 becomes the next digit in our result. 
Result so far: 3929.0
If we take 7119 away from 7436, we end up with 317.
Fetch the next digit (7) from the dividend, attach it to 317 and continue: 3177 / 791

Going ahead to step 8:
When dividing 3177 by 791, we get 4 with a remainder of 13.
Use 4 as the next digit of our solution. 
Result so far: 39294.0
Deduct 3164 from 3177 and we're left with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Advancing to step 9:
If we divide 130 by 791, we get 0 and a remainder of 130.
Use 0 as the next digit of our solution. 
Result so far: 39294.0
Subtract 0 from 130 to get 130.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1300, and continue the process.

Advancing to step 10:
The number 791 fits into 1300 1 times, leaving a remainder of 509.
Put 1 as the next digit of the answer. 
Result so far: 39294.01
If we subtract 791 from 1300, we get 509.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5090, and continue the process.

Step 11:
5090 divided by 791 is 6 with a remainder of 344.
The next digit of our result is 6. 
Result so far: 39294.016
If we subtract 4746 from 5090, we get 344.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3440, and continue the process.

Let's proceed to step 12:
When dividing 3440 by 791, we get 4 with a remainder of 276.
Put 4 as the next digit of the answer. 
Result so far: 39294.0164
The remainder is 276 after subtracting 3164 from 3440.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2760, and continue the process.

Let's proceed to step 13:
If we divide 2760 by 791, we get 3 and a remainder of 387.
Write down 3 as next digit of the result. 
Result so far: 39294.01643
Subtracting 2373 from 2760 leaves us with 387.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3870, and continue the process.

Step 14:
791 can be fit into 3870 4 times, resulting in a remainder of 706.
Put 4 as the next digit of the answer. 
Result so far: 39294.016434
If we subtract 3164 from 3870, we get 706.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7060, and continue the process.

Moving on to step 15:
When dividing 7060 by 791, we get 8 with a remainder of 732.
Use 8 as the next digit of our solution. 
Result so far: 39294.0164348
If we take 6328 away from 7060, we end up with 732.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7320, and continue the process.

Step 16:
7320 divided by 791 is 9 with a remainder of 201.
Write down 9 as next digit of the result. 
Result so far: 39294.01643489
If we take 7119 away from 7320, we end up with 201.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2010, and continue the process.

The final outcome is 39294.01643489, with a leftover of 2.01e-07.