We divide 507589 by 39
We want to figure out the number of times 507589 can be divided by 39.

Advancing 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
If we subtract 0 from 5, we get 5.
Take the next digit (0) from the dividend and append it to 5, then repeat: 50 / 39

Going ahead to step 2:
The number 39 fits into 50 1 times, leaving a remainder of 11.
Write down 1 as next digit of the result. 
Result so far: 1.0
If we take 39 away from 50, we end up with 11.
Append the next digit (7) from the dividend to 11 and continue with: 117 / 39

Going ahead to step 3:
When dividing 117 by 39, we get 3 with a remainder of 0.
Put 3 as the next digit of the answer. 
Result so far: 13.0
The remainder is 0 after subtracting 117 from 117.
Bring next digit (5) of the dividend behind the 0 and repeat the process: 5 / 39

Advancing to step 4:
The number 39 fits into 5 0 times, leaving a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 130.0
If we subtract 0 from 5, we get 5.
Grab the next digit (8) from the dividend, add it to 5, then carry on: 58 / 39

On to step 5:
If we divide 58 by 39, we get 1 and a remainder of 19.
The number 1 becomes the next digit in our result. 
Result so far: 1301.0
Subtract 39 from 58 to get 19.
Append the next digit (9) from the dividend to 19 and continue with: 199 / 39

Step 6:
199 divided by 39 is 5 with a remainder of 4.
Put 5 as the next digit of the answer. 
Result so far: 13015.0
Subtract 195 from 199 to get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Moving on to step 7:
When dividing 40 by 39, we get 1 with a remainder of 1.
The number 1 becomes the next digit in our result. 
Result so far: 13015.1
Deduct 39 from 40 and we're left 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.

Let's proceed to step 8:
When dividing 10 by 39, we get 0 with a remainder of 10.
The next digit of our result is 0. 
Result so far: 13015.1
Subtract 0 from 10 to 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.

Let's proceed to step 9:
If we divide 100 by 39, we get 2 and a remainder of 22.
Use 2 as the next digit of our solution. 
Result so far: 13015.102
If we subtract 78 from 100, we get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Let's proceed to step 10:
The number 39 fits into 220 5 times, leaving a remainder of 25.
The next digit of our result is 5. 
Result so far: 13015.1025
Subtract 195 from 220 to get 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Going ahead to step 11:
If we divide 250 by 39, we get 6 and a remainder of 16.
Use 6 as the next digit of our solution. 
Result so far: 13015.10256
If we subtract 234 from 250, we 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.

Let's proceed to step 12:
The number 39 fits into 160 4 times, leaving a remainder of 4.
Record the quotient 4 as the next digit in the result. 
Result so far: 13015.102564
If we take 156 away from 160, we end up 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.

Step 13:
If we divide 40 by 39, we get 1 and a remainder of 1.
Write down 1 as next digit of the result. 
Result so far: 13015.1025641
If we take 39 away from 40, we end up 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.

On to step 14:
10 divided by 39 is 0 with a remainder of 10.
Record the quotient 0 as the next digit in the result. 
Result so far: 13015.1025641
Deduct 0 from 10 and we're left 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.

The quotient of the division is 13015.1025641, and the remainder is 1e-08.