157417 ÷ 31 
Let's see how many times 31 fits into 157417.

Moving on to step 1:
If we divide 1 by 31, we get 0 and a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Take the next digit (5) from the dividend and append it to 1, then repeat: 15 / 31

Step 2:
15 divided by 31 is 0 with a remainder of 15.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 15, we end up with 15.
Take the next digit (7) from the dividend and append it to 15, then repeat: 157 / 31

On to step 3:
157 divided by 31 is 5 with a remainder of 2.
The number 5 becomes the next digit in our result. 
Result so far: 5.0
Deduct 155 from 157 and we're left with 2.
Grab the next digit (4) from the dividend, add it to 2, then carry on: 24 / 31

Advancing to step 4:
31 goes into 24 0 times with a remainder of 24.
Write down 0 as next digit of the result. 
Result so far: 50.0
If we subtract 0 from 24, we get 24.
Grab the next digit (1) from the dividend, add it to 24, then carry on: 241 / 31

Advancing to step 5:
If we divide 241 by 31, we get 7 and a remainder of 24.
Record the quotient 7 as the next digit in the result. 
Result so far: 507.0
Deduct 217 from 241 and we're left with 24.
Take the next digit (7) from the dividend and append it to 24, then repeat: 247 / 31

Going ahead to step 6:
When dividing 247 by 31, we get 7 with a remainder of 30.
The number 7 becomes the next digit in our result. 
Result so far: 5077.0
If we subtract 217 from 247, we 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.

Going ahead to step 7:
If we divide 300 by 31, we get 9 and a remainder of 21.
Record the quotient 9 as the next digit in the result. 
Result so far: 5077.9
If we subtract 279 from 300, we 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.

Step 8:
31 can be fit into 210 6 times, resulting in a remainder of 24.
Record the quotient 6 as the next digit in the result. 
Result so far: 5077.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:
If we divide 240 by 31, we get 7 and a remainder of 23.
Record the quotient 7 as the next digit in the result. 
Result so far: 5077.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.

On to step 10:
31 can be fit into 230 7 times, resulting in a remainder of 13.
Put 7 as the next digit of the answer. 
Result so far: 5077.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 5077.9677, with a leftover of 0.00013.