Let's divide 665876 by 31
Let's see how many times 31 fits into 665876.

Let's proceed to step 1:
31 can be fit into 6 0 times, resulting in a remainder of 6.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 6, we get 6.
Bring next digit (6) of the dividend behind the 6 and repeat the process: 66 / 31

Step 2:
When dividing 66 by 31, we get 2 with a remainder of 4.
Write down 2 as next digit of the result. 
Result so far: 2.0
Subtracting 62 from 66 leaves us with 4.
Bring next digit (5) of the dividend behind the 4 and repeat the process: 45 / 31

On to step 3:
When dividing 45 by 31, we get 1 with a remainder of 14.
Use 1 as the next digit of our solution. 
Result so far: 21.0
Subtracting 31 from 45 leaves us with 14.
Bring next digit (8) of the dividend behind the 14 and repeat the process: 148 / 31

Step 4:
The number 31 fits into 148 4 times, leaving a remainder of 24.
Write down 4 as next digit of the result. 
Result so far: 214.0
Deduct 124 from 148 and we're left with 24.
Fetch the next digit (7) from the dividend, attach it to 24 and continue: 247 / 31

Step 5:
The number 31 fits into 247 7 times, leaving a remainder of 30.
The number 7 becomes the next digit in our result. 
Result so far: 2147.0
Subtracting 217 from 247 leaves us with 30.
Bring next digit (6) of the dividend behind the 30 and repeat the process: 306 / 31

Step 6:
31 can be fit into 306 9 times, resulting in a remainder of 27.
Put 9 as the next digit of the answer. 
Result so far: 21479.0
Deduct 279 from 306 and we're left with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Going ahead to step 7:
31 goes into 270 8 times with a remainder of 22.
The next digit of our result is 8. 
Result so far: 21479.8
If we take 248 away from 270, we end up with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Advancing to step 8:
When dividing 220 by 31, we get 7 with a remainder of 3.
Put 7 as the next digit of the answer. 
Result so far: 21479.87
If we take 217 away from 220, we end up with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

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

Advancing to step 10:
The number 31 fits into 300 9 times, leaving a remainder of 21.
Record the quotient 9 as the next digit in the result. 
Result so far: 21479.8709
If we take 279 away from 300, we end up with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Step 11:
210 divided by 31 is 6 with a remainder of 24.
Write down 6 as next digit of the result. 
Result so far: 21479.87096
Subtract 186 from 210 to get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Advancing to step 12:
31 can be fit into 240 7 times, resulting in a remainder of 23.
The next digit of our result is 7. 
Result so far: 21479.870967
Subtract 217 from 240 to get 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Moving on to step 13:
When dividing 230 by 31, we get 7 with a remainder of 13.
Use 7 as the next digit of our solution. 
Result so far: 21479.8709677
Subtracting 217 from 230 leaves us 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.

The final outcome is 21479.8709677, with a leftover of 1.3e-07.