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

Moving on to step 1:
39 can be fit into 5 0 times, resulting in 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 (0) from the dividend, add it to 5, then carry on: 50 / 39

Going ahead to step 2:
When dividing 50 by 39, we get 1 with a remainder of 11.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Deduct 39 from 50 and we're left with 11.
Append the next digit (6) from the dividend to 11 and continue with: 116 / 39

Advancing to step 3:
When dividing 116 by 39, we get 2 with a remainder of 38.
Put 2 as the next digit of the answer. 
Result so far: 12.0
Subtracting 78 from 116 leaves us with 38.
Grab the next digit (3) from the dividend, add it to 38, then carry on: 383 / 39

On to step 4:
39 goes into 383 9 times with a remainder of 32.
Put 9 as the next digit of the answer. 
Result so far: 129.0
If we take 351 away from 383, we end up with 32.
Include the next digit (7) from the dividend after 32, then repeat: 327 / 39

On to step 5:
When dividing 327 by 39, we get 8 with a remainder of 15.
Write down 8 as next digit of the result. 
Result so far: 1298.0
Deduct 312 from 327 and we're left with 15.
Grab the next digit (1) from the dividend, add it to 15, then carry on: 151 / 39

Going ahead to step 6:
151 divided by 39 is 3 with a remainder of 34.
Write down 3 as next digit of the result. 
Result so far: 12983.0
Deduct 117 from 151 and we're left with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Step 7:
340 divided by 39 is 8 with a remainder of 28.
Write down 8 as next digit of the result. 
Result so far: 12983.8
If we take 312 away from 340, we end up 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.

Step 8:
When dividing 280 by 39, we get 7 with a remainder of 7.
Put 7 as the next digit of the answer. 
Result so far: 12983.87
Deduct 273 from 280 and we're left with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Going ahead to step 9:
70 divided by 39 is 1 with a remainder of 31.
The number 1 becomes the next digit in our result. 
Result so far: 12983.871
If we subtract 39 from 70, we get 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

Moving on to step 10:
310 divided by 39 is 7 with a remainder of 37.
Put 7 as the next digit of the answer. 
Result so far: 12983.8717
Subtracting 273 from 310 leaves us with 37.
Since there are no more digits in the dividend, we add a zero to the remainder making it 370, and continue the process.

Let's proceed to step 11:
When dividing 370 by 39, we get 9 with a remainder of 19.
The number 9 becomes the next digit in our result. 
Result so far: 12983.87179
If we take 351 away from 370, we end up with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Moving on to step 12:
39 can be fit into 190 4 times, resulting in a remainder of 34.
The next digit of our result is 4. 
Result so far: 12983.871794
Subtracting 156 from 190 leaves us with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

On to step 13:
39 goes into 340 8 times with a remainder of 28.
The next digit of our result is 8. 
Result so far: 12983.8717948
If we subtract 312 from 340, we get 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Advancing to step 14:
If we divide 280 by 39, we get 7 and a remainder of 7.
The next digit of our result is 7. 
Result so far: 12983.87179487
Deduct 273 from 280 and we're left with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

In conclusion, the division gives 12983.87179487 with a balance of 7e-09.