965807 divided by 31 
Let's see how many times 31 fits into 965807.

Advancing to step 1:
31 can be fit into 9 0 times, resulting in a remainder of 9.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 9 and we're left with 9.
Grab the next digit (6) from the dividend, add it to 9, then carry on: 96 / 31

Going ahead to step 2:
If we divide 96 by 31, we get 3 and a remainder of 3.
Use 3 as the next digit of our solution. 
Result so far: 3.0
If we subtract 93 from 96, we get 3.
Append the next digit (5) from the dividend to 3 and continue with: 35 / 31

On to step 3:
35 divided by 31 is 1 with a remainder of 4.
Put 1 as the next digit of the answer. 
Result so far: 31.0
Subtract 31 from 35 to get 4.
Grab the next digit (8) from the dividend, add it to 4, then carry on: 48 / 31

On to step 4:
The number 31 fits into 48 1 times, leaving a remainder of 17.
Put 1 as the next digit of the answer. 
Result so far: 311.0
Subtracting 31 from 48 leaves us with 17.
Append the next digit (0) from the dividend to 17 and continue with: 170 / 31

On to step 5:
170 divided by 31 is 5 with a remainder of 15.
Use 5 as the next digit of our solution. 
Result so far: 3115.0
If we take 155 away from 170, we end up with 15.
Bring next digit (7) of the dividend behind the 15 and repeat the process: 157 / 31

On to step 6:
When dividing 157 by 31, we get 5 with a remainder of 2.
The next digit of our result is 5. 
Result so far: 31155.0
The remainder is 2 after subtracting 155 from 157.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Moving on to step 7:
31 goes into 20 0 times with a remainder of 20.
Record the quotient 0 as the next digit in the result. 
Result so far: 31155.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.

Advancing to step 8:
31 goes into 200 6 times with a remainder of 14.
Record the quotient 6 as the next digit in the result. 
Result so far: 31155.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.

Step 9:
31 can be fit into 140 4 times, resulting in a remainder of 16.
Use 4 as the next digit of our solution. 
Result so far: 31155.064
If we take 124 away from 140, we end up 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.

On to step 10:
When dividing 160 by 31, we get 5 with a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 31155.0645
If we take 155 away from 160, we end up with 5.
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:
31 goes into 50 1 times with a remainder of 19.
Record the quotient 1 as the next digit in the result. 
Result so far: 31155.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.

Going ahead to step 12:
When dividing 190 by 31, we get 6 with a remainder of 4.
Write down 6 as next digit of the result. 
Result so far: 31155.064516
The remainder is 4 after subtracting 186 from 190.
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:
When dividing 40 by 31, we get 1 with a remainder of 9.
The number 1 becomes the next digit in our result. 
Result so far: 31155.0645161
Deduct 31 from 40 and we're left with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Advancing to step 14:
If we divide 90 by 31, we get 2 and a remainder of 28.
Write down 2 as next digit of the result. 
Result so far: 31155.06451612
If we take 62 away from 90, we end up 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 31155.06451612, with a leftover of 2.8e-08.