Let's divide 558145 by 31
We want to figure out the number of times 558145 can be divided by 31.

Step 1:
If we divide 5 by 31, we get 0 and a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Bring next digit (5) of the dividend behind the 5 and repeat the process: 55 / 31

Going ahead to step 2:
31 goes into 55 1 times with a remainder of 24.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Subtract 31 from 55 to get 24.
Fetch the next digit (8) from the dividend, attach it to 24 and continue: 248 / 31

Moving on to step 3:
The number 31 fits into 248 8 times, leaving a remainder of 0.
The number 8 becomes the next digit in our result. 
Result so far: 18.0
If we take 248 away from 248, we end up with 0.
Fetch the next digit (1) from the dividend, attach it to 0 and continue: 1 / 31

Moving on to step 4:
31 goes into 1 0 times with a remainder of 1.
The number 0 becomes the next digit in our result. 
Result so far: 180.0
Subtract 0 from 1 to get 1.
Take the next digit (4) from the dividend and append it to 1, then repeat: 14 / 31

Let's proceed to step 5:
14 divided by 31 is 0 with a remainder of 14.
Record the quotient 0 as the next digit in the result. 
Result so far: 1800.0
Subtracting 0 from 14 leaves us with 14.
Append the next digit (5) from the dividend to 14 and continue with: 145 / 31

Let's proceed to step 6:
The number 31 fits into 145 4 times, leaving a remainder of 21.
Put 4 as the next digit of the answer. 
Result so far: 18004.0
If we take 124 away from 145, we end up 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.

On to step 7:
210 divided by 31 is 6 with a remainder of 24.
Record the quotient 6 as the next digit in the result. 
Result so far: 18004.6
If we take 186 away from 210, we end up with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

On to step 8:
240 divided by 31 is 7 with a remainder of 23.
Write down 7 as next digit of the result. 
Result so far: 18004.67
If we subtract 217 from 240, we get 23.
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 9:
If we divide 230 by 31, we get 7 and a remainder of 13.
Put 7 as the next digit of the answer. 
Result so far: 18004.677
Deduct 217 from 230 and we're left with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

After the division, we end up with 18004.677 and a remainder of 0.0013.