We're dividing 125259 by 31 
Our goal is to divide 125259 by 31.

On to step 1:
The number 31 fits into 1 0 times, leaving a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Bring next digit (2) of the dividend behind the 1 and repeat the process: 12 / 31

Step 2:
If we divide 12 by 31, we get 0 and a remainder of 12.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 12 to get 12.
Append the next digit (5) from the dividend to 12 and continue with: 125 / 31

Let's proceed to step 3:
The number 31 fits into 125 4 times, leaving a remainder of 1.
Record the quotient 4 as the next digit in the result. 
Result so far: 4.0
If we take 124 away from 125, we end up with 1.
Append the next digit (2) from the dividend to 1 and continue with: 12 / 31

On to step 4:
The number 31 fits into 12 0 times, leaving a remainder of 12.
Put 0 as the next digit of the answer. 
Result so far: 40.0
The remainder is 12 after subtracting 0 from 12.
Bring next digit (5) of the dividend behind the 12 and repeat the process: 125 / 31

On to step 5:
If we divide 125 by 31, we get 4 and a remainder of 1.
Use 4 as the next digit of our solution. 
Result so far: 404.0
Deduct 124 from 125 and we're left with 1.
Grab the next digit (9) from the dividend, add it to 1, then carry on: 19 / 31

Let's proceed to step 6:
The number 31 fits into 19 0 times, leaving a remainder of 19.
Put 0 as the next digit of the answer. 
Result so far: 4040.0
If we subtract 0 from 19, we get 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Let's proceed to step 7:
31 goes into 190 6 times with a remainder of 4.
Use 6 as the next digit of our solution. 
Result so far: 4040.6
If we subtract 186 from 190, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Step 8:
When dividing 40 by 31, we get 1 with a remainder of 9.
Record the quotient 1 as the next digit in the result. 
Result so far: 4040.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.

On to step 9:
When dividing 90 by 31, we get 2 with a remainder of 28.
Record the quotient 2 as the next digit in the result. 
Result so far: 4040.612
Deduct 62 from 90 and we're left with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Step 10:
When dividing 280 by 31, we get 9 with a remainder of 1.
Record the quotient 9 as the next digit in the result. 
Result so far: 4040.6129
Deduct 279 from 280 and we're left with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Step 11:
31 can be fit into 10 0 times, resulting in a remainder of 10.
Write down 0 as next digit of the result. 
Result so far: 4040.6129
If we take 0 away from 10, we end up 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 12:
31 can be fit into 100 3 times, resulting in a remainder of 7.
The next digit of our result is 3. 
Result so far: 4040.612903
Subtract 93 from 100 to 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.

Going ahead to step 13:
When dividing 70 by 31, we get 2 with a remainder of 8.
Put 2 as the next digit of the answer. 
Result so far: 4040.6129032
Deduct 62 from 70 and we're left with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Going ahead to step 14:
80 divided by 31 is 2 with a remainder of 18.
Put 2 as the next digit of the answer. 
Result so far: 4040.61290322
Subtracting 62 from 80 leaves us 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.

The final outcome is 4040.61290322, with a leftover of 1.8e-08.