Let's divide 405412 by 31
We're looking to find how many times 31 goes into 405412.

Moving 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.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 31

On to step 2:
The number 31 fits into 40 1 times, leaving a remainder of 9.
The next digit of our result is 1. 
Result so far: 1.0
Subtracting 31 from 40 leaves us with 9.
Bring next digit (5) of the dividend behind the 9 and repeat the process: 95 / 31

Going ahead to step 3:
95 divided by 31 is 3 with a remainder of 2.
Use 3 as the next digit of our solution. 
Result so far: 13.0
Deduct 93 from 95 and we're left with 2.
Take the next digit (4) from the dividend and append it to 2, then repeat: 24 / 31

On to step 4:
If we divide 24 by 31, we get 0 and a remainder of 24.
The next digit of our result is 0. 
Result so far: 130.0
Subtracting 0 from 24 leaves us with 24.
Take the next digit (1) from the dividend and append it to 24, then repeat: 241 / 31

Moving on to step 5:
31 goes into 241 7 times with a remainder of 24.
The next digit of our result is 7. 
Result so far: 1307.0
Subtract 217 from 241 to get 24.
Fetch the next digit (2) from the dividend, attach it to 24 and continue: 242 / 31

Step 6:
The number 31 fits into 242 7 times, leaving a remainder of 25.
Record the quotient 7 as the next digit in the result. 
Result so far: 13077.0
Subtracting 217 from 242 leaves us with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Let's proceed to step 7:
If we divide 250 by 31, we get 8 and a remainder of 2.
Record the quotient 8 as the next digit in the result. 
Result so far: 13077.8
The remainder is 2 after subtracting 248 from 250.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Going ahead to step 8:
31 goes into 20 0 times with a remainder of 20.
The next digit of our result is 0. 
Result so far: 13077.8
If we subtract 0 from 20, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 9:
The number 31 fits into 200 6 times, leaving a remainder of 14.
Record the quotient 6 as the next digit in the result. 
Result so far: 13077.806
Deduct 186 from 200 and we're left with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Going ahead to step 10:
The number 31 fits into 140 4 times, leaving a remainder of 16.
The next digit of our result is 4. 
Result so far: 13077.8064
The remainder is 16 after subtracting 124 from 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Step 11:
The number 31 fits into 160 5 times, leaving a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 13077.80645
Subtracting 155 from 160 leaves us with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Step 12:
When dividing 50 by 31, we get 1 with a remainder of 19.
Put 1 as the next digit of the answer. 
Result so far: 13077.806451
The remainder is 19 after subtracting 31 from 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Step 13:
When dividing 190 by 31, we get 6 with a remainder of 4.
The next digit of our result is 6. 
Result so far: 13077.8064516
Deduct 186 from 190 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Moving on to step 14:
When dividing 40 by 31, we get 1 with a remainder of 9.
Use 1 as the next digit of our solution. 
Result so far: 13077.80645161
Deduct 31 from 40 and we're left with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

The final result is 13077.80645161 with a remainder of 9e-09.