Let's divide 31251 by 31
We want to divide 31251 by 31.

Advancing to step 1:
If we divide 3 by 31, we get 0 and a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Append the next digit (1) from the dividend to 3 and continue with: 31 / 31

On to step 2:
If we divide 31 by 31, we get 1 and a remainder of 0.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Deduct 31 from 31 and we're left with 0.
Take the next digit (2) from the dividend and append it to 0, then repeat: 2 / 31

Let's proceed to step 3:
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: 10.0
Subtracting 0 from 2 leaves us with 2.
Include the next digit (5) from the dividend after 2, then repeat: 25 / 31

Going ahead to step 4:
If we divide 25 by 31, we get 0 and a remainder of 25.
Write down 0 as next digit of the result. 
Result so far: 100.0
Deduct 0 from 25 and we're left with 25.
Include the next digit (1) from the dividend after 25, then repeat: 251 / 31

Let's proceed to step 5:
The number 31 fits into 251 8 times, leaving a remainder of 3.
Record the quotient 8 as the next digit in the result. 
Result so far: 1008.0
Subtract 248 from 251 to get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

On to step 6:
31 goes into 30 0 times with a remainder of 30.
The next digit of our result is 0. 
Result so far: 1008.0
Deduct 0 from 30 and we're left 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:
When dividing 300 by 31, we get 9 with a remainder of 21.
The next digit of our result is 9. 
Result so far: 1008.09
Subtracting 279 from 300 leaves us with 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 goes into 210 6 times with a remainder of 24.
Write down 6 as next digit of the result. 
Result so far: 1008.096
Subtract 186 from 210 to get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Moving on to step 9:
240 divided by 31 is 7 with a remainder of 23.
Use 7 as the next digit of our solution. 
Result so far: 1008.0967
The remainder is 23 after subtracting 217 from 240.
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.
Write down 7 as next digit of the result. 
Result so far: 1008.09677
If we subtract 217 from 230, we get 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Our division results in 1008.09677 with a remaining 1.3e-05.