5179181 ÷ 871 
We want to divide 5179181 by 871.

Advancing to step 1:
871 can be fit into 5 0 times, resulting in a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Grab the next digit (1) from the dividend, add it to 5, then carry on: 51 / 871

Step 2:
The number 871 fits into 51 0 times, leaving a remainder of 51.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 51 and we're left with 51.
Bring next digit (7) of the dividend behind the 51 and repeat the process: 517 / 871

Let's proceed to step 3:
The number 871 fits into 517 0 times, leaving a remainder of 517.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 517 leaves us with 517.
Fetch the next digit (9) from the dividend, attach it to 517 and continue: 5179 / 871

Step 4:
When dividing 5179 by 871, we get 5 with a remainder of 824.
Use 5 as the next digit of our solution. 
Result so far: 5.0
Deduct 4355 from 5179 and we're left with 824.
Append the next digit (1) from the dividend to 824 and continue with: 8241 / 871

On to step 5:
When dividing 8241 by 871, we get 9 with a remainder of 402.
Use 9 as the next digit of our solution. 
Result so far: 59.0
Deduct 7839 from 8241 and we're left with 402.
Grab the next digit (8) from the dividend, add it to 402, then carry on: 4028 / 871

On to step 6:
The number 871 fits into 4028 4 times, leaving a remainder of 544.
Write down 4 as next digit of the result. 
Result so far: 594.0
Subtracting 3484 from 4028 leaves us with 544.
Take the next digit (1) from the dividend and append it to 544, then repeat: 5441 / 871

Going ahead to step 7:
871 can be fit into 5441 6 times, resulting in a remainder of 215.
The number 6 becomes the next digit in our result. 
Result so far: 5946.0
If we subtract 5226 from 5441, we get 215.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2150, and continue the process.

Advancing to step 8:
The number 871 fits into 2150 2 times, leaving a remainder of 408.
Use 2 as the next digit of our solution. 
Result so far: 5946.2
Subtract 1742 from 2150 to get 408.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4080, and continue the process.

Going ahead to step 9:
871 can be fit into 4080 4 times, resulting in a remainder of 596.
Record the quotient 4 as the next digit in the result. 
Result so far: 5946.24
Subtracting 3484 from 4080 leaves us with 596.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5960, and continue the process.

On to step 10:
When dividing 5960 by 871, we get 6 with a remainder of 734.
Use 6 as the next digit of our solution. 
Result so far: 5946.246
If we take 5226 away from 5960, we end up with 734.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7340, and continue the process.

Let's proceed to step 11:
871 goes into 7340 8 times with a remainder of 372.
Write down 8 as next digit of the result. 
Result so far: 5946.2468
Subtract 6968 from 7340 to get 372.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3720, and continue the process.

Going ahead to step 12:
3720 divided by 871 is 4 with a remainder of 236.
Put 4 as the next digit of the answer. 
Result so far: 5946.24684
Deduct 3484 from 3720 and we're left with 236.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2360, and continue the process.

Step 13:
871 can be fit into 2360 2 times, resulting in a remainder of 618.
Use 2 as the next digit of our solution. 
Result so far: 5946.246842
If we subtract 1742 from 2360, we get 618.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6180, and continue the process.

Going ahead to step 14:
The number 871 fits into 6180 7 times, leaving a remainder of 83.
Put 7 as the next digit of the answer. 
Result so far: 5946.2468427
Deduct 6097 from 6180 and we're left with 83.
Since there are no more digits in the dividend, we add a zero to the remainder making it 830, and continue the process.

Let's proceed to step 15:
If we divide 830 by 871, we get 0 and a remainder of 830.
The next digit of our result is 0. 
Result so far: 5946.2468427
Subtracting 0 from 830 leaves us with 830.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8300, and continue the process.

The final outcome is 5946.2468427, with a leftover of 8.3e-07.