We look at the division of 504897 by 39 
Let's see how many times 39 fits into 504897.

On to step 1:
When dividing 5 by 39, we get 0 with a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Take the next digit (0) from the dividend and append it to 5, then repeat: 50 / 39

On to step 2:
39 can be fit into 50 1 times, resulting in a remainder of 11.
Use 1 as the next digit of our solution. 
Result so far: 1.0
If we take 39 away from 50, we end up with 11.
Grab the next digit (4) from the dividend, add it to 11, then carry on: 114 / 39

Let's proceed to step 3:
39 goes into 114 2 times with a remainder of 36.
The next digit of our result is 2. 
Result so far: 12.0
The remainder is 36 after subtracting 78 from 114.
Include the next digit (8) from the dividend after 36, then repeat: 368 / 39

Moving on to step 4:
39 can be fit into 368 9 times, resulting in a remainder of 17.
Put 9 as the next digit of the answer. 
Result so far: 129.0
The remainder is 17 after subtracting 351 from 368.
Bring next digit (9) of the dividend behind the 17 and repeat the process: 179 / 39

Step 5:
When dividing 179 by 39, we get 4 with a remainder of 23.
Record the quotient 4 as the next digit in the result. 
Result so far: 1294.0
Subtracting 156 from 179 leaves us with 23.
Include the next digit (7) from the dividend after 23, then repeat: 237 / 39

On to step 6:
If we divide 237 by 39, we get 6 and a remainder of 3.
Write down 6 as next digit of the result. 
Result so far: 12946.0
If we subtract 234 from 237, we get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

On to step 7:
If we divide 30 by 39, we get 0 and a remainder of 30.
Put 0 as the next digit of the answer. 
Result so far: 12946.0
Subtracting 0 from 30 leaves us with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Going ahead to step 8:
The number 39 fits into 300 7 times, leaving a remainder of 27.
Write down 7 as next digit of the result. 
Result so far: 12946.07
If we take 273 away from 300, we end up with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Moving on to step 9:
If we divide 270 by 39, we get 6 and a remainder of 36.
Write down 6 as next digit of the result. 
Result so far: 12946.076
Deduct 234 from 270 and we're left with 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Advancing to step 10:
39 can be fit into 360 9 times, resulting in a remainder of 9.
The number 9 becomes the next digit in our result. 
Result so far: 12946.0769
If we subtract 351 from 360, we get 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Moving on to step 11:
39 can be fit into 90 2 times, resulting in a remainder of 12.
Write down 2 as next digit of the result. 
Result so far: 12946.07692
Subtracting 78 from 90 leaves us with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Moving on to step 12:
If we divide 120 by 39, we get 3 and a remainder of 3.
Put 3 as the next digit of the answer. 
Result so far: 12946.076923
If we take 117 away from 120, we end up with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Step 13:
39 can be fit into 30 0 times, resulting in a remainder of 30.
Put 0 as the next digit of the answer. 
Result so far: 12946.076923
If we subtract 0 from 30, we get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Moving on to step 14:
The number 39 fits into 300 7 times, leaving a remainder of 27.
Record the quotient 7 as the next digit in the result. 
Result so far: 12946.07692307
If we subtract 273 from 300, we get 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

The quotient of the division is 12946.07692307, and the remainder is 2.7e-08.