Let's divide 165787 by 16
Our goal is to divide 165787 by 16.

On to step 1:
16 goes into 1 0 times with a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 1, we get 1.
Bring next digit (6) of the dividend behind the 1 and repeat the process: 16 / 16

Moving on to step 2:
16 can be fit into 16 1 times, resulting in a remainder of 0.
The next digit of our result is 1. 
Result so far: 1.0
If we take 16 away from 16, we end up with 0.
Take the next digit (5) from the dividend and append it to 0, then repeat: 5 / 16

On to step 3:
16 goes into 5 0 times with a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 10.0
The remainder is 5 after subtracting 0 from 5.
Include the next digit (7) from the dividend after 5, then repeat: 57 / 16

Going ahead to step 4:
When dividing 57 by 16, we get 3 with a remainder of 9.
Put 3 as the next digit of the answer. 
Result so far: 103.0
Subtract 48 from 57 to get 9.
Append the next digit (8) from the dividend to 9 and continue with: 98 / 16

Advancing to step 5:
16 goes into 98 6 times with a remainder of 2.
Use 6 as the next digit of our solution. 
Result so far: 1036.0
Subtracting 96 from 98 leaves us with 2.
Bring next digit (7) of the dividend behind the 2 and repeat the process: 27 / 16

Step 6:
27 divided by 16 is 1 with a remainder of 11.
The number 1 becomes the next digit in our result. 
Result so far: 10361.0
Subtract 16 from 27 to get 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 7:
16 can be fit into 110 6 times, resulting in a remainder of 14.
Use 6 as the next digit of our solution. 
Result so far: 10361.6
The remainder is 14 after subtracting 96 from 110.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Step 8:
16 goes into 140 8 times with a remainder of 12.
The number 8 becomes the next digit in our result. 
Result so far: 10361.68
Deduct 128 from 140 and we're left with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Step 9:
120 divided by 16 is 7 with a remainder of 8.
Record the quotient 7 as the next digit in the result. 
Result so far: 10361.687
If we take 112 away from 120, we end up with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

On to step 10:
16 goes into 80 5 times with a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 10361.6875
If we subtract 80 from 80, we get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Moving on to step 11:
When dividing 0 by 16, we get 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 10361.6875
Subtracting 0 from 0 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Moving on to step 12:
The number 16 fits into 0 0 times, leaving a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 10361.6875
Deduct 0 from 0 and we're left with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The final result is 10361.6875 with a remainder of 0.0.