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

Advancing to step 1:
171 can be fit into 8 0 times, resulting in a remainder of 8.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 8 after subtracting 0 from 8.
Append the next digit (7) from the dividend to 8 and continue with: 87 / 171

On to step 2:
If we divide 87 by 171, we get 0 and a remainder of 87.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 87, we end up with 87.
Append the next digit (1) from the dividend to 87 and continue with: 871 / 171

On to step 3:
171 can be fit into 871 5 times, resulting in a remainder of 16.
The number 5 becomes the next digit in our result. 
Result so far: 5.0
Subtracting 855 from 871 leaves us with 16.
Take the next digit (6) from the dividend and append it to 16, then repeat: 166 / 171

Advancing to step 4:
If we divide 166 by 171, we get 0 and a remainder of 166.
The number 0 becomes the next digit in our result. 
Result so far: 50.0
Subtracting 0 from 166 leaves us with 166.
Include the next digit (6) from the dividend after 166, then repeat: 1666 / 171

On to step 5:
171 goes into 1666 9 times with a remainder of 127.
The next digit of our result is 9. 
Result so far: 509.0
If we take 1539 away from 1666, we end up with 127.
Append the next digit (1) from the dividend to 127 and continue with: 1271 / 171

Moving on to step 6:
The number 171 fits into 1271 7 times, leaving a remainder of 74.
Put 7 as the next digit of the answer. 
Result so far: 5097.0
The remainder is 74 after subtracting 1197 from 1271.
Take the next digit (7) from the dividend and append it to 74, then repeat: 747 / 171

Let's proceed to step 7:
747 divided by 171 is 4 with a remainder of 63.
Record the quotient 4 as the next digit in the result. 
Result so far: 50974.0
Subtracting 684 from 747 leaves us with 63.
Fetch the next digit (2) from the dividend, attach it to 63 and continue: 632 / 171

Let's proceed to step 8:
632 divided by 171 is 3 with a remainder of 119.
Write down 3 as next digit of the result. 
Result so far: 509743.0
If we subtract 513 from 632, we get 119.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1190, and continue the process.

Let's proceed to step 9:
1190 divided by 171 is 6 with a remainder of 164.
Put 6 as the next digit of the answer. 
Result so far: 509743.6
Subtract 1026 from 1190 to get 164.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1640, and continue the process.

Going ahead to step 10:
If we divide 1640 by 171, we get 9 and a remainder of 101.
Use 9 as the next digit of our solution. 
Result so far: 509743.69
Deduct 1539 from 1640 and we're left with 101.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1010, and continue the process.

On to step 11:
171 can be fit into 1010 5 times, resulting in a remainder of 155.
Write down 5 as next digit of the result. 
Result so far: 509743.695
Subtracting 855 from 1010 leaves us with 155.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1550, and continue the process.

Moving on to step 12:
When dividing 1550 by 171, we get 9 with a remainder of 11.
Write down 9 as next digit of the result. 
Result so far: 509743.6959
Deduct 1539 from 1550 and we're left with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Going ahead to step 13:
171 goes into 110 0 times with a remainder of 110.
The number 0 becomes the next digit in our result. 
Result so far: 509743.6959
Subtracting 0 from 110 leaves us with 110.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1100, and continue the process.

Moving on to step 14:
If we divide 1100 by 171, we get 6 and a remainder of 74.
Record the quotient 6 as the next digit in the result. 
Result so far: 509743.695906
Deduct 1026 from 1100 and we're left with 74.
Since there are no more digits in the dividend, we add a zero to the remainder making it 740, and continue the process.

Moving on to step 15:
171 goes into 740 4 times with a remainder of 56.
Record the quotient 4 as the next digit in the result. 
Result so far: 509743.6959064
Subtracting 684 from 740 leaves us with 56.
Since there are no more digits in the dividend, we add a zero to the remainder making it 560, and continue the process.

Advancing to step 16:
If we divide 560 by 171, we get 3 and a remainder of 47.
The number 3 becomes the next digit in our result. 
Result so far: 509743.69590643
The remainder is 47 after subtracting 513 from 560.
Since there are no more digits in the dividend, we add a zero to the remainder making it 470, and continue the process.

The quotient of the division is 509743.69590643, and the remainder is 4.7e-08.