We're dividing 5115854 by 171 
We're looking to find how many times 171 goes into 5115854.

Going ahead to step 1:
5 divided by 171 is 0 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.
Include the next digit (1) from the dividend after 5, then repeat: 51 / 171

Let's proceed to step 2:
51 divided by 171 is 0 with a remainder of 51.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 51 and we're left with 51.
Take the next digit (1) from the dividend and append it to 51, then repeat: 511 / 171

Let's proceed to step 3:
511 divided by 171 is 2 with a remainder of 169.
Put 2 as the next digit of the answer. 
Result so far: 2.0
If we take 342 away from 511, we end up with 169.
Fetch the next digit (5) from the dividend, attach it to 169 and continue: 1695 / 171

Moving on to step 4:
The number 171 fits into 1695 9 times, leaving a remainder of 156.
The number 9 becomes the next digit in our result. 
Result so far: 29.0
Subtracting 1539 from 1695 leaves us with 156.
Include the next digit (8) from the dividend after 156, then repeat: 1568 / 171

Advancing to step 5:
171 goes into 1568 9 times with a remainder of 29.
Use 9 as the next digit of our solution. 
Result so far: 299.0
If we take 1539 away from 1568, we end up with 29.
Append the next digit (5) from the dividend to 29 and continue with: 295 / 171

Let's proceed to step 6:
171 can be fit into 295 1 times, resulting in a remainder of 124.
The number 1 becomes the next digit in our result. 
Result so far: 2991.0
The remainder is 124 after subtracting 171 from 295.
Append the next digit (4) from the dividend to 124 and continue with: 1244 / 171

Advancing to step 7:
When dividing 1244 by 171, we get 7 with a remainder of 47.
Put 7 as the next digit of the answer. 
Result so far: 29917.0
The remainder is 47 after subtracting 1197 from 1244.
Since there are no more digits in the dividend, we add a zero to the remainder making it 470, and continue the process.

Step 8:
171 goes into 470 2 times with a remainder of 128.
Record the quotient 2 as the next digit in the result. 
Result so far: 29917.2
Subtract 342 from 470 to get 128.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1280, and continue the process.

Advancing to step 9:
171 goes into 1280 7 times with a remainder of 83.
Record the quotient 7 as the next digit in the result. 
Result so far: 29917.27
Subtracting 1197 from 1280 leaves us 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.

Going ahead to step 10:
830 divided by 171 is 4 with a remainder of 146.
Use 4 as the next digit of our solution. 
Result so far: 29917.274
If we take 684 away from 830, we end up with 146.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1460, and continue the process.

Going ahead to step 11:
When dividing 1460 by 171, we get 8 with a remainder of 92.
Use 8 as the next digit of our solution. 
Result so far: 29917.2748
Subtract 1368 from 1460 to get 92.
Since there are no more digits in the dividend, we add a zero to the remainder making it 920, and continue the process.

Moving on to step 12:
When dividing 920 by 171, we get 5 with a remainder of 65.
The next digit of our result is 5. 
Result so far: 29917.27485
The remainder is 65 after subtracting 855 from 920.
Since there are no more digits in the dividend, we add a zero to the remainder making it 650, and continue the process.

Moving on to step 13:
171 goes into 650 3 times with a remainder of 137.
Write down 3 as next digit of the result. 
Result so far: 29917.274853
The remainder is 137 after subtracting 513 from 650.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1370, and continue the process.

Moving on to step 14:
If we divide 1370 by 171, we get 8 and a remainder of 2.
The next digit of our result is 8. 
Result so far: 29917.2748538
Subtract 1368 from 1370 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Let's proceed to step 15:
When dividing 20 by 171, we get 0 with a remainder of 20.
Put 0 as the next digit of the answer. 
Result so far: 29917.2748538
If we take 0 away from 20, we end up with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

The final result is 29917.2748538 with a remainder of 2e-08.