Let's divide 165791 by 87
Our goal is to divide 165791 by 87.

Moving on to step 1:
87 goes into 1 0 times with a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 1 to get 1.
Include the next digit (6) from the dividend after 1, then repeat: 16 / 87

Step 2:
16 divided by 87 is 0 with a remainder of 16.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 16, we end up with 16.
Include the next digit (5) from the dividend after 16, then repeat: 165 / 87

On to step 3:
87 can be fit into 165 1 times, resulting in a remainder of 78.
Write down 1 as next digit of the result. 
Result so far: 1.0
If we take 87 away from 165, we end up with 78.
Append the next digit (7) from the dividend to 78 and continue with: 787 / 87

Going ahead to step 4:
The number 87 fits into 787 9 times, leaving a remainder of 4.
Put 9 as the next digit of the answer. 
Result so far: 19.0
If we subtract 783 from 787, we get 4.
Take the next digit (9) from the dividend and append it to 4, then repeat: 49 / 87

On to step 5:
When dividing 49 by 87, we get 0 with a remainder of 49.
The next digit of our result is 0. 
Result so far: 190.0
Subtract 0 from 49 to get 49.
Take the next digit (1) from the dividend and append it to 49, then repeat: 491 / 87

Moving on to step 6:
The number 87 fits into 491 5 times, leaving a remainder of 56.
Put 5 as the next digit of the answer. 
Result so far: 1905.0
If we subtract 435 from 491, we get 56.
Since there are no more digits in the dividend, we add a zero to the remainder making it 560, and continue the process.

Going ahead to step 7:
560 divided by 87 is 6 with a remainder of 38.
Record the quotient 6 as the next digit in the result. 
Result so far: 1905.6
If we subtract 522 from 560, we get 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Let's proceed to step 8:
87 goes into 380 4 times with a remainder of 32.
Put 4 as the next digit of the answer. 
Result so far: 1905.64
Deduct 348 from 380 and we're left with 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

On to step 9:
87 goes into 320 3 times with a remainder of 59.
The number 3 becomes the next digit in our result. 
Result so far: 1905.643
The remainder is 59 after subtracting 261 from 320.
Since there are no more digits in the dividend, we add a zero to the remainder making it 590, and continue the process.

Let's proceed to step 10:
If we divide 590 by 87, we get 6 and a remainder of 68.
The number 6 becomes the next digit in our result. 
Result so far: 1905.6436
The remainder is 68 after subtracting 522 from 590.
Since there are no more digits in the dividend, we add a zero to the remainder making it 680, and continue the process.

Step 11:
When dividing 680 by 87, we get 7 with a remainder of 71.
Use 7 as the next digit of our solution. 
Result so far: 1905.64367
If we take 609 away from 680, we end up with 71.
Since there are no more digits in the dividend, we add a zero to the remainder making it 710, and continue the process.

Moving on to step 12:
The number 87 fits into 710 8 times, leaving a remainder of 14.
The number 8 becomes the next digit in our result. 
Result so far: 1905.643678
If we take 696 away from 710, we end up with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

On to step 13:
The number 87 fits into 140 1 times, leaving a remainder of 53.
Write down 1 as next digit of the result. 
Result so far: 1905.6436781
Deduct 87 from 140 and we're left with 53.
Since there are no more digits in the dividend, we add a zero to the remainder making it 530, and continue the process.

Let's proceed to step 14:
87 goes into 530 6 times with a remainder of 8.
Use 6 as the next digit of our solution. 
Result so far: 1905.64367816
If we subtract 522 from 530, we get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

The quotient of the division is 1905.64367816, and the remainder is 8e-09.