Let's divide 408517 by 31
Let's see how many times 31 fits into 408517.

Advancing 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
Subtracting 0 from 4 leaves us with 4.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 31

Moving on to 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
If we subtract 31 from 40, we get 9.
Grab the next digit (8) from the dividend, add it to 9, then carry on: 98 / 31

Let's proceed to step 3:
31 goes into 98 3 times with a remainder of 5.
Record the quotient 3 as the next digit in the result. 
Result so far: 13.0
If we subtract 93 from 98, we get 5.
Include the next digit (5) from the dividend after 5, then repeat: 55 / 31

Let's proceed to step 4:
When dividing 55 by 31, we get 1 with a remainder of 24.
Write down 1 as next digit of the result. 
Result so far: 131.0
Subtract 31 from 55 to get 24.
Include the next digit (1) from the dividend after 24, then repeat: 241 / 31

On to step 5:
The number 31 fits into 241 7 times, leaving a remainder of 24.
Use 7 as the next digit of our solution. 
Result so far: 1317.0
If we take 217 away from 241, we end up with 24.
Take the next digit (7) from the dividend and append it to 24, then repeat: 247 / 31

Let's proceed to step 6:
247 divided by 31 is 7 with a remainder of 30.
Write down 7 as next digit of the result. 
Result so far: 13177.0
Subtracting 217 from 247 leaves us 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.

Going ahead to step 7:
If we divide 300 by 31, we get 9 and a remainder of 21.
Use 9 as the next digit of our solution. 
Result so far: 13177.9
Subtract 279 from 300 to get 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 8:
If we divide 210 by 31, we get 6 and a remainder of 24.
Record the quotient 6 as the next digit in the result. 
Result so far: 13177.96
If we take 186 away from 210, we end up 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.

Going ahead to step 9:
31 goes into 240 7 times with a remainder of 23.
Use 7 as the next digit of our solution. 
Result so far: 13177.967
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 10:
The number 31 fits into 230 7 times, leaving a remainder of 13.
The number 7 becomes the next digit in our result. 
Result so far: 13177.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.

The final outcome is 13177.9677, with a leftover of 0.00013.