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

Let's proceed to step 1:
When dividing 1 by 87, we get 0 with a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 1 leaves us with 1.
Take the next digit (6) from the dividend and append it to 1, then repeat: 16 / 87

On to step 2:
When dividing 16 by 87, we get 0 with a remainder of 16.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 16 leaves us with 16.
Grab the next digit (5) from the dividend, add it to 16, then carry on: 165 / 87

On to step 3:
When dividing 165 by 87, we get 1 with a remainder of 78.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
The remainder is 78 after subtracting 87 from 165.
Append the next digit (0) from the dividend to 78 and continue with: 780 / 87

On to step 4:
When dividing 780 by 87, we get 8 with a remainder of 84.
Record the quotient 8 as the next digit in the result. 
Result so far: 18.0
Subtract 696 from 780 to get 84.
Take the next digit (2) from the dividend and append it to 84, then repeat: 842 / 87

Advancing to step 5:
If we divide 842 by 87, we get 9 and a remainder of 59.
Use 9 as the next digit of our solution. 
Result so far: 189.0
If we take 783 away from 842, we end up with 59.
Include the next digit (2) from the dividend after 59, then repeat: 592 / 87

Step 6:
87 goes into 592 6 times with a remainder of 70.
The number 6 becomes the next digit in our result. 
Result so far: 1896.0
Subtracting 522 from 592 leaves us with 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 700, and continue the process.

Step 7:
When dividing 700 by 87, we get 8 with a remainder of 4.
Write down 8 as next digit of the result. 
Result so far: 1896.8
Subtracting 696 from 700 leaves us with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Let's proceed to step 8:
When dividing 40 by 87, we get 0 with a remainder of 40.
The next digit of our result is 0. 
Result so far: 1896.8
Subtract 0 from 40 to get 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Moving on to step 9:
400 divided by 87 is 4 with a remainder of 52.
Use 4 as the next digit of our solution. 
Result so far: 1896.804
Deduct 348 from 400 and we're left with 52.
Since there are no more digits in the dividend, we add a zero to the remainder making it 520, and continue the process.

Step 10:
When dividing 520 by 87, we get 5 with a remainder of 85.
The number 5 becomes the next digit in our result. 
Result so far: 1896.8045
Subtract 435 from 520 to get 85.
Since there are no more digits in the dividend, we add a zero to the remainder making it 850, and continue the process.

Advancing to step 11:
850 divided by 87 is 9 with a remainder of 67.
Use 9 as the next digit of our solution. 
Result so far: 1896.80459
Subtracting 783 from 850 leaves us with 67.
Since there are no more digits in the dividend, we add a zero to the remainder making it 670, and continue the process.

Going ahead to step 12:
If we divide 670 by 87, we get 7 and a remainder of 61.
Write down 7 as next digit of the result. 
Result so far: 1896.804597
Subtracting 609 from 670 leaves us with 61.
Since there are no more digits in the dividend, we add a zero to the remainder making it 610, and continue the process.

Step 13:
When dividing 610 by 87, we get 7 with a remainder of 1.
Write down 7 as next digit of the result. 
Result so far: 1896.8045977
Subtracting 609 from 610 leaves us with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

The final outcome is 1896.8045977, with a leftover of 1e-08.