We're dividing 371404 by 31 
We want to divide 371404 by 31.

Moving on to step 1:
31 goes into 3 0 times with a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Fetch the next digit (7) from the dividend, attach it to 3 and continue: 37 / 31

Advancing to step 2:
When dividing 37 by 31, we get 1 with a remainder of 6.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Subtract 31 from 37 to get 6.
Fetch the next digit (1) from the dividend, attach it to 6 and continue: 61 / 31

Advancing to step 3:
When dividing 61 by 31, we get 1 with a remainder of 30.
The next digit of our result is 1. 
Result so far: 11.0
Deduct 31 from 61 and we're left with 30.
Include the next digit (4) from the dividend after 30, then repeat: 304 / 31

On to step 4:
304 divided by 31 is 9 with a remainder of 25.
Write down 9 as next digit of the result. 
Result so far: 119.0
Subtracting 279 from 304 leaves us with 25.
Bring next digit (0) of the dividend behind the 25 and repeat the process: 250 / 31

Step 5:
250 divided by 31 is 8 with a remainder of 2.
Write down 8 as next digit of the result. 
Result so far: 1198.0
The remainder is 2 after subtracting 248 from 250.
Include the next digit (4) from the dividend after 2, then repeat: 24 / 31

Let's proceed to step 6:
31 goes into 24 0 times with a remainder of 24.
Use 0 as the next digit of our solution. 
Result so far: 11980.0
The remainder is 24 after subtracting 0 from 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Let's proceed to step 7:
When dividing 240 by 31, we get 7 with a remainder of 23.
Record the quotient 7 as the next digit in the result. 
Result so far: 11980.7
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.

Moving on to step 8:
31 goes into 230 7 times with a remainder of 13.
Put 7 as the next digit of the answer. 
Result so far: 11980.77
If we take 217 away from 230, we end up 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.

After the division, we end up with 11980.77 and a remainder of 0.013.