587145 ÷ 39 
We want to figure out the number of times 587145 can be divided by 39.

Going ahead to step 1:
The number 39 fits into 5 0 times, leaving a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Bring next digit (8) of the dividend behind the 5 and repeat the process: 58 / 39

Going ahead to step 2:
The number 39 fits into 58 1 times, leaving a remainder of 19.
Write down 1 as next digit of the result. 
Result so far: 1.0
If we take 39 away from 58, we end up with 19.
Include the next digit (7) from the dividend after 19, then repeat: 197 / 39

Step 3:
The number 39 fits into 197 5 times, leaving a remainder of 2.
Record the quotient 5 as the next digit in the result. 
Result so far: 15.0
Subtracting 195 from 197 leaves us with 2.
Append the next digit (1) from the dividend to 2 and continue with: 21 / 39

Moving on to step 4:
The number 39 fits into 21 0 times, leaving a remainder of 21.
The next digit of our result is 0. 
Result so far: 150.0
If we subtract 0 from 21, we get 21.
Include the next digit (4) from the dividend after 21, then repeat: 214 / 39

On to step 5:
When dividing 214 by 39, we get 5 with a remainder of 19.
Record the quotient 5 as the next digit in the result. 
Result so far: 1505.0
Deduct 195 from 214 and we're left with 19.
Take the next digit (5) from the dividend and append it to 19, then repeat: 195 / 39

Step 6:
39 goes into 195 5 times with a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 15055.0
Deduct 195 from 195 and we're left with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

On to step 7:
39 can be fit into 0 0 times, resulting in a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 15055.0
If we subtract 0 from 0, we get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

On to step 8:
If we divide 0 by 39, we get 0 and a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 15055.0
Subtracting 0 from 0 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The final result is 15055.0 with a remainder of 0.0.