340774 divided by 31 
We're looking to find how many times 31 goes into 340774.

On to step 1:
The number 31 fits into 3 0 times, leaving a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Bring next digit (4) of the dividend behind the 3 and repeat the process: 34 / 31

Advancing to step 2:
34 divided by 31 is 1 with a remainder of 3.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Deduct 31 from 34 and we're left with 3.
Append the next digit (0) from the dividend to 3 and continue with: 30 / 31

Going ahead to step 3:
The number 31 fits into 30 0 times, leaving a remainder of 30.
Record the quotient 0 as the next digit in the result. 
Result so far: 10.0
If we subtract 0 from 30, we get 30.
Append the next digit (7) from the dividend to 30 and continue with: 307 / 31

Step 4:
When dividing 307 by 31, we get 9 with a remainder of 28.
The number 9 becomes the next digit in our result. 
Result so far: 109.0
Subtracting 279 from 307 leaves us with 28.
Bring next digit (7) of the dividend behind the 28 and repeat the process: 287 / 31

Let's proceed to step 5:
When dividing 287 by 31, we get 9 with a remainder of 8.
The number 9 becomes the next digit in our result. 
Result so far: 1099.0
Subtract 279 from 287 to get 8.
Include the next digit (4) from the dividend after 8, then repeat: 84 / 31

Step 6:
31 can be fit into 84 2 times, resulting in a remainder of 22.
Write down 2 as next digit of the result. 
Result so far: 10992.0
The remainder is 22 after subtracting 62 from 84.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Going ahead to step 7:
31 goes into 220 7 times with a remainder of 3.
Put 7 as the next digit of the answer. 
Result so far: 10992.7
Subtract 217 from 220 to get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Advancing to step 8:
When dividing 30 by 31, we get 0 with a remainder of 30.
The next digit of our result is 0. 
Result so far: 10992.7
Deduct 0 from 30 and we're left with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Step 9:
31 goes into 300 9 times with a remainder of 21.
The next digit of our result is 9. 
Result so far: 10992.709
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.

Moving on to step 10:
31 goes into 210 6 times with a remainder of 24.
The next digit of our result is 6. 
Result so far: 10992.7096
If we take 186 away from 210, we end up with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Step 11:
31 can be fit into 240 7 times, resulting in a remainder of 23.
Use 7 as the next digit of our solution. 
Result so far: 10992.70967
If we take 217 away from 240, we end up with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

On to step 12:
When dividing 230 by 31, we get 7 with a remainder of 13.
The next digit of our result is 7. 
Result so far: 10992.709677
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 result is 10992.709677 with a remainder of 1.3e-06.