We're dividing 581061 by 31 
We want to figure out the number of times 581061 can be divided by 31.

Going ahead to step 1:
When dividing 5 by 31, we get 0 with a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Grab the next digit (8) from the dividend, add it to 5, then carry on: 58 / 31

Moving on to step 2:
31 goes into 58 1 times with a remainder of 27.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
If we subtract 31 from 58, we get 27.
Bring next digit (1) of the dividend behind the 27 and repeat the process: 271 / 31

Advancing to step 3:
If we divide 271 by 31, we get 8 and a remainder of 23.
The number 8 becomes the next digit in our result. 
Result so far: 18.0
Subtracting 248 from 271 leaves us with 23.
Fetch the next digit (0) from the dividend, attach it to 23 and continue: 230 / 31

On to step 4:
230 divided by 31 is 7 with a remainder of 13.
The next digit of our result is 7. 
Result so far: 187.0
Subtracting 217 from 230 leaves us with 13.
Grab the next digit (6) from the dividend, add it to 13, then carry on: 136 / 31

Moving on to step 5:
31 can be fit into 136 4 times, resulting in a remainder of 12.
The next digit of our result is 4. 
Result so far: 1874.0
Subtracting 124 from 136 leaves us with 12.
Bring next digit (1) of the dividend behind the 12 and repeat the process: 121 / 31

On to step 6:
31 goes into 121 3 times with a remainder of 28.
Write down 3 as next digit of the result. 
Result so far: 18743.0
Subtracting 93 from 121 leaves us 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.

Let's proceed to step 7:
31 can be fit into 280 9 times, resulting in a remainder of 1.
Record the quotient 9 as the next digit in the result. 
Result so far: 18743.9
The remainder is 1 after subtracting 279 from 280.
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 8:
31 can be fit into 10 0 times, resulting in a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 18743.9
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.

Going ahead to step 9:
100 divided by 31 is 3 with a remainder of 7.
Write down 3 as next digit of the result. 
Result so far: 18743.903
The remainder is 7 after subtracting 93 from 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Moving on to step 10:
If we divide 70 by 31, we get 2 and a remainder of 8.
Write down 2 as next digit of the result. 
Result so far: 18743.9032
Subtracting 62 from 70 leaves us 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.

On to step 11:
The number 31 fits into 80 2 times, leaving a remainder of 18.
Write down 2 as next digit of the result. 
Result so far: 18743.90322
If we take 62 away from 80, we end up 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.

After the division, we end up with 18743.90322 and a remainder of 1.8e-05.