581357 ÷ 31 
We want to divide 581357 by 31.

Going ahead to step 1:
The number 31 fits into 5 0 times, leaving a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Take the next digit (8) from the dividend and append it to 5, then repeat: 58 / 31

Going ahead to step 2:
31 can be fit into 58 1 times, resulting in a remainder of 27.
Write down 1 as next digit of the result. 
Result so far: 1.0
Subtracting 31 from 58 leaves us with 27.
Grab the next digit (1) from the dividend, add it to 27, then carry on: 271 / 31

Moving on to step 3:
If we divide 271 by 31, we get 8 and a remainder of 23.
Write down 8 as next digit of the result. 
Result so far: 18.0
If we subtract 248 from 271, we get 23.
Append the next digit (3) from the dividend to 23 and continue with: 233 / 31

Advancing to step 4:
If we divide 233 by 31, we get 7 and a remainder of 16.
Record the quotient 7 as the next digit in the result. 
Result so far: 187.0
Subtract 217 from 233 to get 16.
Bring next digit (5) of the dividend behind the 16 and repeat the process: 165 / 31

Going ahead to step 5:
31 can be fit into 165 5 times, resulting in a remainder of 10.
The number 5 becomes the next digit in our result. 
Result so far: 1875.0
If we take 155 away from 165, we end up with 10.
Append the next digit (7) from the dividend to 10 and continue with: 107 / 31

Moving on to step 6:
107 divided by 31 is 3 with a remainder of 14.
The number 3 becomes the next digit in our result. 
Result so far: 18753.0
Subtracting 93 from 107 leaves us with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Moving on to step 7:
The number 31 fits into 140 4 times, leaving a remainder of 16.
Write down 4 as next digit of the result. 
Result so far: 18753.4
Subtract 124 from 140 to get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Advancing to step 8:
The number 31 fits into 160 5 times, leaving a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 18753.45
Subtracting 155 from 160 leaves us with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Advancing to step 9:
31 can be fit into 50 1 times, resulting in a remainder of 19.
Use 1 as the next digit of our solution. 
Result so far: 18753.451
Subtracting 31 from 50 leaves us with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Moving on to step 10:
31 goes into 190 6 times with a remainder of 4.
Put 6 as the next digit of the answer. 
Result so far: 18753.4516
Deduct 186 from 190 and we're left 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.

On to step 11:
40 divided by 31 is 1 with a remainder of 9.
Write down 1 as next digit of the result. 
Result so far: 18753.45161
The remainder is 9 after subtracting 31 from 40.
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 12:
When dividing 90 by 31, we get 2 with a remainder of 28.
The number 2 becomes the next digit in our result. 
Result so far: 18753.451612
If we subtract 62 from 90, we get 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

On to step 13:
When dividing 280 by 31, we get 9 with a remainder of 1.
The next digit of our result is 9. 
Result so far: 18753.4516129
Subtracting 279 from 280 leaves us 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.

Moving on to step 14:
When dividing 10 by 31, we get 0 with a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 18753.4516129
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.

Our division results in 18753.4516129 with a remaining 1e-08.