505091 ÷ 39 
We're looking to find how many times 39 goes into 505091.

Let's proceed to step 1:
When dividing 5 by 39, we get 0 with 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.
Append the next digit (0) from the dividend to 5 and continue with: 50 / 39

Let's proceed to step 2:
The number 39 fits into 50 1 times, leaving a remainder of 11.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Subtracting 39 from 50 leaves us with 11.
Fetch the next digit (5) from the dividend, attach it to 11 and continue: 115 / 39

Moving on to step 3:
115 divided by 39 is 2 with a remainder of 37.
The number 2 becomes the next digit in our result. 
Result so far: 12.0
If we subtract 78 from 115, we get 37.
Append the next digit (0) from the dividend to 37 and continue with: 370 / 39

Advancing to step 4:
If we divide 370 by 39, we get 9 and a remainder of 19.
The number 9 becomes the next digit in our result. 
Result so far: 129.0
Subtracting 351 from 370 leaves us with 19.
Fetch the next digit (9) from the dividend, attach it to 19 and continue: 199 / 39

Step 5:
199 divided by 39 is 5 with a remainder of 4.
The number 5 becomes the next digit in our result. 
Result so far: 1295.0
If we subtract 195 from 199, we get 4.
Include the next digit (1) from the dividend after 4, then repeat: 41 / 39

Step 6:
The number 39 fits into 41 1 times, leaving a remainder of 2.
Record the quotient 1 as the next digit in the result. 
Result so far: 12951.0
If we subtract 39 from 41, we get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Advancing to step 7:
The number 39 fits into 20 0 times, leaving a remainder of 20.
Use 0 as the next digit of our solution. 
Result so far: 12951.0
If we subtract 0 from 20, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 8:
If we divide 200 by 39, we get 5 and a remainder of 5.
Write down 5 as next digit of the result. 
Result so far: 12951.05
Deduct 195 from 200 and we're left with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Let's proceed to step 9:
When dividing 50 by 39, we get 1 with a remainder of 11.
Write down 1 as next digit of the result. 
Result so far: 12951.051
If we take 39 away from 50, we end up with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Let's proceed to step 10:
39 can be fit into 110 2 times, resulting in a remainder of 32.
The next digit of our result is 2. 
Result so far: 12951.0512
Subtracting 78 from 110 leaves us with 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Advancing to step 11:
When dividing 320 by 39, we get 8 with a remainder of 8.
The next digit of our result is 8. 
Result so far: 12951.05128
Subtract 312 from 320 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Going ahead to step 12:
If we divide 80 by 39, we get 2 and a remainder of 2.
The next digit of our result is 2. 
Result so far: 12951.051282
Subtract 78 from 80 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

On to step 13:
If we divide 20 by 39, we get 0 and a remainder of 20.
The number 0 becomes the next digit in our result. 
Result so far: 12951.051282
The remainder is 20 after subtracting 0 from 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Going ahead to step 14:
If we divide 200 by 39, we get 5 and a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 12951.05128205
Subtracting 195 from 200 leaves us with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

The final outcome is 12951.05128205, with a leftover of 5e-09.