We look at the division of 5095785 by 331 
We want to divide 5095785 by 331.

Advancing to step 1:
331 goes into 5 0 times 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.
Fetch the next digit (0) from the dividend, attach it to 5 and continue: 50 / 331

Moving on to step 2:
If we divide 50 by 331, we get 0 and a remainder of 50.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 50, we end up with 50.
Grab the next digit (9) from the dividend, add it to 50, then carry on: 509 / 331

Let's proceed to step 3:
509 divided by 331 is 1 with a remainder of 178.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Subtracting 331 from 509 leaves us with 178.
Grab the next digit (5) from the dividend, add it to 178, then carry on: 1785 / 331

On to step 4:
331 can be fit into 1785 5 times, resulting in a remainder of 130.
Use 5 as the next digit of our solution. 
Result so far: 15.0
The remainder is 130 after subtracting 1655 from 1785.
Include the next digit (7) from the dividend after 130, then repeat: 1307 / 331

Step 5:
The number 331 fits into 1307 3 times, leaving a remainder of 314.
The next digit of our result is 3. 
Result so far: 153.0
Deduct 993 from 1307 and we're left with 314.
Include the next digit (8) from the dividend after 314, then repeat: 3148 / 331

Advancing to step 6:
If we divide 3148 by 331, we get 9 and a remainder of 169.
Use 9 as the next digit of our solution. 
Result so far: 1539.0
If we take 2979 away from 3148, we end up with 169.
Fetch the next digit (5) from the dividend, attach it to 169 and continue: 1695 / 331

On to step 7:
If we divide 1695 by 331, we get 5 and a remainder of 40.
Use 5 as the next digit of our solution. 
Result so far: 15395.0
Deduct 1655 from 1695 and we're left with 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Step 8:
331 can be fit into 400 1 times, resulting in a remainder of 69.
Record the quotient 1 as the next digit in the result. 
Result so far: 15395.1
Subtracting 331 from 400 leaves us with 69.
Since there are no more digits in the dividend, we add a zero to the remainder making it 690, and continue the process.

Moving on to step 9:
331 goes into 690 2 times with a remainder of 28.
Write down 2 as next digit of the result. 
Result so far: 15395.12
The remainder is 28 after subtracting 662 from 690.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Let's proceed to step 10:
If we divide 280 by 331, we get 0 and a remainder of 280.
Put 0 as the next digit of the answer. 
Result so far: 15395.12
The remainder is 280 after subtracting 0 from 280.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2800, and continue the process.

Step 11:
331 goes into 2800 8 times with a remainder of 152.
The number 8 becomes the next digit in our result. 
Result so far: 15395.1208
Subtracting 2648 from 2800 leaves us with 152.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1520, and continue the process.

Going ahead to step 12:
331 can be fit into 1520 4 times, resulting in a remainder of 196.
Put 4 as the next digit of the answer. 
Result so far: 15395.12084
If we take 1324 away from 1520, we end up with 196.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1960, and continue the process.

Moving on to step 13:
When dividing 1960 by 331, we get 5 with a remainder of 305.
Write down 5 as next digit of the result. 
Result so far: 15395.120845
The remainder is 305 after subtracting 1655 from 1960.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3050, and continue the process.

Step 14:
When dividing 3050 by 331, we get 9 with a remainder of 71.
The number 9 becomes the next digit in our result. 
Result so far: 15395.1208459
Deduct 2979 from 3050 and we're left with 71.
Since there are no more digits in the dividend, we add a zero to the remainder making it 710, and continue the process.

Moving on to step 15:
331 can be fit into 710 2 times, resulting in a remainder of 48.
Record the quotient 2 as the next digit in the result. 
Result so far: 15395.12084592
Subtract 662 from 710 to get 48.
Since there are no more digits in the dividend, we add a zero to the remainder making it 480, and continue the process.

After the division, we end up with 15395.12084592 and a remainder of 4.8e-08.