We look at the division of 31717391 by 671 
We want to divide 31717391 by 671.

Moving on to step 1:
3 divided by 671 is 0 with a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Bring next digit (1) of the dividend behind the 3 and repeat the process: 31 / 671

Let's proceed to step 2:
671 can be fit into 31 0 times, resulting in a remainder of 31.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 31 to get 31.
Grab the next digit (7) from the dividend, add it to 31, then carry on: 317 / 671

On to step 3:
317 divided by 671 is 0 with a remainder of 317.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 317, we get 317.
Bring next digit (1) of the dividend behind the 317 and repeat the process: 3171 / 671

Moving on to step 4:
When dividing 3171 by 671, we get 4 with a remainder of 487.
The next digit of our result is 4. 
Result so far: 4.0
If we subtract 2684 from 3171, we get 487.
Include the next digit (7) from the dividend after 487, then repeat: 4877 / 671

Going ahead to step 5:
When dividing 4877 by 671, we get 7 with a remainder of 180.
Use 7 as the next digit of our solution. 
Result so far: 47.0
If we subtract 4697 from 4877, we get 180.
Fetch the next digit (3) from the dividend, attach it to 180 and continue: 1803 / 671

Step 6:
The number 671 fits into 1803 2 times, leaving a remainder of 461.
The number 2 becomes the next digit in our result. 
Result so far: 472.0
If we take 1342 away from 1803, we end up with 461.
Fetch the next digit (9) from the dividend, attach it to 461 and continue: 4619 / 671

Advancing to step 7:
When dividing 4619 by 671, we get 6 with a remainder of 593.
The next digit of our result is 6. 
Result so far: 4726.0
The remainder is 593 after subtracting 4026 from 4619.
Grab the next digit (1) from the dividend, add it to 593, then carry on: 5931 / 671

On to step 8:
The number 671 fits into 5931 8 times, leaving a remainder of 563.
Use 8 as the next digit of our solution. 
Result so far: 47268.0
The remainder is 563 after subtracting 5368 from 5931.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5630, and continue the process.

On to step 9:
671 goes into 5630 8 times with a remainder of 262.
The next digit of our result is 8. 
Result so far: 47268.8
Deduct 5368 from 5630 and we're left with 262.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2620, and continue the process.

Advancing to step 10:
2620 divided by 671 is 3 with a remainder of 607.
Use 3 as the next digit of our solution. 
Result so far: 47268.83
Subtracting 2013 from 2620 leaves us with 607.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6070, and continue the process.

On to step 11:
When dividing 6070 by 671, we get 9 with a remainder of 31.
The next digit of our result is 9. 
Result so far: 47268.839
If we take 6039 away from 6070, we end up with 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

On to step 12:
671 goes into 310 0 times with a remainder of 310.
Write down 0 as next digit of the result. 
Result so far: 47268.839
If we take 0 away from 310, we end up with 310.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3100, and continue the process.

Advancing to step 13:
671 goes into 3100 4 times with a remainder of 416.
The number 4 becomes the next digit in our result. 
Result so far: 47268.83904
If we subtract 2684 from 3100, we get 416.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4160, and continue the process.

On to step 14:
671 can be fit into 4160 6 times, resulting in a remainder of 134.
The number 6 becomes the next digit in our result. 
Result so far: 47268.839046
Subtracting 4026 from 4160 leaves us with 134.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1340, and continue the process.

Going ahead to step 15:
When dividing 1340 by 671, we get 1 with a remainder of 669.
Use 1 as the next digit of our solution. 
Result so far: 47268.8390461
If we take 671 away from 1340, we end up with 669.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6690, and continue the process.

On to step 16:
671 goes into 6690 9 times with a remainder of 651.
Put 9 as the next digit of the answer. 
Result so far: 47268.83904619
If we subtract 6039 from 6690, we get 651.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6510, and continue the process.

The final outcome is 47268.83904619, with a leftover of 6.51e-07.