Let's divide 5047140 by 390
We're looking to find how many times 390 goes into 5047140.

On to step 1:
390 goes into 5 0 times with a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Append the next digit (0) from the dividend to 5 and continue with: 50 / 390

Step 2:
390 can be fit into 50 0 times, resulting in a remainder of 50.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 50 and we're left with 50.
Take the next digit (4) from the dividend and append it to 50, then repeat: 504 / 390

Advancing to step 3:
504 divided by 390 is 1 with a remainder of 114.
Put 1 as the next digit of the answer. 
Result so far: 1.0
The remainder is 114 after subtracting 390 from 504.
Grab the next digit (7) from the dividend, add it to 114, then carry on: 1147 / 390

Step 4:
390 goes into 1147 2 times with a remainder of 367.
The number 2 becomes the next digit in our result. 
Result so far: 12.0
The remainder is 367 after subtracting 780 from 1147.
Fetch the next digit (1) from the dividend, attach it to 367 and continue: 3671 / 390

Going ahead to step 5:
The number 390 fits into 3671 9 times, leaving a remainder of 161.
Use 9 as the next digit of our solution. 
Result so far: 129.0
If we take 3510 away from 3671, we end up with 161.
Take the next digit (4) from the dividend and append it to 161, then repeat: 1614 / 390

Let's proceed to step 6:
1614 divided by 390 is 4 with a remainder of 54.
Put 4 as the next digit of the answer. 
Result so far: 1294.0
Subtract 1560 from 1614 to get 54.
Grab the next digit (0) from the dividend, add it to 54, then carry on: 540 / 390

Advancing to step 7:
390 can be fit into 540 1 times, resulting in a remainder of 150.
The next digit of our result is 1. 
Result so far: 12941.0
Subtracting 390 from 540 leaves us with 150.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1500, and continue the process.

On to step 8:
390 can be fit into 1500 3 times, resulting in a remainder of 330.
Put 3 as the next digit of the answer. 
Result so far: 12941.3
If we subtract 1170 from 1500, we get 330.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3300, and continue the process.

Advancing to step 9:
The number 390 fits into 3300 8 times, leaving a remainder of 180.
Use 8 as the next digit of our solution. 
Result so far: 12941.38
Deduct 3120 from 3300 and we're left with 180.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1800, and continue the process.

On to step 10:
When dividing 1800 by 390, we get 4 with a remainder of 240.
The number 4 becomes the next digit in our result. 
Result so far: 12941.384
Subtracting 1560 from 1800 leaves us with 240.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2400, and continue the process.

Advancing to step 11:
When dividing 2400 by 390, we get 6 with a remainder of 60.
Record the quotient 6 as the next digit in the result. 
Result so far: 12941.3846
If we subtract 2340 from 2400, we get 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 600, and continue the process.

Going ahead to step 12:
When dividing 600 by 390, we get 1 with a remainder of 210.
The next digit of our result is 1. 
Result so far: 12941.38461
Deduct 390 from 600 and we're left with 210.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2100, and continue the process.

On to step 13:
When dividing 2100 by 390, we get 5 with a remainder of 150.
Record the quotient 5 as the next digit in the result. 
Result so far: 12941.384615
Deduct 1950 from 2100 and we're left with 150.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1500, and continue the process.

On to step 14:
390 can be fit into 1500 3 times, resulting in a remainder of 330.
Put 3 as the next digit of the answer. 
Result so far: 12941.3846153
The remainder is 330 after subtracting 1170 from 1500.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3300, and continue the process.

Step 15:
If we divide 3300 by 390, we get 8 and a remainder of 180.
Record the quotient 8 as the next digit in the result. 
Result so far: 12941.38461538
Subtracting 3120 from 3300 leaves us with 180.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1800, and continue the process.

After the division, we end up with 12941.38461538 and a remainder of 1.8e-07.