We divide 5138177 by 394
We want to divide 5138177 by 394.

On to step 1:
394 goes into 5 0 times with a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Bring next digit (1) of the dividend behind the 5 and repeat the process: 51 / 394

Step 2:
When dividing 51 by 394, we get 0 with a remainder of 51.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 51, we end up with 51.
Bring next digit (3) of the dividend behind the 51 and repeat the process: 513 / 394

Step 3:
The number 394 fits into 513 1 times, leaving a remainder of 119.
Put 1 as the next digit of the answer. 
Result so far: 1.0
The remainder is 119 after subtracting 394 from 513.
Fetch the next digit (8) from the dividend, attach it to 119 and continue: 1198 / 394

On to step 4:
394 can be fit into 1198 3 times, resulting in a remainder of 16.
Record the quotient 3 as the next digit in the result. 
Result so far: 13.0
The remainder is 16 after subtracting 1182 from 1198.
Include the next digit (1) from the dividend after 16, then repeat: 161 / 394

Advancing to step 5:
161 divided by 394 is 0 with a remainder of 161.
Record the quotient 0 as the next digit in the result. 
Result so far: 130.0
If we subtract 0 from 161, we get 161.
Take the next digit (7) from the dividend and append it to 161, then repeat: 1617 / 394

Moving on to step 6:
If we divide 1617 by 394, we get 4 and a remainder of 41.
The next digit of our result is 4. 
Result so far: 1304.0
The remainder is 41 after subtracting 1576 from 1617.
Bring next digit (7) of the dividend behind the 41 and repeat the process: 417 / 394

Let's proceed to step 7:
394 goes into 417 1 times with a remainder of 23.
The next digit of our result is 1. 
Result so far: 13041.0
Subtracting 394 from 417 leaves us with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Going ahead to step 8:
The number 394 fits into 230 0 times, leaving a remainder of 230.
Write down 0 as next digit of the result. 
Result so far: 13041.0
Subtract 0 from 230 to get 230.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2300, and continue the process.

Going ahead to step 9:
2300 divided by 394 is 5 with a remainder of 330.
The number 5 becomes the next digit in our result. 
Result so far: 13041.05
Subtract 1970 from 2300 to 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.

Going ahead to step 10:
3300 divided by 394 is 8 with a remainder of 148.
Write down 8 as next digit of the result. 
Result so far: 13041.058
Subtract 3152 from 3300 to get 148.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1480, and continue the process.

Moving on to step 11:
When dividing 1480 by 394, we get 3 with a remainder of 298.
Use 3 as the next digit of our solution. 
Result so far: 13041.0583
If we subtract 1182 from 1480, we get 298.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2980, and continue the process.

Advancing to step 12:
If we divide 2980 by 394, we get 7 and a remainder of 222.
Put 7 as the next digit of the answer. 
Result so far: 13041.05837
If we take 2758 away from 2980, we end up with 222.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2220, and continue the process.

Moving on to step 13:
2220 divided by 394 is 5 with a remainder of 250.
Use 5 as the next digit of our solution. 
Result so far: 13041.058375
The remainder is 250 after subtracting 1970 from 2220.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2500, and continue the process.

Moving on to step 14:
The number 394 fits into 2500 6 times, leaving a remainder of 136.
The number 6 becomes the next digit in our result. 
Result so far: 13041.0583756
If we take 2364 away from 2500, we end up with 136.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1360, and continue the process.

On to step 15:
If we divide 1360 by 394, we get 3 and a remainder of 178.
Put 3 as the next digit of the answer. 
Result so far: 13041.05837563
If we subtract 1182 from 1360, we get 178.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1780, and continue the process.

The quotient of the division is 13041.05837563, and the remainder is 1.78e-07.