Let's divide 401316 by 31
We want to figure out the number of times 401316 can be divided by 31.

On to step 1:
When dividing 4 by 31, we get 0 with a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 31

Step 2:
40 divided by 31 is 1 with a remainder of 9.
Write down 1 as next digit of the result. 
Result so far: 1.0
The remainder is 9 after subtracting 31 from 40.
Grab the next digit (1) from the dividend, add it to 9, then carry on: 91 / 31

Moving on to step 3:
31 goes into 91 2 times with a remainder of 29.
Use 2 as the next digit of our solution. 
Result so far: 12.0
If we subtract 62 from 91, we get 29.
Fetch the next digit (3) from the dividend, attach it to 29 and continue: 293 / 31

Step 4:
31 goes into 293 9 times with a remainder of 14.
The number 9 becomes the next digit in our result. 
Result so far: 129.0
Subtract 279 from 293 to get 14.
Include the next digit (1) from the dividend after 14, then repeat: 141 / 31

Let's proceed to step 5:
The number 31 fits into 141 4 times, leaving a remainder of 17.
The next digit of our result is 4. 
Result so far: 1294.0
Deduct 124 from 141 and we're left with 17.
Grab the next digit (6) from the dividend, add it to 17, then carry on: 176 / 31

Advancing to step 6:
31 can be fit into 176 5 times, resulting in a remainder of 21.
Record the quotient 5 as the next digit in the result. 
Result so far: 12945.0
If we take 155 away from 176, 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.

Let's proceed to step 7:
210 divided by 31 is 6 with a remainder of 24.
Put 6 as the next digit of the answer. 
Result so far: 12945.6
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.

Step 8:
When dividing 240 by 31, we get 7 with a remainder of 23.
The number 7 becomes the next digit in our result. 
Result so far: 12945.67
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.

Step 9:
The number 31 fits into 230 7 times, leaving a remainder of 13.
The next digit of our result is 7. 
Result so far: 12945.677
Subtract 217 from 230 to get 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 12945.677 and a remainder of 0.0013.