We divide 401170 by 31
We want to figure out the number of times 401170 can be divided by 31.

On to step 1:
If we divide 4 by 31, we get 0 and a remainder of 4.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Bring next digit (0) of the dividend behind the 4 and repeat the process: 40 / 31

On to step 2:
31 can be fit into 40 1 times, resulting in a remainder of 9.
The next digit of our result is 1. 
Result so far: 1.0
If we subtract 31 from 40, we get 9.
Take the next digit (1) from the dividend and append it to 9, then repeat: 91 / 31

Step 3:
The number 31 fits into 91 2 times, leaving a remainder of 29.
Record the quotient 2 as the next digit in the result. 
Result so far: 12.0
The remainder is 29 after subtracting 62 from 91.
Take the next digit (1) from the dividend and append it to 29, then repeat: 291 / 31

Step 4:
The number 31 fits into 291 9 times, leaving a remainder of 12.
Put 9 as the next digit of the answer. 
Result so far: 129.0
Subtracting 279 from 291 leaves us with 12.
Grab the next digit (7) from the dividend, add it to 12, then carry on: 127 / 31

Step 5:
31 goes into 127 4 times with a remainder of 3.
The number 4 becomes the next digit in our result. 
Result so far: 1294.0
The remainder is 3 after subtracting 124 from 127.
Grab the next digit (0) from the dividend, add it to 3, then carry on: 30 / 31

Step 6:
31 can be fit into 30 0 times, resulting in a remainder of 30.
The number 0 becomes the next digit in our result. 
Result so far: 12940.0
Subtract 0 from 30 to get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Let's proceed to step 7:
31 goes into 300 9 times with a remainder of 21.
Write down 9 as next digit of the result. 
Result so far: 12940.9
Deduct 279 from 300 and we're left 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.

Advancing to step 8:
210 divided by 31 is 6 with a remainder of 24.
Write down 6 as next digit of the result. 
Result so far: 12940.96
Subtracting 186 from 210 leaves us 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.

On to step 9:
The number 31 fits into 240 7 times, leaving a remainder of 23.
Record the quotient 7 as the next digit in the result. 
Result so far: 12940.967
Deduct 217 from 240 and we're left 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 10:
31 goes into 230 7 times with a remainder of 13.
Write down 7 as next digit of the result. 
Result so far: 12940.9677
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.

In conclusion, the division gives 12940.9677 with a balance of 0.00013.