Let's divide 50871189 by 318
We want to figure out the number of times 50871189 can be divided by 318.

Going ahead to step 1:
5 divided by 318 is 0 with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Fetch the next digit (0) from the dividend, attach it to 5 and continue: 50 / 318

Advancing to step 2:
50 divided by 318 is 0 with 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.
Append the next digit (8) from the dividend to 50 and continue with: 508 / 318

Going ahead to step 3:
The number 318 fits into 508 1 times, leaving a remainder of 190.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
The remainder is 190 after subtracting 318 from 508.
Include the next digit (7) from the dividend after 190, then repeat: 1907 / 318

Moving on to step 4:
318 goes into 1907 5 times with a remainder of 317.
Write down 5 as next digit of the result. 
Result so far: 15.0
Subtracting 1590 from 1907 leaves us with 317.
Bring next digit (1) of the dividend behind the 317 and repeat the process: 3171 / 318

Going ahead to step 5:
318 can be fit into 3171 9 times, resulting in a remainder of 309.
Put 9 as the next digit of the answer. 
Result so far: 159.0
Subtract 2862 from 3171 to get 309.
Fetch the next digit (1) from the dividend, attach it to 309 and continue: 3091 / 318

Advancing to step 6:
If we divide 3091 by 318, we get 9 and a remainder of 229.
The number 9 becomes the next digit in our result. 
Result so far: 1599.0
Subtracting 2862 from 3091 leaves us with 229.
Append the next digit (8) from the dividend to 229 and continue with: 2298 / 318

On to step 7:
318 can be fit into 2298 7 times, resulting in a remainder of 72.
Use 7 as the next digit of our solution. 
Result so far: 15997.0
Deduct 2226 from 2298 and we're left with 72.
Include the next digit (9) from the dividend after 72, then repeat: 729 / 318

Step 8:
318 can be fit into 729 2 times, resulting in a remainder of 93.
Use 2 as the next digit of our solution. 
Result so far: 159972.0
Subtracting 636 from 729 leaves us with 93.
Since there are no more digits in the dividend, we add a zero to the remainder making it 930, and continue the process.

Moving on to step 9:
The number 318 fits into 930 2 times, leaving a remainder of 294.
The number 2 becomes the next digit in our result. 
Result so far: 159972.2
Subtracting 636 from 930 leaves us with 294.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2940, and continue the process.

Going ahead to step 10:
318 can be fit into 2940 9 times, resulting in a remainder of 78.
Use 9 as the next digit of our solution. 
Result so far: 159972.29
The remainder is 78 after subtracting 2862 from 2940.
Since there are no more digits in the dividend, we add a zero to the remainder making it 780, and continue the process.

Moving on to step 11:
318 goes into 780 2 times with a remainder of 144.
The next digit of our result is 2. 
Result so far: 159972.292
Subtracting 636 from 780 leaves us with 144.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1440, and continue the process.

On to step 12:
If we divide 1440 by 318, we get 4 and a remainder of 168.
Put 4 as the next digit of the answer. 
Result so far: 159972.2924
If we subtract 1272 from 1440, we get 168.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1680, and continue the process.

On to step 13:
318 goes into 1680 5 times with a remainder of 90.
Record the quotient 5 as the next digit in the result. 
Result so far: 159972.29245
If we take 1590 away from 1680, we end up with 90.
Since there are no more digits in the dividend, we add a zero to the remainder making it 900, and continue the process.

Going ahead to step 14:
If we divide 900 by 318, we get 2 and a remainder of 264.
Put 2 as the next digit of the answer. 
Result so far: 159972.292452
If we subtract 636 from 900, we get 264.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2640, and continue the process.

On to step 15:
If we divide 2640 by 318, we get 8 and a remainder of 96.
Put 8 as the next digit of the answer. 
Result so far: 159972.2924528
The remainder is 96 after subtracting 2544 from 2640.
Since there are no more digits in the dividend, we add a zero to the remainder making it 960, and continue the process.

Advancing to step 16:
318 can be fit into 960 3 times, resulting in a remainder of 6.
Put 3 as the next digit of the answer. 
Result so far: 159972.29245283
If we subtract 954 from 960, we get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Our division results in 159972.29245283 with a remaining 6e-09.