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

Moving on to step 1:
When dividing 1 by 31, we get 0 with a remainder of 1.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 1 to get 1.
Grab the next digit (4) from the dividend, add it to 1, then carry on: 14 / 31

Moving on to step 2:
31 can be fit into 14 0 times, resulting in a remainder of 14.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 14, we end up with 14.
Fetch the next digit (0) from the dividend, attach it to 14 and continue: 140 / 31

Going ahead to step 3:
140 divided by 31 is 4 with a remainder of 16.
Put 4 as the next digit of the answer. 
Result so far: 4.0
Deduct 124 from 140 and we're left with 16.
Take the next digit (2) from the dividend and append it to 16, then repeat: 162 / 31

Let's proceed to step 4:
When dividing 162 by 31, we get 5 with a remainder of 7.
The next digit of our result is 5. 
Result so far: 45.0
Deduct 155 from 162 and we're left with 7.
Append the next digit (5) from the dividend to 7 and continue with: 75 / 31

Let's proceed to step 5:
The number 31 fits into 75 2 times, leaving a remainder of 13.
The next digit of our result is 2. 
Result so far: 452.0
If we take 62 away from 75, we end up with 13.
Grab the next digit (4) from the dividend, add it to 13, then carry on: 134 / 31

Step 6:
If we divide 134 by 31, we get 4 and a remainder of 10.
Use 4 as the next digit of our solution. 
Result so far: 4524.0
Subtracting 124 from 134 leaves us with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

On to step 7:
If we divide 100 by 31, we get 3 and a remainder of 7.
Write down 3 as next digit of the result. 
Result so far: 4524.3
If we take 93 away from 100, we end up with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Step 8:
70 divided by 31 is 2 with a remainder of 8.
Record the quotient 2 as the next digit in the result. 
Result so far: 4524.32
The remainder is 8 after subtracting 62 from 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Let's proceed to step 9:
If we divide 80 by 31, we get 2 and a remainder of 18.
Record the quotient 2 as the next digit in the result. 
Result so far: 4524.322
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.

Our division results in 4524.322 with a remaining 0.0018.