We're dividing 31594917 by 371 
We're looking to find how many times 371 goes into 31594917.

Going ahead to step 1:
371 can be fit into 3 0 times, resulting in 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.
Fetch the next digit (1) from the dividend, attach it to 3 and continue: 31 / 371

Moving on to step 2:
31 divided by 371 is 0 with a remainder of 31.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 31 and we're left with 31.
Grab the next digit (5) from the dividend, add it to 31, then carry on: 315 / 371

On to step 3:
315 divided by 371 is 0 with a remainder of 315.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 315 to get 315.
Take the next digit (9) from the dividend and append it to 315, then repeat: 3159 / 371

Let's proceed to step 4:
When dividing 3159 by 371, we get 8 with a remainder of 191.
Put 8 as the next digit of the answer. 
Result so far: 8.0
Subtracting 2968 from 3159 leaves us with 191.
Take the next digit (4) from the dividend and append it to 191, then repeat: 1914 / 371

Let's proceed to step 5:
If we divide 1914 by 371, we get 5 and a remainder of 59.
Use 5 as the next digit of our solution. 
Result so far: 85.0
Subtract 1855 from 1914 to get 59.
Bring next digit (9) of the dividend behind the 59 and repeat the process: 599 / 371

Let's proceed to step 6:
371 goes into 599 1 times with a remainder of 228.
Record the quotient 1 as the next digit in the result. 
Result so far: 851.0
Subtract 371 from 599 to get 228.
Include the next digit (1) from the dividend after 228, then repeat: 2281 / 371

Step 7:
The number 371 fits into 2281 6 times, leaving a remainder of 55.
Record the quotient 6 as the next digit in the result. 
Result so far: 8516.0
If we subtract 2226 from 2281, we get 55.
Take the next digit (7) from the dividend and append it to 55, then repeat: 557 / 371

Going ahead to step 8:
When dividing 557 by 371, we get 1 with a remainder of 186.
Write down 1 as next digit of the result. 
Result so far: 85161.0
The remainder is 186 after subtracting 371 from 557.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1860, and continue the process.

Step 9:
1860 divided by 371 is 5 with a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 85161.5
Subtract 1855 from 1860 to get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Advancing to step 10:
371 goes into 50 0 times with a remainder of 50.
Record the quotient 0 as the next digit in the result. 
Result so far: 85161.5
The remainder is 50 after subtracting 0 from 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 500, and continue the process.

Moving on to step 11:
500 divided by 371 is 1 with a remainder of 129.
Put 1 as the next digit of the answer. 
Result so far: 85161.501
Deduct 371 from 500 and we're left with 129.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1290, and continue the process.

Step 12:
If we divide 1290 by 371, we get 3 and a remainder of 177.
Use 3 as the next digit of our solution. 
Result so far: 85161.5013
Deduct 1113 from 1290 and we're left with 177.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1770, and continue the process.

Let's proceed to step 13:
If we divide 1770 by 371, we get 4 and a remainder of 286.
Record the quotient 4 as the next digit in the result. 
Result so far: 85161.50134
If we take 1484 away from 1770, we end up with 286.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2860, and continue the process.

On to step 14:
371 can be fit into 2860 7 times, resulting in a remainder of 263.
Record the quotient 7 as the next digit in the result. 
Result so far: 85161.501347
Deduct 2597 from 2860 and we're left with 263.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2630, and continue the process.

Let's proceed to step 15:
371 can be fit into 2630 7 times, resulting in a remainder of 33.
Use 7 as the next digit of our solution. 
Result so far: 85161.5013477
Subtracting 2597 from 2630 leaves us with 33.
Since there are no more digits in the dividend, we add a zero to the remainder making it 330, and continue the process.

The final result is 85161.5013477 with a remainder of 3.3e-07.