581570 divided by 31 
We're looking to find how many times 31 goes into 581570.

Moving on to step 1:
31 can be fit into 5 0 times, resulting in a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Fetch the next digit (8) from the dividend, attach it to 5 and continue: 58 / 31

Going ahead to step 2:
The number 31 fits into 58 1 times, leaving a remainder of 27.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtract 31 from 58 to get 27.
Append the next digit (1) from the dividend to 27 and continue with: 271 / 31

Advancing to step 3:
When dividing 271 by 31, we get 8 with a remainder of 23.
Use 8 as the next digit of our solution. 
Result so far: 18.0
If we subtract 248 from 271, we get 23.
Bring next digit (5) of the dividend behind the 23 and repeat the process: 235 / 31

On to step 4:
31 can be fit into 235 7 times, resulting in a remainder of 18.
Put 7 as the next digit of the answer. 
Result so far: 187.0
The remainder is 18 after subtracting 217 from 235.
Bring next digit (7) of the dividend behind the 18 and repeat the process: 187 / 31

Step 5:
When dividing 187 by 31, we get 6 with a remainder of 1.
The next digit of our result is 6. 
Result so far: 1876.0
Subtracting 186 from 187 leaves us with 1.
Include the next digit (0) from the dividend after 1, then repeat: 10 / 31

Advancing to step 6:
When dividing 10 by 31, we get 0 with a remainder of 10.
Put 0 as the next digit of the answer. 
Result so far: 18760.0
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.

Advancing to step 7:
100 divided by 31 is 3 with a remainder of 7.
Put 3 as the next digit of the answer. 
Result so far: 18760.3
Deduct 93 from 100 and we're left 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.

On to step 8:
31 goes into 70 2 times with a remainder of 8.
The number 2 becomes the next digit in our result. 
Result so far: 18760.32
If we take 62 away from 70, we end up 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.

Step 9:
31 can be fit into 80 2 times, resulting in a remainder of 18.
Write down 2 as next digit of the result. 
Result so far: 18760.322
The remainder is 18 after subtracting 62 from 80.
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 result is 18760.322 with a remainder of 0.0018.