We're dividing 254157 by 31 
Let's see how many times 31 fits into 254157.

On to step 1:
31 can be fit into 2 0 times, resulting in a remainder of 2.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 2 to get 2.
Bring next digit (5) of the dividend behind the 2 and repeat the process: 25 / 31

Moving on to step 2:
31 goes into 25 0 times with a remainder of 25.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 25 leaves us with 25.
Include the next digit (4) from the dividend after 25, then repeat: 254 / 31

Let's proceed to step 3:
If we divide 254 by 31, we get 8 and a remainder of 6.
Record the quotient 8 as the next digit in the result. 
Result so far: 8.0
Subtract 248 from 254 to get 6.
Append the next digit (1) from the dividend to 6 and continue with: 61 / 31

On to step 4:
31 can be fit into 61 1 times, resulting in a remainder of 30.
The next digit of our result is 1. 
Result so far: 81.0
Deduct 31 from 61 and we're left with 30.
Append the next digit (5) from the dividend to 30 and continue with: 305 / 31

Moving on to step 5:
If we divide 305 by 31, we get 9 and a remainder of 26.
The next digit of our result is 9. 
Result so far: 819.0
Deduct 279 from 305 and we're left with 26.
Take the next digit (7) from the dividend and append it to 26, then repeat: 267 / 31

On to step 6:
The number 31 fits into 267 8 times, leaving a remainder of 19.
The number 8 becomes the next digit in our result. 
Result so far: 8198.0
The remainder is 19 after subtracting 248 from 267.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Going ahead to step 7:
If we divide 190 by 31, we get 6 and a remainder of 4.
Write down 6 as next digit of the result. 
Result so far: 8198.6
If we take 186 away from 190, we end up 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.

Going ahead to step 8:
The number 31 fits into 40 1 times, leaving a remainder of 9.
Write down 1 as next digit of the result. 
Result so far: 8198.61
If we subtract 31 from 40, we get 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Advancing to step 9:
31 goes into 90 2 times with a remainder of 28.
Record the quotient 2 as the next digit in the result. 
Result so far: 8198.612
The remainder is 28 after subtracting 62 from 90.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Going ahead to step 10:
When dividing 280 by 31, we get 9 with a remainder of 1.
Use 9 as the next digit of our solution. 
Result so far: 8198.6129
If we subtract 279 from 280, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Moving on to step 11:
If we divide 10 by 31, we get 0 and a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 8198.6129
If we subtract 0 from 10, we get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Step 12:
If we divide 100 by 31, we get 3 and a remainder of 7.
Put 3 as the next digit of the answer. 
Result so far: 8198.612903
If we subtract 93 from 100, we get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Let's proceed to step 13:
The number 31 fits into 70 2 times, leaving a remainder of 8.
Put 2 as the next digit of the answer. 
Result so far: 8198.6129032
Subtract 62 from 70 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

On to step 14:
If we divide 80 by 31, we get 2 and a remainder of 18.
The next digit of our result is 2. 
Result so far: 8198.61290322
Deduct 62 from 80 and we're left with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

After the division, we end up with 8198.61290322 and a remainder of 1.8e-08.