We divide 666874 by 31
We want to figure out the number of times 666874 can be divided by 31.

Going ahead to step 1:
31 goes into 6 0 times with a remainder of 6.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 6 and we're left with 6.
Append the next digit (6) from the dividend to 6 and continue with: 66 / 31

Step 2:
The number 31 fits into 66 2 times, leaving a remainder of 4.
Put 2 as the next digit of the answer. 
Result so far: 2.0
Subtract 62 from 66 to get 4.
Bring next digit (6) of the dividend behind the 4 and repeat the process: 46 / 31

Step 3:
When dividing 46 by 31, we get 1 with a remainder of 15.
The number 1 becomes the next digit in our result. 
Result so far: 21.0
Subtracting 31 from 46 leaves us with 15.
Include the next digit (8) from the dividend after 15, then repeat: 158 / 31

Let's proceed to step 4:
If we divide 158 by 31, we get 5 and a remainder of 3.
Put 5 as the next digit of the answer. 
Result so far: 215.0
Deduct 155 from 158 and we're left with 3.
Include the next digit (7) from the dividend after 3, then repeat: 37 / 31

Going ahead to step 5:
37 divided by 31 is 1 with a remainder of 6.
Write down 1 as next digit of the result. 
Result so far: 2151.0
If we take 31 away from 37, we end up with 6.
Take the next digit (4) from the dividend and append it to 6, then repeat: 64 / 31

Let's proceed to step 6:
64 divided by 31 is 2 with a remainder of 2.
Use 2 as the next digit of our solution. 
Result so far: 21512.0
Subtracting 62 from 64 leaves us with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Advancing to step 7:
31 can be fit into 20 0 times, resulting in a remainder of 20.
Write down 0 as next digit of the result. 
Result so far: 21512.0
If we take 0 away from 20, we end up with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Let's proceed to step 8:
If we divide 200 by 31, we get 6 and a remainder of 14.
Record the quotient 6 as the next digit in the result. 
Result so far: 21512.06
If we subtract 186 from 200, we get 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

On to step 9:
If we divide 140 by 31, we get 4 and a remainder of 16.
Use 4 as the next digit of our solution. 
Result so far: 21512.064
Deduct 124 from 140 and we're left with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Let's proceed to step 10:
31 can be fit into 160 5 times, resulting in a remainder of 5.
Record the quotient 5 as the next digit in the result. 
Result so far: 21512.0645
The remainder is 5 after subtracting 155 from 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

On to step 11:
If we divide 50 by 31, we get 1 and a remainder of 19.
Record the quotient 1 as the next digit in the result. 
Result so far: 21512.06451
Subtracting 31 from 50 leaves us with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Moving on to step 12:
190 divided by 31 is 6 with a remainder of 4.
Use 6 as the next digit of our solution. 
Result so far: 21512.064516
If we take 186 away from 190, we end up with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Going ahead to step 13:
The number 31 fits into 40 1 times, leaving a remainder of 9.
The next digit of our result is 1. 
Result so far: 21512.0645161
Subtract 31 from 40 to get 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Going ahead to step 14:
31 can be fit into 90 2 times, resulting in a remainder of 28.
Put 2 as the next digit of the answer. 
Result so far: 21512.06451612
Subtracting 62 from 90 leaves us with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

The final outcome is 21512.06451612, with a leftover of 2.8e-08.