401182 ÷ 31 
We're looking to find how many times 31 goes into 401182.

Moving on to step 1:
The number 31 fits into 4 0 times, leaving a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 4 after subtracting 0 from 4.
Bring next digit (0) of the dividend behind the 4 and repeat the process: 40 / 31

On to step 2:
If we divide 40 by 31, we get 1 and a remainder of 9.
Put 1 as the next digit of the answer. 
Result so far: 1.0
The remainder is 9 after subtracting 31 from 40.
Include the next digit (1) from the dividend after 9, then repeat: 91 / 31

Advancing to step 3:
When dividing 91 by 31, we get 2 with a remainder of 29.
Put 2 as the next digit of the answer. 
Result so far: 12.0
If we take 62 away from 91, we end up with 29.
Append the next digit (1) from the dividend to 29 and continue with: 291 / 31

Step 4:
291 divided by 31 is 9 with a remainder of 12.
Write down 9 as next digit of the result. 
Result so far: 129.0
Deduct 279 from 291 and we're left with 12.
Grab the next digit (8) from the dividend, add it to 12, then carry on: 128 / 31

On to step 5:
31 can be fit into 128 4 times, resulting in a remainder of 4.
Write down 4 as next digit of the result. 
Result so far: 1294.0
Subtracting 124 from 128 leaves us with 4.
Bring next digit (2) of the dividend behind the 4 and repeat the process: 42 / 31

Let's proceed to step 6:
When dividing 42 by 31, we get 1 with a remainder of 11.
The number 1 becomes the next digit in our result. 
Result so far: 12941.0
The remainder is 11 after subtracting 31 from 42.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Step 7:
When dividing 110 by 31, we get 3 with a remainder of 17.
The next digit of our result is 3. 
Result so far: 12941.3
The remainder is 17 after subtracting 93 from 110.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Let's proceed to step 8:
When dividing 170 by 31, we get 5 with a remainder of 15.
Record the quotient 5 as the next digit in the result. 
Result so far: 12941.35
If we subtract 155 from 170, we get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Going ahead to step 9:
The number 31 fits into 150 4 times, leaving a remainder of 26.
The number 4 becomes the next digit in our result. 
Result so far: 12941.354
If we take 124 away from 150, we end up with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Let's proceed to step 10:
When dividing 260 by 31, we get 8 with a remainder of 12.
The next digit of our result is 8. 
Result so far: 12941.3548
The remainder is 12 after subtracting 248 from 260.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Let's proceed to step 11:
31 can be fit into 120 3 times, resulting in a remainder of 27.
Record the quotient 3 as the next digit in the result. 
Result so far: 12941.35483
If we subtract 93 from 120, we get 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Advancing to step 12:
31 can be fit into 270 8 times, resulting in a remainder of 22.
Use 8 as the next digit of our solution. 
Result so far: 12941.354838
Subtracting 248 from 270 leaves us 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.

Let's proceed to step 13:
If we divide 220 by 31, we get 7 and a remainder of 3.
The next digit of our result is 7. 
Result so far: 12941.3548387
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.

On to step 14:
30 divided by 31 is 0 with a remainder of 30.
The next digit of our result is 0. 
Result so far: 12941.3548387
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.

In conclusion, the division gives 12941.3548387 with a balance of 3e-08.